Error when mount with --daemon flag

What is the problem you are having with rclone?

When I try mounting with --daemon flag, it ends with

2021/11/04 14:36:11 DEBUG : Creating backend with remote "remote:path"
2021/11/04 14:36:11 DEBUG : Using config file from "/config/rclone/rclone.conf"
2021/11/04 14:36:12 DEBUG : rclone: Version "v1.57.0" starting with parameters ["/usr/bin/rclone" "mount" "remote:path" "/mnt" "--uid=1000" "--gid=1000" "--use-mmap" "--umask=002" "--allow-other" "--log-level=DEBUG" "--log-file=/config/rclone/rclone.log" "--rc" "--rc-no-auth" "--rc-addr=:5574" "--cache-dir=/cache" "--dir-cache-time=5000h" "--vfs-cache-max-age=5000h" "--vfs-cache-poll-interval=5m" "--daemon" "--user-agent=nuc-plex-docker" "--poll-interval=15s" "--vfs-read-chunk-size=128M" "--vfs-read-ahead=2G" "--bwlimit-file=32M" "--vfs-cache-mode=full" "--vfs-cache-max-size=500G"]
2021/11/04 14:36:12 Failed to start remote control: start server failed: listen tcp :5574: bind: address already in use
2021/11/04 14:37:12 DEBUG : Daemon timed out. Terminating daemon pid 701
2021/11/04 14:37:12 Fatal error: mount not ready

but without the flag it is okay. So I am suspect this might be a bug and want it to be confirmed. Cause I am running it inside docker container, I am pretty sure rc port is not in use.

What is your rclone version (output from rclone version)

rclone v1.57.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-89-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

See above

The rclone config contents with secrets removed.

type = drive
scope = drive
service_account_file = path_to_sa.json
team_drive = driveId

A log from the command with the -vv flag

Please see above

It's a known bug

Oh I see. Thanks for the link!!

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