I'm getting a series of errors like the following on all (well the 2 I am working on this week) my Continua builds. Looks like a permissions issue on the agent side. Seemed to work ok in Build 1633. Is there are change in some of the folder permissions with this build?
Started syncing files from the agent to the server.
An error occurred while syncing files from the server to the agent. Details: Exception: UnauthorizedAccessException Message: Access to the path '\\{removed}\Continua\Ws\JD-Data\71\__variables\JDSRV03_Environment.xml' is denied. Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) at System.IO.FileInfo.CopyTo(String destFileName, Boolean overwrite) at Continua.Shared.Utils.PathUtilities.TryCopyFileAndPreservePath(String sourceFile, String commonPath, String targetPath, Boolean preserve, String& targetFile, Boolean overwriteExising) at Continua.Modules.Builds.Agent.FileSync.UNCTransport.Copy(String destination, String pattern, IEnumerable`1 excludes, String basePath, RuleOperator op, Int32& filesCounted) at Continua.Modules.Builds.Agent.FileSync.UNCTransport.ExecuteAgentToServerRule(String source, IEnumerable`1 excludeRules, WorkspaceRuleDTO rule) at Continua.Modules.Builds.Agent.FileSync.UNCTransport.CopyFilesFromAgentToServer(String source, IEnumerable`1 rules) at Continua.Modules.Builds.Agent.AgentBuildHelper.SyncWorkspaceToServer(TransportContextDTO context, IEnumerable`1 rules, AgentWorkspaceSyncContext workspaceCtx) at Continua.Modules.Builds.Agent.AgentBuildRunner.OnSyncingWorkspace(Transition`1 inState) .
No change in permissions, but there was a regression bug in builds from the last few weeks where it wasn’t copying the __variables files back to the server at the end of a stage. Will look into it.
Can you check if your agent user has Modify permissions on the server share? The error is happening when trying to overwrite an existing file. I’ve made some changes to the error handling so this will at least be logged a bit better (no need for a stack trace there).
Yeah, looks like the agent on the workstation had changed from my Domain “Continua Agent user”, which has full permission on the server share, to local system or local service (3 second memory issue). I wonder if the agent installation incorrectly did this or a PEBKAC during installation of build 1672. I’m calling this a user issue. Changing the agent to the correct role has resolved the problem. <smacks hand="" on="" head="" while="" rolling="" eyes/="">
Hmmm… could be an agent installer issue… if you see it again let me know. In the mean time I’ll take a look at the agent installer. One of the things that bugs me about it (and the server install) is that it doesn’t check that the login details are valid. It’s on the todo list to add (not as simple as it sounds from an installer).