Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4466

Rclone and Google Drive Authorization giving an error

$
0
0

I'm running a Ubuntu 22.04.3 LTS public server. I'm attempting to install Rclone to back up a folder to my Google Drive. I'm using the notes from where I did this before but I cannot get it to work this time.

I've installed Rclone and then ran the rclone config to set it up with Google.

Here is what I was prompted with:

# rclone config2024/01/22 19:29:43 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaultsNo remotes found - make a new onen) New remotes) Set configuration passwordq) Quit confign/s/q> nname> google-driveType of storage to configure.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value 1 / 1Fichier   \ "fichier" 2 / Alias for an existing remote   \ "alias" 3 / Amazon Drive   \ "amazon cloud drive" 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, Tencent COS, etc)   \ "s3" 5 / Backblaze B2   \ "b2" 6 / Box   \ "box" 7 / Cache a remote   \ "cache" 8 / Citrix Sharefile   \ "sharefile" 9 / Dropbox   \ "dropbox"10 / Encrypt/Decrypt a remote   \ "crypt"11 / FTP Connection   \ "ftp"12 / Google Cloud Storage (this is not Google Drive)   \ "google cloud storage"13 / Google Drive   \ "drive"14 / Google Photos   \ "google photos"15 / Hubic   \ "hubic"16 / In memory object storage system.   \ "memory"17 / Jottacloud   \ "jottacloud"18 / Koofr   \ "koofr"19 / Local Disk   \ "local"20 / Mail.ru Cloud   \ "mailru"21 / Microsoft Azure Blob Storage   \ "azureblob"22 / Microsoft OneDrive   \ "onedrive"23 / OpenDrive   \ "opendrive"24 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)   \ "swift"25 / Pcloud   \ "pcloud"26 / Put.io   \ "putio"27 / SSH/SFTP Connection   \ "sftp"28 / Sugarsync   \ "sugarsync"29 / Transparently chunk/split large files   \ "chunker"30 / Union merges the contents of several upstream fs   \ "union"31 / Webdav   \ "webdav"32 / Yandex Disk   \ "yandex"33 / http Connection   \ "http"34 / premiumize.me   \ "premiumizeme"35 / seafile   \ "seafile"Storage> 13** See help for drive backend at: https://rclone.org/drive/ **Google Application Client IdSetting your own is recommended.See https://rclone.org/drive/#making-your-own-client-id 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 ("").client_id>OAuth Client SecretLeave blank normally.Enter a string value. Press Enter for the default ("").client_secret>Scope that rclone should use when requesting access from drive.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value 1 / Full access all files, excluding Application Data Folder.   \ "drive" 2 / Read-only access to file metadata and file contents.   \ "drive.readonly"   / Access to files created by rclone only. 3 | These are visible in the drive website.   | File authorization is revoked when the user deauthorizes the app.   \ "drive.file"   / Allows read and write access to the Application Data folder. 4 | This is not visible in the drive website.   \ "drive.appfolder"   / Allows read-only access to file metadata but 5 | does not allow any access to read or download file content.   \ "drive.metadata.readonly"scope> 1ID of the root folderLeave blank normally.Fill in to access "Computers" folders (see docs), or for rclone to usea non root folder as its starting point.Enter a string value. Press Enter for the default ("").root_folder_id>Service Account Credentials JSON file pathLeave blank normally.Needed only if you want use SA instead of interactive login.Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.Enter a string value. Press Enter for the default ("").service_account_file>Edit advanced config? (y/n)y) Yesn) No (default)y/n> nRemote configUse auto config? * Say Y if not sure * Say N if you are working on a remote or headless machiney) Yes (default)n) Noy/n> nPlease go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=xxxxxxxx.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=PWUG9PLt1Log in and authorize rclone for accessEnter verification code>

If I enter in my own credentials or use the default, I'm getting the same error:

enter image description here

What I've tried:

  1. Enter in an api key AND using the default.
  2. Restarted the server.
  3. Recreated the credentials.

When I ran these steps previously, it was from Ubuntu 22.04 Workstation and I was able to authenticate the api through the browser. I'm not able to do that this time on a headless server.

Anyone have any suggestions?


Viewing all articles
Browse latest Browse all 4466

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>