# Sync To Server

**URL:** https://www.finalbuilder.com/forums/t/sync-to-server/5917
**Category:** Bugs
**Created:** [July 30, 2014, 12:55pm UTC](https://www.finalbuilder.com/forums/t/sync-to-server/5917 "2014-07-30T12:55:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jasonahc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jasonahc](https://www.finalbuilder.com/forums/u/jasonahc)
#### Post date: [July 30, 2014, 12:55pm UTC](https://www.finalbuilder.com/forums/t/sync-to-server/5917/1 "2014-07-30T12:55:00Z")

</div>

We are having some problems with one of our builds that does not seems to copy files back to the server between stages.  
  
It is working in other builds and we cannot see any discrepancies in the build set-up. Below is the log output from the failing sync.  
  
As you can see the final action of the build stage is to copy all of the test .DLLs to the Output folder. The agent sync then logs the message ‘0 files found’. If we remote onto the build agent we can see that the files are indeed in the workspaces output folder, they are just not being synced. Very odd. Any hints?  
  
  
  
#Server to agent rules  
#---------------------------------------------------  
#copy output from previous stages to agent  
/Output\*\* \> /  
  
#---------------------------------------------------  
#Agent to server rules  
#---------------------------------------------------  
#copy output from the agent to the server  
/ \< /Output\*\*  
  
#---------------------------------------------------  
  
  
  
11:05:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:05:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[32mDone, without errors.[39m  
11:05:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Run DOS Command / Batch File action completed successfully. Exit code: 0  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Copy [C:\CI\_WS\Ws\5698\Source\soa-scheduling\tests]  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Overwrite existing files: True  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;List each copied item: True  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Fail if no files are copied: True  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Pattern: **.dll  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Copied ‘C:\CI\_WS\Ws\5698\Source\soa-scheduling\tests\Ahc.Blue.Scheduling.dll’ to 'C:\CI\_WS\Ws\5698\Output\Tests\Ahc.Blue.Scheduling.dll’  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Copied ‘C:\CI\_WS\Ws\5698\Source\soa-scheduling\tests\Ahc.Blue.Scheduling.Test.dll’ to 'C:\CI\_WS\Ws\5698\Output\Tests\Ahc.Blue.Scheduling.Test.dll’  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Copied ‘C:\CI\_WS\Ws\5698\Source\soa-scheduling\tests\nunit.framework.dll’ to 'C:\CI\_WS\Ws\5698\Output\Tests\nunit.framework.dll’  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Copy action completed successfully  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Agent To Server Workspace Sync  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Started syncing files from the agent to the server.  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Workspace Syncing  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Using UNC Transport.  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;/ \< /Output**  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;0 files found.  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\_\_variables \< \_\_variables\*  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\CIMANAGER\_Environment.xml \< C:\CI\_WS\Ws\5698\_\_variables\SP-CIMANAGER\_Environment.xml  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\NETCI\_Environment.xml \< C:\CI\_WS\Ws\5698\_\_variables\NETCI\_Environment.xml  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\VariableNamespaces.xml \< C:\CI\_WS\Ws\5698\_\_variables\VariableNamespaces.xml  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:05:18&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Finished syncing files from the agent to the server.  
11:05:37&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Artifacts Registration  
11:05:37&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Started registering artifacts  
11:05:37&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Finished registering artifacts  
11:06:55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stage: Unit Test  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Server To Agent Workspace Sync  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Started syncing files from the server[CIManager] to the agent [CITest]  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Workspace Syncing  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Using UNC Transport.  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;/Output\*\* \> /  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;0 files found.  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\_\_variables\* \> \_\_variables  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\CIMANAGER\_Environment.xml \> C:\CI\_WS\Ws\5698\_\_variables\CIMANAGER\_Environment.xml  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\NETCI\_Environment.xml \> C:\CI\_WS\Ws\5698\_\_variables\NETCI\_Environment.xml  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\VariableNamespaces.xml \> C:\CI\_WS\Ws\5698\_\_variables\VariableNamespaces.xml  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:07:02&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Finished syncing files from the server [[Sp-CIManager.adastra.co.uk](http://Sp-CIManager.adastra.co.uk)] to the agent [SP-CITEST01].  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Run unit tests  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Action ‘Run unit tests’ has failed due to an error.  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;No testable files found. Check that you have entered valid paths for the Files field. Also ensure that the Workspace and Repository Rules are set up correctly to copy the files to the agent.  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Agent To Server Workspace Sync  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Started syncing files from the agent to the server.  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Workspace Syncing  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Using UNC Transport.  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;/ \< /Output\*\*  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;0 files found.  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\_\_variables \< \_\_variables\*  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\CIMANAGER\_Environment.xml \< C:\CI\_WS\Ws\5698\_\_variables\CIMANAGER\_Environment.xml  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\CITEST\_Environment.xml \< C:\CI\_WS\Ws\5698\_\_variables\CITEST\_Environment.xml  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\NETCI\_Environment.xml \< C:\CI\_WS\Ws\5698\_\_variables\NETCI\_Environment.xml  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\CIMANAGER\ContinuaServerShare\Ws\soa-scheduling\5698\_\_variables\VariableNamespaces.xml \< C:\CI\_WS\Ws\5698\_\_variables\VariableNamespaces.xml  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
11:07:15&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Finished syncing files from the agent to the server.  
11:07:37&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Artifacts Registration  
11:07:37&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Started registering artifacts  
11:07:37&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Finished registering artifacts

---

<div class="post-metadata">

### Author: ![peter.toms](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/df788c/32.png) [@peter.toms](https://www.finalbuilder.com/forums/u/peter.toms)
#### Post date: [July 31, 2014, 4:13am UTC](https://www.finalbuilder.com/forums/t/sync-to-server/5917/2 "2014-07-31T04:13:13Z")

</div>

Hi Jason, thank you very much for posting. We have been unable to replicate this situation unfortunately, could we please gather some further information off you.   
  
 Would you please be able to send us a full build log ([support@finalbuilder.com](mailto:support@finalbuilder.com)), also a debug run of the build in question: [http://wiki.finalbuilder.com/display/continua/Debug+Logging](http://wiki.finalbuilder.com/display/continua/Debug+Logging). Also please confirm in your email the version of Continua you are using.   
  
 Thanks again for your time, it seems strange that it works on some builds but not others

---

<div class="post-metadata">

### Author: ![jasonahc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jasonahc](https://www.finalbuilder.com/forums/u/jasonahc)
#### Post date: [July 31, 2014, 10:30am UTC](https://www.finalbuilder.com/forums/t/sync-to-server/5917/3 "2014-07-31T10:30:46Z")

</div>

We have fixed the problem… but it has only raised more questions.   
  
 We attempted to start from scratch with a build, to see if it was something we had done wrong, but the problem persisted. So we went back to the documentation and followed that rather than the defaults for a new project.   
  
 The ‘repository rules’ section had different examples.   
  
 #Server to agent rules   
 #---------------------------------------------------   
 #copy output from previous stages to agent   
 /Output\*\* \> /   
  
 #---------------------------------------------------   
 #Agent to server rules   
 #---------------------------------------------------   
 #copy output from the agent to the server   
 Output\ \< Output\*\* **_\<-- This line has changed from the default_**   
  
 #---------------------------------------------------  
  
  
 This has fixed the problem, but some of our older projects still work with the old format for the copy expression. However all new projects we create need to have the default (seen in previous post) swapped out for this one.   
  
 I will see if I can get hold of some logs.

---

<div class="post-metadata">

### Author: ![peter.toms](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/df788c/32.png) [@peter.toms](https://www.finalbuilder.com/forums/u/peter.toms)
#### Post date: [August 4, 2014, 1:48am UTC](https://www.finalbuilder.com/forums/t/sync-to-server/5917/4 "2014-08-04T01:48:30Z")

</div>

Hi Jason thank you for the further information, could I please confirm which version you are using?   
  
 We have recently resolved a number of inconsistencies with forward and back slashes in the rules area (1.0.0.3191, release log: [https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history)).

---

<div class="post-metadata">

### Author: ![jasonahc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jasonahc](https://www.finalbuilder.com/forums/u/jasonahc)
#### Post date: [August 4, 2014, 10:24am UTC](https://www.finalbuilder.com/forums/t/sync-to-server/5917/5 "2014-08-04T10:24:43Z")

</div>

We are running 3158… so maybe it is this.

---

<div class="post-metadata">

### Author: ![peter.toms](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/df788c/32.png) [@peter.toms](https://www.finalbuilder.com/forums/u/peter.toms)
#### Post date: [August 5, 2014, 6:50am UTC](https://www.finalbuilder.com/forums/t/sync-to-server/5917/6 "2014-08-05T06:50:04Z")

</div>

Hi Jason, it would be good if you could try the new version. Also could you please send a full build log (with debugging on) to [support@finalbuilder.com](mailto:support@finalbuilder.com).   
  
 Thanks.
