Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Location
    Atlantis
    Posts
    167

    Team City EXEC error Code: ERROR_USER_NOT_ADMIN

    So I've been going over the last few videos in chapter 10 as I have moved from a virtual machine hosting the website
    and I am now hosting the website on another PC at home that I have Server 2012 running on it, now when I try to deploy the website from TeamCity I get the error "EXEC error Code: ERROR_USER_NOT_ADMIN" but if I use the cmd prompt on my development box to deploy the website I get a build succeeded, I've tried using my admin credentials also to deploy the website as well as adding both TeamCity and deploy users to the administrators group in Server 2012 but still receive the same Error Code. its bugging me to no end why the cmd prompt will work but Team City wont. Anyone have any experience with Server 2012 maybe I have set things up wrong.

    Code:
    [17:19:01]Step 1/1: MSBuild (11s)
    
    [17:19:02][Step 1/1] src\DystopiaOnline.proj.teamcity: Build target: DeployWebsite (9s)
    
    [17:19:08][src\DystopiaOnline.proj.teamcity] DeployWebsite (3s)
    
    [17:19:10][DeployWebsite] Exec (1s)
    
    [17:19:12][Exec] EXEC error Code: ERROR_USER_NOT_ADMIN
    
    [17:19:12][Exec] Error (401) Unauthorized.
    
    [17:19:12][Exec] EXEC error count: 1.
    
    [17:19:12][Exec] C:\TeamCity\buildAgent\work\49a29077f65f5b85\src\DystopiaOnline.proj(57, 5): error MSB3073: The command "lib\msdeploy\msdeploy.exe -verb:sync -source package="Build\Web\Package.zip" -dest:auto,computerName=www.Dystopia-Online.com,userName=deploy,password=Test-skip:directory=\\Uploads$ -setParamFile="C:\TeamCity\buildAgent\work\49a29077f65f5b85\src\DystopiaOnline.Web\Config\Parameters.Production.config"" exited with code -1.
    
    [17:19:12][Step 1/1] Step MSBuild failed
    

  2. #2
    Join Date
    Dec 2009
    Location
    Atlantis
    Posts
    167
    Ok fixed this i was using my public IP instead of my private IP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •