-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.3.0806
-
Fix Version/s: 1.3.1107
-
Component/s: Synchronizer
Somehow the nxdrive_sync.pid file can have been created empty, ie.with no pid written to it, in which case trying to read the pid as an integer fails with:
2014-09-01 11:06:02,055 32503 140468863051520 ERROR nxdrive.synchronizer Error in synchronization thread: invalid literal for int() with base 10: '' Traceback (most recent call last): File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/synchronizer.py", line 185, in run self.controller.synchronizer.loop(sync_thread=self, **self.kwargs) File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/synchronizer.py", line 1424, in loop pid = self.check_running(process_name="sync") File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/synchronizer.py", line 1379, in check_running pid = int(f.read().strip()) ValueError: invalid literal for int() with base 10: ''