Token too short in rclone 1.69.1

The token value that I can paste from my windows machine (which has the browser to the NAS system running a Unix environment) gets cut off

Windows machine rclone v1.69.1

  • os/version: Microsoft Windows 11 Home 24H2 24H2 (64 bit)
  • os/kernel: 10.0.26100.3194 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: cmount

Linux machine:

rclone v1.69.1

  • os/version: unknown
  • os/kernel: 3.2.26 (armv7l)
  • os/type: linux
  • os/arch: arm (ARMv7 compatible)
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: none

Using Onedrive for Business

The command is

"rclone config"

and I need to reauthenticate the rclone connection in my Linux NAS. As the NAS does not have a browser, I run the authorize command "rclone authorize" on the windows machine to get the client token.


[IFS]
type = onedrive
token = {"access_token":"XXX"2025-03-16T11:46:20.1457091+01:00"}
drive_id = b!mM0pYoNjA0O2phLkh7wzhbYFVtqzxj9JlX2-wM3bhB4UGsFfaOxpQYGImcsV86Ps
drive_type = business
region = global

[secret]
type = crypt
remote = IFS:RCBackup/
filename_encryption = standard
directory_name_encryption = true
password = XXX

[DB]
type = ftp
host = 192.168.2.114
user = ftp
use_insecure_cipher = true
pass = XXX

[secret2]
type = onedrive
token = {"access_token":XXX,"expiry":"2025-03-16T11:22:06.3236346+01:00"}
drive_id = b!mM0pYoNjA0O2phLkh7wzhbYFVtqzxj9JlX2-wM3bhB4UGsFfaOxpQYGImcsV86Ps
drive_type = business

The log file does not make too much sense as the problem is: I get a response from the authorize command in the windows machine, but when I try to paste the token into the client_token value in the NAS using Putty over an SSH connection, I hear an audio signal and see that only a part of the token (the first 4095 characters) are pasted. But the generated token from Microsoft has 5082 characters.

Also pasting party and repasting the rest does not work. It seems the client token value in rclone is too short (only 4095 characters).

This is unlikely rclone issue but some problem with terminal you are using.

Instead of cmd try PowerShell maybe? Check settings. Maybe lines are truncated?

Or if problem is with pasting it into Putty - check putty session settings.

welcome to the forum,

there are other soltuons then copy/paste. have you seen?
Configuring by copying the config file
Configuring using SSH Tunnel

This is a copy/paste limitation in your OS/app and not an rclone problem. e.g. it's possible the input buffer in the ssh session has been overloaded, causing putty to drop characters. A simple solution would be to simply copy half the token, paste that, then copy the other half and paste that.

I've sometimes found, on Windows, that pasting into something like Notepad and then copy/paste from there can work around issues as well. But "smaller chunks" always works... you just need to be careful to do it right!

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