--daemon mode not working?

What is the problem you are having with rclone?

Rclone with the --daemon option will not go into the background so it acts as if the --daemon option was not given.

What is your rclone version (output from rclone version)

rclone v1.56.0

  • os/version: ubuntu 18.04 (64 bit)

  • os/kernel: 5.4.0-1054-aws (x86_64)

  • os/type: linux

  • os/arch: amd64

  • go/version: go1.16.5

  • go/linking: static

  • go/tags: none

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Linux plex 5.4.0-1054-aws #57~18.04.1-Ubuntu SMP Thu Jul 15 03:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

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 mount --log-level=DEBUG --log-file=/tmp/rclone-log.txt --vfs-cache-max-size 20G --read-only --no-checksum --daemon-timeout 2h --allow-other --daemon --no-modtime --vfs-read-chunk-size 5M --vfs-read-chunk-size-limit 0 --buffer-size 30M --vfs-read-ahead 200M --vfs-cache-mode full onedrive: /home/hans/Onedrive

The rclone config contents with secrets removed.

[onedrive]  
type = onedrive
token = {"access_token":" XXXXXXX
drive_id = YYYYYYY
drive_type = personal

A log from the command with the -vv flag

2021/07/27 09:33:10 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "mount" "--log-level=DEBUG" "--log-file=/tmp/rclone-log.txt" "--vfs-cache-max-size" "20G" "--read-only" "--no-checksum" "--daemon-timeout" "2h" "--allow-other" "--daemon" "--no-modtime" "--vfs-read-chunk-size" "5M" "--vfs-read-chunk-size-limit" "0" "--buffer-size" "30M" "--vfs-read-ahead" "200M" "--vfs-cache-mode" "full" "onedrive:" "/home/hans/Onedrive"]
2021/07/27 09:33:10 DEBUG : Creating backend with remote "onedrive:"
2021/07/27 09:33:10 DEBUG : Using config file from "/home/hans/.config/rclone/rclone.conf"
2021/07/27 09:33:10 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "mount" "--log-level=DEBUG" "--log-file=/tmp/rclone-log.txt" "--vfs-cache-max-size" "20G" "--read-only" "--no-checksum" "--daemon-timeout" "2h" "--allow-other" "--daemon" "--no-modtime" "--vfs-read-chunk-size" "5M" "--vfs-read-chunk-size-limit" "0" "--buffer-size" "30M" "--vfs-read-ahead" "200M" "--vfs-cache-mode" "full" "onedrive:" "/home/hans/Onedrive"]
2021/07/27 09:33:10 DEBUG : Creating backend with remote "onedrive:"
2021/07/27 09:33:10 DEBUG : Using config file from "/home/hans/.config/rclone/rclone.conf"
2021/07/27 09:33:11 INFO  : One drive root '': poll-interval is not supported by this remote
2021/07/27 09:33:11 DEBUG : vfs cache: root is "/home/hans/.cache/rclone/vfs/onedrive"
2021/07/27 09:33:11 DEBUG : vfs cache: metadata root is "/home/hans/.cache/rclone/vfs/onedrive"
2021/07/27 09:33:11 DEBUG : Creating backend with remote "/home/hans/.cache/rclone/vfs/onedrive"
2021/07/27 09:33:11 DEBUG : One drive root '': Mounting on "/home/hans/Onedrive"
2021/07/27 09:33:11 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2021/07/27 09:33:11 DEBUG : : Root: 
2021/07/27 09:33:11 DEBUG : : >Root: node=/, err=<nil>

So no errors but the command does not return to the prompt. I have to add & at the end to get it to return to the prompt.

In other words it seems to act as if the --daemon was NOT given ....?

hi,
can you run a simple command and see what happens
rclone mount --daemon onedrive: /home/hans/Onedrive

That’s known issue and already on GitHub.

There is a fix there too if you want to give it a try v1.56 `--daemon` no longer forks to background on armv7/amd64 · Issue #5472 · rclone/rclone · GitHub

rclone with the fix baked in

this's gonna become 1.56.1 when @ncw finds time for review

1 Like

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