When I use rclone with the daemon flag it fails to mount.
When I do not use the daemon flag, the mount is successful.
The only difference between the commands is the --daemon flag
Run the command 'rclone version' and share the full output of the command.
$ rclone version
rclone v1.68.2
os/version: ubuntu 22.04 (64 bit)
os/kernel: 6.8.0-49-generic (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.23.3
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone --rc mount --vfs-cache-mode writes --log-level INFO --vfs-write-back 30s --vfs-cache-max-age 720m --vfs-cache-max-size 100G --stats 1m --stats-log-level INFO --stats-one-line --log-file /home/nick/rclone_temp2.log OneDrive:/Backup/Daily/Nextcloud /disks/backup --daemon
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[OneDrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
A log from the command that you were trying to run with the -vv flag
2024/12/16 10:48:02 DEBUG : rclone: Version "v1.68.2" starting with parameters ["/usr/bin/rclone" "--rc" "mount" "--vfs-cache-mode" "writes" "-vv" "--log-file" "/home/nick/rclone_temp2.log" "OneDrive:/Backup/Daily/Nextcloud" "/disks/backup" "--daemon"]
2024/12/16 10:48:02 CRITICAL: Failed to start remote control: failed to init server: listen tcp 127.0.0.1:5572: bind: address already in use
2024/12/16 10:48:02 ERROR : Daemon timed out. Failed to terminate daemon pid 21567: os: process already finished
2024/12/16 10:48:02 CRITICAL: Fatal error: daemon exited with error code 1
Whether I need --rc or not is unclear to me. This is my first experience with rclone, and I have been very happy so far. For the last couple of months, every night I do the following for 4 different backups:
Mount a OneDrive folder with rclone
Compress the files that need to be backed up into a tar ball
Save the tar ball to the mount
Wait for the upload to complete
Unmount the OneDrive folder
These actions are all done via scripts that are launched as cronjobs.
All the scripts use the same mount command, with the only difference being the OneDrive folder that is mounted.