Copy File fails

Hi Support Team,

4 days ago I updated from 1.7.1 to 1.8.0.176.

Our build contains a stage where a Copy File ContinuaCI Action is used to copy a file from build folder to a network location. Today two from four builds failed with the following message:

Copying files in folder ‘C:\ContinuaCI\Agent\Ws\10111\MyProject’ matching pattern(s) ‘Data\MyProject*.FB’ to folder '\ABCXYZ1\SW\MyProject\v3.0.0.109’
Failed to copy file ‘C:\ContinuaCI\Agent\Ws\10111\MyProject\Data\MyProject.FB’. (1398) There is a time and/or date difference between the client and server: [\?\UNC\ABCXYZ1\SW\MyProject]  

In fact the time as well as time zone settings are eqal and correct on both the build server and the target server. The other two builds has been successful. Their log contains:

Copying files in folder ‘C:\ContinuaCI\Agent\Ws\10107\MyProject’ matching pattern(s) ‘Data\MyProject*.FB’ to folder '\ABCXYZ1\SW\MyProject\v3.0.0.109’
Pattern: Data\MyProject*.FB (2 matching files).  
Copied ‘C:\ContinuaCI\Agent\Ws\10107\MyProject\Data\MyProject.FB’ to '\AMBGFS1\SW\MyProject\v3.0.0.109\Data\MyProject.FB’
Copied ‘C:\ContinuaCI\Agent\Ws\10107\MyProject\Data\MyProject_262262.FB’ to '\AMBGFS1\SW\MyProject\v3.0.0.109\Data\MyProject_262262.FB’
Copy action completed successfully. 2 files copied.

Is it possible to disable the time check?

Best regards
Michael

Hi Micheal,

There are no time checks in the Copy action code. This is reported by the operating system when we call the System.IO.FileInfo.CopyTo method of the .Net framework and is a result of a security check when logging in to the AMBGFS1 server. Try running w32tm /resync on both the build server and target server to ensure they are both synced with the domain controller. 

Hi Dave,

Thanks for this info. The build this morning was successful. Probably yesterday something went wrong with our NTP server.

Best regards
Michael