What is the problem you are having with rclone?
I am using rclone as a library in Round Sync. Lately, i have gotten reports that the config does not work. After digging, a user reported that there seems to be a 21 char limit for passwords. After i traced the setup to the invocation of rclone itself, i determined that it is either androids Runtime.exec()
call, or a problem with rclone itself.
When the user enters a password that is "too long", the rclone.conf will contain the password in clear-text. A shorter password (21 and below) is beeing encrypted just fine.
Run the command 'rclone version' and share the full output of the command.
1.64.2 is the tag i am using to build the embedded library.
go:1.21.3
It has also been reported with 1.63.1 and 1.64.1
Which cloud storage system are you using? (eg Google Drive)
For a test, crypt. However, it also happens with sftp, smb or webdav. Probably all.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
/data/app/~~LMDiaN2-VIVsdeEpVUKWfw==/de.felixnuesse.extract.debug-tVFIEK7UQVSnbOpT_rkKlw==/lib/x86_64/librclone.so --config /data/user/0/de.felixnuesse.extract.debug/files/rclone.conf config create cryptRemote crypt password pppppppppppppppppp12345678 remote test:/ -vvv
(This is a test crypt, so the password is fake)
The rclone config contents with secrets removed.
[test]
type = local
[cryptRemote]
type = crypt
password = pppppppppppppppppp12345678
remote = test:/
(This is a test crypt, so the password is fake)
A log from the command with the -vv
flag
2023/11/07 15:18:06 DEBUG : Home directory lookup failed and cannot be used as configuration location: exec: "getent": executable file not found in $PATH
2023/11/07 15:18:06 DEBUG : Failed to find user cache dir, using temporary directory: neither $XDG_CACHE_HOME nor $HOME are defined
2023/11/07 15:18:06 DEBUG : rclone: Version "1.64.1-extract" starting with parameters ["/data/app/~~LMDiaN2-VIVsdeEpVUKWfw==/de.felixnuesse.extract.debug-tVFIEK7UQVSnbOpT_rkKlw==/lib/x86_64/librclone.so" "--config" "/data/user/0/de.felixnuesse.extract.debug/files/rclone.conf" "config" "create" "cryptRemote" "crypt" "password" "pppppppppppppppppp12345678" "remote" "test:/" "-vvv"]
2023/11/07 15:18:06 DEBUG : Using config file from "/data/user/0/de.felixnuesse.extract.debug/files/rclone.conf"
2023/11/07 15:18:06 DEBUG : Saving config "password" in section "cryptRemote" of the config file
2023/11/07 15:18:06 DEBUG : Saving config "remote" in section "cryptRemote" of the config file
2023/11/07 15:18:06 DEBUG : cryptRemote: config in: state="", result=""
2023/11/07 15:18:06 DEBUG : cryptRemote: config out: out=<nil>, err=<nil>
2023/11/07 15:18:06 DEBUG : rclone: Version "1.64.1-extract" finishing with parameters ["/data/app/~~LMDiaN2-VIVsdeEpVUKWfw==/de.felixnuesse.extract.debug-tVFIEK7UQVSnbOpT_rkKlw==/lib/x86_64/librclone.so" "--config" "/data/user/0/de.felixnuesse.extract.debug/files/rclone.conf" "config" "create" "cryptRemote" "crypt" "password" "pppppppppppppppppp12345678" "remote" "test:/" "-vvv"]
As you can see, the password is now plaintext in the config. Is this some behaviour that i dont know about, or might there be a bug in rclone itself?