We are running into some odd behavior with the new 3dsmax startup file sync process. Previously these files were all in the 3dsmax plugin folder, but now live under repository\maxStartup<maxversion>, and are synced to the local machine by the 3dsmax.py process.
In some cases, we are seeing the slave fail during the sync with the following error:
Initialize: Error: IOError : [Errno 13] Permission denied: u'C:\\Users\\scanlinevfx\\AppData\\Local\\Thinkbox\\Deadline10\\slave\\lapro0722\\maxStartup\\2016\\deadlineStartupMax2016.xml' (Python.Runtime.PythonException)
File "C:\Users\scanlinevfx\AppData\Local\Thinkbox\Deadline10\slave\lapro0722\plugins\5a9366014358ee33f4b40f3a\3dsmax.py", line 107, in InitializeProcess
self.MaxStartupAutoUpdate( maxStartupLocalPath, maxStartupRepoPath )
File "C:\Users\scanlinevfx\AppData\Local\Thinkbox\Deadline10\slave\lapro0722\plugins\5a9366014358ee33f4b40f3a\3dsmax.py", line 86, in MaxStartupAutoUpdate
shutil.copy2( os.path.join(repoPath, fileName), os.path.join(localPath, fileName) )
File "C:\Program Files\Thinkbox\Deadline10\bin\lib\shutil.py", line 130, in copy2
copyfile(src, dst)
File "C:\Program Files\Thinkbox\Deadline10\bin\lib\shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
The server files are not readonly, but on occasion we have observed the local files to become readonly for some odd reason.
In addition, another oddity is that in all cases, we have found an additional file to appear in this local sync folder named “toServer.txt” with the word “ready” in the file. This additional file causes a resynchronization of the startup files in every case (so the local files are not acting like a cache), because the code that checks whether there should be any resync or not detects the ‘toServer.txt’ file as a difference:
dcmp = dircmp( localPath, repoPath )
diffFiles = len(dcmp.diff_files) + len( dcmp.left_only ) + len( dcmp.right_only )
dcmp.left_only will contain toServer.txt
Somewhat related to this, but a resync does not clean the destination folder, simply copies the files from the network again, this to toServer file will never disappear.
Not sure what makes the toServer.txt file, as it sometimes contains errors like this:
error
An unexpected exception has occurred in the network renderer and it is terminating.
It seems that the file is being made there by accident (maybe active folder is changed during the sync copy?)
cheers
laszlo