-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gsync only create directories #69
Comments
I get this same issue |
Hi, $ time gsync --owner --group --progress --perms -u -d -r -vi /opt/ict/monday/ drive://ict/ <f+++++++++ 2012/work-jp.docx all shows 0.00B/s ..when checking through Google Drive webpage.. only folder is created but no content... |
Hi.. I fixed it by using method as this thread issue : #66
... also many files were not sync maybe because of above error? |
Yes, i have the same, i think this is some kind of a time out error or something. Anyway, if you don't use the -u flag and run the program several times, it will upload also the failed files. And it takes much less than the first time, as it uploads only the missing files. |
I have the same issue and can't get files uploaded(with or without the -u Thanks, Phil On Sat, Jul 12, 2014 at 10:41 AM, GyroLand notifications@github.com wrote:
|
Also having the directories but no files issue. I don't think it's a timeout error, running with -v shows that it's not spending much time on any given file. |
I've yet to decipher what's happening myself. In my case I found a
|
$ gsync --version I'm also having this problem. It seems to have started only recently; old files seem to update (I think), but new ones don't upload. Directories are created, but are unpopulated on Google Drive. I'm wondering if it has to do with having a directory path that's more than one level deep. Here's one example: gsync -c -r -t -p -o -g -v --progress --delete -l -s /mnt/PERSONAL/Dane/Recipes/ drive://orchestrator/Recipes I've tried this with just the "-r -v --progress" options, as well, and it still doesn't upload the files. (I refreshed the Google Drive page a few times, just to be sure.) My network activity applet reports that while (supposedly) uploading directories full of small text files, the download speed is ~12KiB/s, and the upload speed is ~14KiB/s. (My Internet connection is much, much faster than this, so I don't think it's an uplink issue.) I've tried doing this sync multiple times, and the files haven't yet been uploaded, so the solution, above, about just trying it a few times seems not to be working for me. Thanks for your work on this! It's truly an indespensible tool! |
It looks like editing
...to:
...solves the problem, per #66. It does, however, produce this when it runs into a file that ends in a
|
Worked for me. Thanks, Phil On Fri, Sep 19, 2014 at 1:05 PM, dmutters notifications@github.com wrote:
|
Solution not working for me. Making the change it will not run at all. |
It worked for a while, for me, and then broke. This is what I did to fix it (as root):
It's once again working for me with only the occasional hiccup. |
the fix worked for me for quite some time and just the other I realized it
|
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, |
bingo. Thanks, Phil On Fri, Oct 31, 2014 at 9:23 PM, johanels notifications@github.com wrote:
|
Ok, sow how do I fix this? |
My logs are full of this notice. Thanks for pointing it out. How can we see what key we're using? That would be a pretty big problem if we're all using the same key, and there's a limit on how much data transfer can be ascribed to any one key. |
Hi, The Google JSON key information is loaded in /usr/local/lib/python2.7/dist-packages/libgsync/drive/client_json.py and are the same from the source, so everyone is using the same key. https://github.com/iwonbigbro/gsync/blob/master/libgsync/drive/client_json.py I created a new project on Google Developers site, created the JSON auth and changed the file on my machine. I see the requests in Google Developers Dashboard, but number of requests matches number of errors, and gsync still does not upload. https://console.developers.google.com Will keep trying. |
Thanks, johanels. Let us know when you get it sorted! Hopefully, such a fix can be integrated into the gsync code... |
Same issue here, only empty directories created. |
+1 |
#66 fix also worked here |
As johanels indicated, the gsync utility is set to use pre-defined Google API key / credentials when shipped. This means that by default all users will utilise the data limit (typically 10m API requests per day). Therefore, you need to create your own Google API Project with associated key / credentials. Method to resolve this:
All the best, Jez |
Thank you Jez. Seems to be running and I can see Response codes in the Development Console. |
Great. Have fun. The solution is clearly to move the client_json requirement to within a I plan on submitting a patch for this in the near future. Jez On Tuesday, 6 January 2015, johanels notifications@github.com wrote:
This email is confidential in that it is intended for the exclusive |
Hi Jez, I've been following this fix and am struggling as I don't seem to have the directory: /usr/local/lib/python2.7/dist-packages/libgsync/drive/ I'm on Centos 6.6 server and have tried uninstalling and re-installing GSync following carrying out an installation of Python 2.7. I would appreciate your guidance. Many thanks, |
Hi So I don't have access to a CentOS 6.6 right this second. However, the issue is highly likely to be just that libgsync is in a different place to the one on my system. To find it, you could do either: jtucker@elmo:~/Desktop$ pip show -f gsync --- Name: gsync Version: 0.1.14 Location: /usr/local/lib/python2.7/dist-packages Requires: google-api-python-client, docopt, httplib2, oauth2client, python-dateutil, urllib3 Files: Cannot locate installed-files.txt So libgsync on mine is under: /usr/local/lib/python2.7/dist-packages (I'm presuming you've used pip, if you've used the git version, you should know where you've installed it ;-) or updatedb locate drive | grep libgsync or find / -name "drive" -type d -print | grep libgsync All the best, Jez |
Thank you oh so much. The first command you issued showed me that instead of dist-packages, it was within site-packages. I shall progress now. Many many thanks. |
https://github.com/google/skicka already handles this, and appears to also meet my basic needs for syncing content up and down to google drive. |
Hi there, I'm still getting the exceeded 30GB issue, but my client_json.py file has the google API secret in it as followed by the steps above. It's giving me the following error: DEBUG: 'Exception': File "/usr/local/lib/python2.7/site-packages/libgsync/drive/init.py", line 703, in update DEBUG: <HttpError 500 when requesting https://www.googleapis.com/drive/v2/files/0B2oFXY6ToU6fNE04aUY wclZFMTg?alt=json&setModifiedDate=true&newRevision=true returned "Internal Error">: File "/usr/loc al/lib/python2.7/site-packages/libgsync/crawler.py", line 150, in run Error: <HttpError 500 when requesting https://www.googleapis.com/drive/v2/files/0B2oFXY6ToU6fNE04aUY wclZFMTg?alt=json&setModifiedDate=true&newRevision=true returned "Internal Error"> When I go in to the link, it tells me the following: { but the issue is that I already have a google API Secret with an account that has a 1TB limit. Please can I have further assistance? |
Hello,
I have a directory that I wish to sync with google drive.
My directory, temp, contain one text file, with the name apan.txt and content "apan"
$ gsync -r --progress -v temp/ drive://temp
./
apan.txt
0 0% 0.00B/s 0:00:00
sent 0 bytes received 0 bytes 0.00 bytes/sec
However, only the directory temp is created on the google drive.
What do I do wrong?
/Richard
The text was updated successfully, but these errors were encountered: