Mount --daemon does not work with encrypted config

I was trying to run rclone mount remote: /mountpoint --daemon, but it did basically nothing.

Later I found in debug log these lines:

Aug 01 16:46:47 <hidden> rclone[23920]: rclone: Version "v1.42-062-gf72eade7" starting with parameters ["./rclone" "-vv" "mount" "remote:" "/mountpoint" "--daemon" "--debug-fuse" "--syslog"]
Aug 01 16:46:52 <hidden> rclone[23920]: Using config file from "/home/<hidden>/.config/rclone/rclone.conf"
Aug 01 16:46:54 <hidden> rclone[23920]: remote: Saved new token in config file
Aug 01 16:46:56 <hidden> rclone[23920]: rclone: Version "v1.42-062-gf72eade7" finishing with parameters ["./rclone" "-vv" "mount" "remote:" "/mountpoint" "--daemon" "--debug-fuse" "--syslog"]
Aug 01 16:46:56 <hidden> rclone[23936]: rclone: Version "v1.42-062-gf72eade7" starting with parameters ["./rclone" "-vv" "mount" "remote:" "/mountpoint" "--daemon" "--debug-fuse" "--syslog"]
Aug 01 16:46:56 <hidden> rclone[23936]: Couldn't decrypt configuration, most likely wrong password.
Aug 01 16:46:56 <hidden> rclone[23936]: Failed to read line: EOF

My rclone config is encrypted, and it seems the child process is unable to get the decrypted config. Maybe there should be a way for the parent to pass it to the child.

(Tested on Ubuntu 18.04, rclone v1.42-062-gf72eade7)

Ah that looks like a bug! Can you please make a new issue on github - then we can look at how to fix it. Thanks.

1 Like