We initiated an inquiry on behalf of CyberPanel regarding the integration of rclone with our backup system. However, we have encountered issues with Google Drive backups. A corresponding issue has been opened with Rustic, and further details can be found here: Problem using Google drive via rclone · Issue #1119 · rustic-rs/rustic · GitHub.
Following instructions provided by the Rustic team, we conducted thorough testing and confirmed that their configuration is functioning properly. It appears that the issue stems from rclone. Additional details can be found below.
(CyberCP) [root@dockertesting CyberCP]# sudo -u wpmau6540 rclone ls unasirdrive:~
2024/04/18 11:59:26 Failed to create file system for "unasirdrive:~": couldn't find root directory ID: Get "https://www.googleapis.com/drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": couldn't fetch token: unauthorized_client: if you're using your own client id/secret, make sure they're properly set up following the docs
(CyberCP) [root@dockertesting CyberCP]#
I've taken refresh and access token out of this for security. It used to work fine just few days ago but now with same config it gives error both while using with rustic and directly with rclone as well
error is as below
(CyberCP) [root@dockertesting CyberCP]# sudo -u wpmau6540 rclone ls unasirdrive:~
2024/04/18 11:59:26 Failed to create file system for "unasirdrive:~": couldn't find root directory ID: Get "https://www.googleapis.com/drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": couldn't fetch token: unauthorized_client: if you're using your own client id/secret, make sure they're properly set up following the docs
please understand, we are just volunteers, cannot see into your machine.
so, please answer all the questions without having to keep asking over again, ok?
perhaps, just start over from scratch, re-create the gdrive remote using rclone config
We've set up the remote multiple times and I think pretty much cleared everything (note: we manually set up the remote, but we checked with rclone cli too). Here it is again
Note: The config present in rclone file is verified by checking via python code (i mean the access and refresh token works)
The full command you’re attempting to use.
sudo -u wpmau6540 rclone ls unasirdrive:~
A logfile of rclone’s output with personal information removed. If it is large, you can use services like pastebin.com . It’s usually helpful to increase the logging with -v or -vv depending.
2024/04/18 13:10:26 Failed to create file system for "unasirdrive:~": couldn't find root directory ID: Get "https://www.googleapis.com/drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": couldn't fetch token: unauthorized_client: if you're using your own client id/secret, make sure they're properly set up following the docs
The rclone config you’re using. If you don’t know where to find it, check here. Before posting ensure you’ve removed any confidential information like credentials.
What version of rclone you’re using. It’s also helpful to try rclone with the latest beta if you’re using a stable release to understand if your issue was recently fixed.
i do something similar with S3 remotes and boto3. create a temporary session token and feed it to rclone.
in your case, there must be some subtle difference, perhaps with encoding.
have you tried it the other way?
create the remote using rclone config and feed that token to the python script.