Skip to content

Instantly share code, notes, and snippets.

@kmpm
Last active May 15, 2025 16:53
Show Gist options
  • Save kmpm/1f28f09b0eb59037afc4c88a5c4aa1d1 to your computer and use it in GitHub Desktop.
Save kmpm/1f28f09b0eb59037afc4c88a5c4aa1d1 to your computer and use it in GitHub Desktop.
rclone config failure with jottacloud

on headless computer

rclone config

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> n

Enter name for new remote.
name> telia

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.

28 / Jottacloud
   \ (jottacloud)

Storage> 28

Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id>

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>

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

Option config_type.
Select authentication type.
Choose a number from below, or type in an existing value of type string.
Press Enter for the default (standard).


   / Telia Cloud authentication.
 3 | Use this if you are using Telia Cloud (Sweden).
   \ (telia_se)

config_type> 3


Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> n

Option config_token.
For this to work, you will need rclone available on a machine that has
a web browser available.
For more help and alternate methods see: https://rclone.org/remote_setup/
Execute the following on the machine with the web browser (same rclone
version recommended):
        rclone authorize "jottacloud" "xnxnxnxnxnxnxnxnxnxnxnxnxnxnx"
Then paste the result.
Enter a value.
config_token>

on desktop computer

rclone -vvv authorize "jottacloud" "xnxnxnxnxnxnxnxnxnxnxnxnxnxnx"
2025/05/15 18:52:01 DEBUG : rclone: Version "v1.69.2" starting with parameters ["rclone" "-vvv" "authorize" "jottacloud" "xnxnxnxnxnxnxnxnxnxnxnxnxnxnx"]
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="", result=""
2025/05/15 18:52:01 DEBUG : Auto confirm is set, choosing default "standard" for state "auth_type_done", override by setting config parameter "config_type"
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=&{State:auth_type_done Option:<nil> OAuth:<nil> Error: Result:standard}, err=<nil>
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="auth_type_done", result="standard"
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=&{State:standard Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="standard", result=""
2025/05/15 18:52:01 DEBUG : Auto confirm is set, choosing default "" for state "standard_token", override by setting config parameter "config_login_token"
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=&{State:standard_token Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="standard_token", result=""
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=<nil>, err=failed to get oauth token: EOF
Error: failed to get oauth token: EOF
Usage:
  rclone authorize <fs name> [base64_json_blob | client_id client_secret] [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/05/15 18:52:01 NOTICE: Fatal error: failed to get oauth token: EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment