# Error on sync workspace with version 1.8.1.405

**URL:** https://www.finalbuilder.com/forums/t/error-on-sync-workspace-with-version-1-8-1-405/6086
**Category:** Bugs
**Created:** [April 4, 2017, 4:31am UTC](https://www.finalbuilder.com/forums/t/error-on-sync-workspace-with-version-1-8-1-405/6086 "2017-04-04T04:31:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![guido.mueller-riemer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@guido.mueller-riemer](https://www.finalbuilder.com/forums/u/guido.mueller-riemer)
#### Post date: [April 4, 2017, 4:31am UTC](https://www.finalbuilder.com/forums/t/error-on-sync-workspace-with-version-1-8-1-405/6086/1 "2017-04-04T04:31:02Z")

</div>

Hello,   
  
 since installing Continua CI Version 1.8.1.405 I got the following error when sync the workspace at a stage:   
 There where noch changes done. The synchronization had been working for more than 1 Year with this file.   
  
 Could you help me?   
  
 There was an error with stage: Code coverage. Message: Error initialising workspace on agent ‘zde105’: Exception: UnauthorizedAccessException   
  
 Message: (5) Access is denied: [\?\C:\CI\_WS\Ws\18080\Output\Test.ParametersetManager\BinaryFiles\ReadOnlyFile.bin]   
  
 Stack Trace: at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)   
 at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(Boolean isFolder, KernelTransaction transaction, String sourceFileName, String destinationFileName, Boolean preserveDates, Nullable`1 copyOptions, Nullable`1 moveOptions, CopyMoveProgressRoutine progressHandler, Object userProgressData, PathFormat pathFormat)   
 at Alphaleonis.Win32.Filesystem.FileInfo.CopyToMoveToCore(String destinationPath, Boolean preserveDates, Nullable`1 copyOptions, Nullable`1 moveOptions, CopyMoveProgressRoutine progressHandler, Object userProgressData, String& longFullPath, PathFormat pathFormat)   
 at Alphaleonis.Win32.Filesystem.FileInfo.CopyTo(String destinationPath, Boolean overwrite)   
 at Continua.Shared.Utils.PathUtilities.TryCopyFileAndPreservePath(String sourceFile, String commonPath, String targetPath, Boolean preserveDirectoryStructure, String& destinationFilePath, Boolean overwriteExisting)   
 at Continua.Modules.Builds.Agent.FileSync.UNCTransport.Copy(String destination, String pattern, IEnumerable`1 excludes, String basePath, RuleOperator op, Int32& filesCounted) <br> at Continua.Modules.Builds.Agent.FileSync.UNCTransport.CopyFilesFromServerToAgent(IEnumerable`1 rules, String destination)   
 at Continua.Modules.Builds.Agent.AgentBuildHelper.SyncWorkspaceFromServer(TransportContextDTO context, IEnumerable`1 rules, AgentWorkspaceSyncContext workspaceCtx) <br> at Continua.Modules.Builds.Agent.AgentBuildHelper.InitialiseWorkspaceOnAgent(IAgentCallbackProxy proxy, TransportContextDTO source, Guid callId) <br> at Continua.Modules.Builds.Agent.AgentBuildRunner.OnInitialisingWorkspace(Transition`1 inState)

---

<div class="post-metadata">

### Author: ![guido.mueller-riemer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@guido.mueller-riemer](https://www.finalbuilder.com/forums/u/guido.mueller-riemer)
#### Post date: [April 4, 2017, 4:40am UTC](https://www.finalbuilder.com/forums/t/error-on-sync-workspace-with-version-1-8-1-405/6086/2 "2017-04-04T04:40:47Z")

</div>

Hi,   
  
 when I was searching for a workaround, I got some more information about this error. It seem that the workspace will not be cleaned after stage completed. The result is that with a file which is synchronized at more than one following stages you will get an “access denied” error. Could you please check this?   
  
 Thanks   
  
 Guido

---

<div class="post-metadata">

### Author: ![guido.mueller-riemer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/e9bcb4/32.png) [@guido.mueller-riemer](https://www.finalbuilder.com/forums/u/guido.mueller-riemer)
#### Post date: [April 5, 2017, 9:02am UTC](https://www.finalbuilder.com/forums/t/error-on-sync-workspace-with-version-1-8-1-405/6086/3 "2017-04-05T09:02:30Z")

</div>

Some more Information:   
  
 this error accures when writing back readonly files to server and load these file to the next stage.   
  
 Regards   
  
 Guido
