astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.59k stars 353 forks source link

Authorization expiration(?) #882

Open tridral opened 3 months ago

tridral commented 3 months ago

From time to time (approximately weekly) my drives fail to mount. I have to remove them, recreate them and reauthorize them, and then they're fine for a while.

The expiration may depend on time or usage (I'm not sure).

I'd like to be able to diagnose the problem and if possible to set these drives so that they don't expire.

Has anyone else seen this issue? Do you have any ideas or solutions?

Many thanks,

'ö-Dzin

astrada commented 3 months ago

Yes, sorry, if you set your app in the OAuth consent screen to Testing, the validity of refresh tokens is limited to one week. I don't think there is a workaround.

tridral commented 3 months ago

Dear Alessandro,

Thank you very much for your reply. This explains the behaviour and gives me the option of changing how things work.

best wishes,

'ö-Dzin

astrada commented 3 months ago

It looks like you can use production mode without Google verification. See rclone/rclone#7963

bobhy commented 1 month ago

I just encountered the expiration for the first time. When I went to move the credential into Production, as recommended above, Google provided this confirmation box:

Push to production? Your app will be available to any user with a Google Account.

You do not need to submit your app for verification. If you change your app's configuration in the future, like adding more than 10 domains, uploading a logo, or requesting sensitive or restricted scopes, you will need to submit for verification .

... Update ... this seems to have worked. I couldn't access the mountpoint until I forced reauthentication via browser (and Google gave me the 'this app has not been verified by Google', but allowed to to proceed if I was willing to be unsafe). I deleted the whole ~/.gdfuse/default folder and recreated it via google-drive-ocamlfuse -id ... in order to get the browser auth. Maybe there's a less destructive way? In any case, I won't know for another 7 days whether it's really being more patient...

...

DirkNie commented 2 weeks ago

Hi, is there a solution available? I have done the above way by deleting the ~/.gfuse/default folder, but I get the Google Access_denied grafik And there is actually no access for 7 days available anymore.

Is there a way to become an developer tester? TIA Dirk

zer0shock commented 1 day ago

Same issue here - Untitled