"""
My Google Gdrive Mounted cannot be accesssed after one hour. because the token expired. Even I refresh it but now ttoken still expires after 1 hour. I followed the offical setting to production, but it doesn't work. Now, the publishing status of my google app already are In production. Please help, I have been tortured for one month.
"""
Run the command 'rclone version' and share the full output of the command.
"""
rclone v1.61.1
os/version: unknown
os/kernel: 3.10.108 (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.19.4
go/linking: static
go/tags: none
"""
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
This is usually the problem - not set to production.
Are you sure you are actually using the right client_id? Double check the config file against the google console and then run rclone config reconnect name_of_your_remote:
Thank you for the reply. I double check the Cliend_id & secret again & make sure the input same with the Google console.
Then I run rclone config reconnect... it works for 1 hour again. Then.;...droped.
Can you post a screenshot (redact stuff if necessary) of the google console where you set up the ID, and your config file with secrets redacted - thanks.
Option client_id.
Google Application Client Id
Setting your own is recommended.
See Google drive for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a string value. Press Enter for the default (104410819798-b8b3f0pdnfn5gubp2a1supj5khjam9tt.apps.googleusercontent.com).
client_id>
Yes. I didn't verify it as I only setup the app for my own use & I don't know to move it forward.
I follow the steps as the guideline: Google drive (rclone.org)
But when going to the
Click "OAuth consent screen", then click "PUBLISH APP" button and confirm, or add your account under "Test users".
I cannot find where to add my account under "Test users".. can you help to find it out?
H, ncw, I tried everything again, include adding the testing user, adding the domain. but nothing change.
Even, google don't request me to verify the app. I re-do the procedure again, cannot find any wrong steps.
I cannot find where to verify the app, only show "verification not required". There is not clear explanation in Google document. I don't know why. well, so frastrated.
Let's assume that the config is OK because it surely looks OK, and investigate elsewhere.
When rclone runs it needs to re-write the config file to save the updated tokens. Does the rclone that you use to run your mount have permission to write to the config file?
Hi, Ncw,
May you help to check if I used the correct Mount flags as following, Thank you very much.
rclone mount gdplex:/ /volume1/GDrive/O.plex --allow-other --attr-timeout 5m --vfs-cache-mode full --vfs-cache-max-age 24h --vfs-cache-max-size 10G --vfs-read-chunk-size-limit 100M --buffer-size 100M --daemon --allow-non-empty
The user starting the mount must have write access to the config file and the folder containing it. This is needed to store the refreshed token. You can find the file location with rclone config file
If this doesn't help then I suggest you try this simple test sequence with the user your a using to start your mount: