Problem adding Dropbox app ID

What is the problem you are having with rclone?

I have some Dropbox remotes that I would like to use my own app IDs with. I have tried setting them up using the instructions here Dropbox

Get your own Dropbox App ID

When you use rclone with Dropbox in its default configuration you are using rclone's App ID. This is shared between all the rclone users.

Here is how to create your own Dropbox App ID for rclone:

  1. Log into the Dropbox App console with your Dropbox Account (It need not to be the same account as the Dropbox you want to access)
  2. Choose an API => Usually this should be Dropbox API
  3. Choose the type of access you want to use => Full Dropbox or App Folder
  4. Name your App. The app name is global, so you can't use rclone for example
  5. Click the button Create App
  6. Switch to the Permissions tab. Enable at least the following permissions: account_info.read, files.metadata.write, files.content.write, files.content.read, sharing.write. The files.metadata.read and sharing.read checkboxes will be marked too. Click Submit
  7. Switch to the Settings tab. Fill OAuth2 - Redirect URIs as http://localhost:53682/
  8. Find the App key and App secret values on the Settings tab. Use these values in rclone config to add a new remote or edit an existing remote. The App key setting corresponds to client_id in rclone config, the App secret corresponds to client_secret

However when I try to create the remote it is throwing an error

Failed to create file system for "TransfersCrypt:/Encrypted/": failed to make remote "Transfers:/Rich/SKULL/" to wrap: g>
Response: {"error": "invalid_client: Invalid client_id or client_secret"}

The remotes work fine if I remove the client ID and client secret

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

rclone v1.59.2

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-52-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.6
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Dropbox

The rclone config contents with secrets removed.

[Transfers]
type = dropbox
token = {"redacted>
client_id = redacted
client_secret = redacted

[TransfersCrypt]
type = crypt
remote = Transfers:/Rich Lapthorn/SKULL/
filename_encryption = standard
directory_name_encryption = true
password = redacted
password2 = redacted

hi,
make sure you have the correct values.

can you post the output of
rclone lsd Transfers: -vv

at dropbox website, you would see
image

and this is what the redacted remote would look like in rclone config file

[dropbox]
type = dropbox
client_id = qqabv3siu6s52xx
client_secret = g28ukzf2ootwmxx
token = {"access_token":"","token_type":"bearer","refresh_token":"","expiry":""}
craftyclown@KingKong:~/.config/Docker/Rclone_Transfers/config$ rclone lsd Transfers: -vv
2022/10/31 22:58:24 DEBUG : rclone: Version "v1.59.2" starting with parameters ["rclone" "lsd" "Transfers:" "-vv"]
2022/10/31 22:58:24 DEBUG : Creating backend with remote "Transfers:"
2022/10/31 22:58:24 DEBUG : Using config file from "/home/craftyclown/.config/rclone/rclone.conf"
2022/10/31 22:58:24 DEBUG : Transfers: Loaded invalid token from config file - ignoring
2022/10/31 22:58:24 DEBUG : Transfers: Token refresh failed try 1/5: oauth2: cannot fetch token: 400 Bad Request
Response: {"error": "invalid_client: Invalid client_id or client_secret"}
2022/10/31 22:58:25 DEBUG : Transfers: Loaded invalid token from config file - ignoring
2022/10/31 22:58:26 DEBUG : Transfers: Token refresh failed try 2/5: oauth2: cannot fetch token: 400 Bad Request
Response: {"error": "invalid_client: Invalid client_id or client_secret"}
2022/10/31 22:58:27 DEBUG : Transfers: Loaded invalid token from config file - ignoring
2022/10/31 22:58:27 DEBUG : Transfers: Token refresh failed try 3/5: oauth2: cannot fetch token: 400 Bad Request
Response: {"error": "invalid_client: Invalid client_id or client_secret"}
2022/10/31 22:58:28 DEBUG : Transfers: Loaded invalid token from config file - ignoring
2022/10/31 22:58:29 DEBUG : Transfers: Token refresh failed try 4/5: oauth2: cannot fetch token: 400 Bad Request
Response: {"error": "invalid_client: Invalid client_id or client_secret"}
2022/10/31 22:58:30 DEBUG : Transfers: Loaded invalid token from config file - ignoring
2022/10/31 22:58:30 DEBUG : Transfers: Token refresh failed try 5/5: oauth2: cannot fetch token: 400 Bad Request
Response: {"error": "invalid_client: Invalid client_id or client_secret"}
2022/10/31 22:58:31 ERROR : : error listing: Post "https://api.dropboxapi.com/2/files/list_folder": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect Transfers:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error": "invalid_client: Invalid client_id or client_secret"}
2022/10/31 22:58:31 DEBUG : 6 go routines active
2022/10/31 22:58:31 INFO  : Dropbox root '': Commiting uploads - please wait...
2022/10/31 22:58:31 Failed to lsd with 2 errors: last error was: Post "https://api.dropboxapi.com/2/files/list_folder": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect Transfers:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error": "invalid_client: Invalid client_id or client_secret"}

The app key and app secret match the ones I used on my remote

try running that command

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