Redirect URL: I don't know how to set it

What is the problem you are having with rclone?

I am having the same problem as the owner of this thread: "NOTICE: Make sure your Redirect URL is set to "" in your custom config". However, I do not understand the solution that ncw gives: "When you set up your client_id at google, you need to put the redirect URL in there".

I feel really stupid but I do not know where to put the redirect. Is it in the rclone config? or in some other config?

Can you please help an obviously clueless rclone beginner? Hopefully I can then start using google drive ... :slight_smile:

Run the command 'rclone version' and share the full output of the command.

rclone 1.60.1

  • os/version: fedora 37 (64 bit)
  • os/kernel: 6.1.14-200.fc37.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.3
  • go/linking: dynamic
  • go/tags: none
It does not seem like the last version, if I look at the fedora output of the previous question. I seem to have 1.60.1 and the latest version is 1.61.1. Would that really be the problem? I still don't know how to add the redirect url.

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)

rclone config

The rclone config contents with secrets removed.

Name                 Type
====                 ====
emigratie            drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> e

Select remote.
Choose a number from below, or type in an existing value.
 1 > emigratie
remote> 1

Editing existing "emigratie" remote with options:
- type: drive
- client_id: xxxxxxxxxxxxxxx
- client_secret: xxxxxxxxxxxxxxxxxxxx
- scope: drive

Option client_id.
Google Application Client Id
Setting your own is recommended.
See 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 (xxxxxxx).

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a string value. Press Enter for the default (xxxxxxxxxxxxxx).

Option scope.
Scope that rclone should use when requesting access from drive.
Choose a number from below, or type in your own string value.
Press Enter for the default (drive).
 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> 1

Option service_account_file.
Service Account Credentials JSON file path.
Leave 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 value. Press Enter to leave empty.

Edit advanced config?
y) Yes
n) No (default)

Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine

y) Yes (default)
n) No

<5>NOTICE: Make sure your Redirect URL is set to "" in your custom config.
<5>NOTICE: If your browser doesn't open automatically go to the following link:
<5>NOTICE: Log in and authorize rclone for access
<5>NOTICE: Waiting for code...

A log from the command with the -vv flag

Paste  log here: if necessary I will provide, but I think my lack of knowledge is the problem.

Thank you very much for your effort and your time!

Did you generate your own client ID and secret?

Yes, I created a client ID and a secret. I just erased them in this post.

Did you get an error when trying to authorize?

I could log on to google. The second line below my google userid referred to rclone. After agreeing, the next page shows "something went wrong". If you need it, I can probably reproduce it.

The error would be helpful.

Try Chrome / Incognito window as well as it's Google is tricky at times.

Ok, here is the screenshot of the error message.

See my previous comment, try Chrome/Incognito..

I actually did immediately, and indeed that works. As a non-techie I would like to know what the incognito means. Is that the same as Chrome?

To finish, I set freeworld chrome to default and that works. Can I set the default back to firefox? Or would that interfere?

Finally, thank you very much for your help!!

Incognito is a private window with no session data/cookies/previous history. It helps to ensure you are logging in as the right user.

Just one more query: is it customary for me to close after I found a solution? Or should I leave it open?

EDIT: the post closes in 3 days anyway, so this is moot.

Thanks for helping!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.