vitalif / grive2

Google Drive client with support for new Drive REST API and partial sync
http://yourcmc.ru/wiki/Grive2
GNU General Public License v2.0
1.52k stars 140 forks source link

"request failed due to auth token expired: 401" with latest build #219

Closed pyron83 closed 6 years ago

pyron83 commented 6 years ago

Hi,

on Ubuntu Mate 18.04, I just reinstalled grive from sources, with the latest commits.

Now, even after re-running "grive -a", I get:

request failed due to auth token expired: 401 (body: {

Reading local directories Reading remote server file list Synchronizing files sync "./grive_sources/grive2/debian/grive/usr/bin/grive" doesn't exist in server, uploading request failed due to auth token expired: 401 (body: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } } ). refreshing token request failed due to auth token expired: 401 (body: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } } ). refreshing token request failed due to auth token expired: 401 (body: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } } ). refreshing token request failed due to auth token expired: 401 (body: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } } ). refreshing token request failed due to auth token expired: 401 (body: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } } ). refreshing token request failed due to auth token expired: 401 (body: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } }

(and so on...)

I already tried to delete '.grive' and '.grive-state' and re-run 'grive -a'

the funny thing about this is issue, is that that above process never ends: I've a crontab with "pidof grive || grive -p $PATH" and it continues to return the pid of the grive process, so it means the grive process never timeouts and never ends and continues with the '401 login required' over and over

I sincerely don't know what else to try

thanks

pyron83 commented 6 years ago

there is a version mismatch on my system, i had installed "grive2 (0.5.1+git20160731)"

when I was on ubuntu 16.04 i had a newer version

so it was obviously an old version, with the 401 bug

I'm gonna investigate why I did install this.

thanks for the attention