What is the problem you are having with rclone?
I connected box when I set up my machine a few month ago, but I can't access it. I deleted and tried to connect again but the explorer link fails with this message:
Error: redirect_uri_mismatch
response_type=code
redirect_uri=http://localhost:53682/
state=ra0fdun7tYY0T885fVXQeQ
client_id=d0374ba6pgmaguie02ge15sv1mllndho
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.15.0-131-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Box
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone config
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[gkira]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
root_folder_id = XXX
team_drive =
[glmgg]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
[gubb]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
root_folder_id = XXX
team_drive =
[mega]
type = mega
user = XXX
pass = XXX
[onedrive]
type = onedrive
chunk_size = 10G
token = XXX
drive_id = XXX
drive_type = personal
[photos]
type = google photos
token = XXX
[yandex]
type = yandex
token = XXX
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
already pasted the error in the explorer
Most likely the same issue as:
opened 02:55PM - 30 Jan 25 UTC
closed 12:16PM - 03 Feb 25 UTC
bug
Remote: Box
Point Release Candidate
#### What is the problem you are having with rclone?
rclone seems not to work w… ith Box (at least version 1.69 and 1.67, others I have not tested) and OAuth 2.0 .
With version 1.57, however, it works just out of the box
#### What is your rclone version (output from `rclone version`)
1.69 and 1.67
#### Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
MacOS, Linux
#### Which cloud storage system are you using? (e.g. Google Drive)
Box
#### The command you were trying to run (e.g. `rclone copy /tmp remote:tmp`)
rclone config
#### A log from the command with the `-vv` flag (e.g. output from `rclone -vv copy /tmp remote:tmp`)
rclone authorize "box"
2025/01/30 12:14:58 NOTICE: Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.
2025/01/30 12:14:58 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=KH3-...
2025/01/30 12:14:58 NOTICE: Log in and authorize rclone for access
2025/01/30 12:14:58 NOTICE: Waiting for code...
2025/01/30 12:16:09 NOTICE: Got code
Error: failed to get token: oauth2: "redirect_uri_mismatch" "The redirect URI is missing or do not match"
Usage:
rclone authorize [flags]
Flags:
--auth-no-open-browser Do not automatically open auth link in default browser
-h, --help help for authorize
--template string The path to a custom Go template for generating HTML responses
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
2025/01/30 12:16:09 NOTICE: Fatal error: failed to get token: oauth2: "redirect_uri_mismatch" "The redirect URI is missing or do not match"
When I checked from the browser, it seems that Box.com redirects to localhost instead of 127.0.0.1 which creates then a uri mismatch. I tried many different things, but couldn't get it working.
In my desparation, I also tried version 1.57 and suprisingly, there everything worked smoothly out of the box and I could link rclone with Box and start my download.
So, apparently, something happened along the way from version 1.57 to 1.67/69 that prevents Box to use the correct redirect_uri and it uses localhost that creates a mismatch.
Quick solution: Use version 1.57
#### How to use GitHub
* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are affected by the same issue.
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
* Subscribe to receive notifications on status change and new comments.
There is fix available in the latest beta if you need it urgently. Otherwise wait for the next release.
system
(system)
Closed
March 7, 2025, 3:22am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.