iwonbigbro/gsync

Download syncs fail

Opened this issue · 4 comments

Looking at the code in crawler.py but not able to pinpoint the reason form the following
DEBUG: Exception('Got 0 bytes, expected 35403 bytes',): File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 150, in run
self._walk(srcpath, self._walkCallback, self._dev)
File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 124, in _walk
self._sync(f)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/init.py", line 31, in call
self._sync(path)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/init.py", line 188, in _sync
self.dst.create(dstPath, srcFile)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/init.py", line 316, in create
self.createFile(path, srcObj)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/__init
.py", line 219, in createFile
self._updateFile(path, src)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/local/__init
.py", line 173, in _updateFile
bytesWritten, fileSize

Error: Exception('Got 0 bytes, expected 35403 bytes',)
sent 0 bytes received 0 bytes 0.00 bytes/sec

I start gysnc with both relative and abolute paths and recieve the same results each time, any ideas?

I'm getting the same thing when I try to upload. It's only started since I did a "sudo pip install --upgrade gsync", a few minutes ago.

$ sudo gsync -u -r -t -v --progress --delete -l -s /mnt/PERSONAL/Dane/WorkStuff/ drive://orchestrator/WorkStuff
DEBUG: ImportError('No module named uritemplate',): File "/usr/local/bin/gsync", line 55, in
crawler = Crawler(p, dest)
File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 57, in init
info = self._drive.stat(self._dst)
File "/usr/local/lib/python2.7/dist-packages/libgsync/drive/init.py", line 507, in stat
ents = self._query(parentId = parentId)
File "/usr/local/lib/python2.7/dist-packages/libgsync/drive/init.py", line 767, in _query
service = self.service()
File "/usr/local/lib/python2.7/dist-packages/libgsync/drive/init.py", line 244, in service
from apiclient.discovery import build_from_document, DISCOVERY_URI
File "/usr/local/lib/python2.7/dist-packages/apiclient/discovery.py", line 49, in
import uritemplate

Error: No module named uritemplate

I just tried uninstalling with "sudo pip uninstall gsync" and installing with "git clone https://github.com/iwonbigbro/gsync.git ; cd gsync ; sudo ./setup.py install", and got the same result.

If you follow the link to https://www.googleapis.com/drive/v2/files/ that is part of the error, it should tell you what Google is unhappy about.

In my case I used to much for one day.

I'm thinking this might be caused by something else.

Found a "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." error in the cache files link for the files API.

If you

grep -R "selfLink" ~/.gsync/ | more

and look for the https://www.googleapis.com/drive/v2/files/.......... links and try them, I got the response from Google about a limit.

If you also get the key

https://www.googleapis.com/drive/v2/files/0B42Fqxu8L6YfYkZW.........

Then we are all using the same key.

Thank you,