# Build 1672 - Agent

**URL:** https://www.finalbuilder.com/forums/t/build-1672-agent/5795
**Category:** Bugs
**Created:** [March 26, 2013, 4:33am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795 "2013-03-26T04:33:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jenasys](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/jenasys/32/888_2.png) [@Jenasys](https://www.finalbuilder.com/forums/u/Jenasys)
#### Post date: [March 26, 2013, 4:33am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795/1 "2013-03-26T04:33:01Z")

</div>

I'm getting a series of errors like the following on all (well the 2&nbsp;I am working on this week)&nbsp;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?

&nbsp;

| 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) . |

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 26, 2013, 4:37am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795/2 "2013-03-26T04:37:16Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 26, 2013, 4:38am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795/3 "2013-03-26T04:38:02Z")

</div>

Is JDSRV03 the name of your server or your agent?

---

<div class="post-metadata">

### Author: ![Jenasys](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/jenasys/32/888_2.png) [@Jenasys](https://www.finalbuilder.com/forums/u/Jenasys)
#### Post date: [March 26, 2013, 5:03am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795/4 "2013-03-26T05:03:10Z")

</div>

JD **SRV** 03 - Continua Server (windows Server 2012 x64)

JD **BNE** 01 - Agent - Developer Workstation in Brisbane&nbsp;(Windows 8 x 64)

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 26, 2013, 5:36am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795/5 "2013-03-26T05:36:36Z")

</div>

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).

---

<div class="post-metadata">

### Author: ![Jenasys](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/jenasys/32/888_2.png) [@Jenasys](https://www.finalbuilder.com/forums/u/Jenasys)
#### Post date: [March 26, 2013, 6:25am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795/6 "2013-03-26T06:25:41Z")

</div>

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/=""\>

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 26, 2013, 6:47am UTC](https://www.finalbuilder.com/forums/t/build-1672-agent/5795/7 "2013-03-26T06:47:14Z")

</div>

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).
