iwonbigbro / gsync

RSync for Google Drive - GSync
Other
238 stars 50 forks source link

gsync creates empty directories, then crashes #68

Open petoetje opened 10 years ago

petoetje commented 10 years ago

Hi, using version 0.1.14 to sync TO google. The source directory is a read-only bind mount of a filesystem with lots of JPGs. After starting gsync, it creates all directories at Google, then crashes with an error 503. All directories remain empty. When restarting the same happens. How to proceed ? Best regards, Christophe

petoetje commented 10 years ago

update : when using the latest committed version, I get

(changed file ID in log to 0BXXXXXXXXXXXamc since I don't know if this is secret)

christo@rico:~/christophe.vangeneugden@gmail.com$ gsync -v -r photo-ro drive://photo-ro photo-ro/ DEBUG: <HttpError 400 when requesting https://www.googleapis.com/drive/v2/files/0BXXXXXXXXXXXamc?alt=json&setModifiedDate=false&newRevision=true returned "Invalid value for: Invalid format: "2014-06-03T18:08:32.058802" is too short">: <HttpError 400 when requesting https://www.googleapis.com/drive/v2/files/0BXXXXXXXXXXXamc?alt=json&setModifiedDate=false&newRevision=true returned "Invalid value for: Invalid format: "2014-06-03T18:08:32.058802" is too short"> DEBUG: <HttpError 400 when requesting https://www.googleapis.com/drive/v2/files/0BXXXXXXXXXXXamc?alt=json&setModifiedDate=false&newRevision=true returned "Invalid value for: Invalid format: "2014-06-03T18:08:32.058802" is too short">: File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/crawler.py", line 193, in run self._walk(srcpath, self._walk_callback, self._dev) File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/crawler.py", line 152, in _walk self._sync(dirpath) File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/sync/init.py", line 263, in call self._sync(path) File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/sync/init.py", line 321, in _sync self.dst.update_attrs(dst_path, src_file) File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/sync/file/init.py", line 471, in update_attrs self.update_attrs(path, src_obj) File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/sync/file/__init.py", line 400, in update_attrs self._update_attrs(path, src, attrs) File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/sync/file/remote/__init.py", line 195, in _update_attrs 'setModifiedDate': GsyncOptions.times File "/usr/local/lib/python2.7/dist-packages/gsync-0.1.14-py2.7.egg/libgsync/drive/init.py", line 873, in update res = req.execute() File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 132, in positional_wrapper return wrapped(_args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/apiclient/http.py", line 723, in execute raise HttpError(resp, content, uri=self.uri)

Error: <HttpError 400 when requesting https://www.googleapis.com/drive/v2/files/0BXXXXXXXXXXXamc?alt=json&setModifiedDate=false&newRevision=true returned "Invalid value for: Invalid format: "2014-06-03T18:08:32.058802" is too short"> sent 0 bytes received 0 bytes 0.00 bytes/sec