Mount fails with --daemon present

What is the problem you are having with rclone?

If I try to mount a google drive volume with --daemon it fails after 1 min (even ignoring the timeout) with mount not ready. Without the --daemon flag everything works as expected i.e. it mounts correctly.

Some misconfiguration on my part or possible bug?

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.1
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-25-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.5
- 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)

rclone mount drive:media /srv/docker/media/media_mount --dir-cache-time=168h --cache-dir=/srv/docker/media/media_mount_cache --buffer-size=12M --vfs-cache-mode=full --vfs-cache-max-age=12h --vfs-write-back=15m --gid=166527 --uid=166527 --vfs-fast-fingerprint --no-modtime --transfers=32 --vfs-read-ahead=48M --rc --config=/home/jan/.config/rclone/rclone.conf -vv --daemon-timeout=5m --daemon

I originally used /etc/fstab:

drive:media /srv/docker/media/media_mount rclone rw,_netdev,x-systemd.automount,args2env,dir_cache_time=168h,cache_dir=/srv/docker/media/media_mount_cache,buffer_size=12M,vfs_cache_mode=full,vfs_cache_max_age=12h,vfs_write_back=15m,gid=166527,uid=166527,vfs_fast_fingerprint,no_modtime,transfers=32,vfs_read_ahead=48M,rc,config=/home/jan/.config/rclone/rclone.conf,vv,daemon_timeout=5m,env.PATH=/usr/bin 0 0

and got that error, but the same happens with the rclone command

The rclone config contents with secrets removed.

[drive]
type = drive
client_id = <clientid>
client_secret = <secret>
scope = drive
use_trash = false
skip_gdocs = true
acknowledge_abuse = true
token = <token>
team_drive = <drive>
root_folder_id =

A log from the command with the -vv flag

2022/09/02 16:09:28 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "mount" "drive:media" "/srv/docker/media/media_mount" "--dir-cache-time=168h" "--cache-dir=/srv/docker/media/media_mount_cache" "--buffer-size=12M" "--vfs-cache-mode=full" "--vfs-cache-max-age=12h" "--vfs-write-back=15m" "--gid=166527" "--uid=166527" "--vfs-fast-fingerprint" "--no-modtime" "--transfers=32" "--vfs-read-ahead=48M" "--rc" "--config=/home/jan/.config/rclone/rclone.conf" "-vv" "--daemon-timeout=5m" "--daemon"]
2022/09/02 16:09:28 NOTICE: Serving remote control on http://localhost:5572/
2022/09/02 16:09:28 DEBUG : Creating backend with remote "drive:media"
2022/09/02 16:09:28 DEBUG : Using config file from "/home/jan/.config/rclone/rclone.conf"
2022/09/02 16:10:28 DEBUG : Daemon timed out. Terminating daemon pid 609356
2022/09/02 16:10:28 Fatal error: mount not ready

Thanks guys

hello and welcome to the forum,

that is a known issue, rclone mount + --daemon
mount: improve implementation of --daemon mode

there are a number of workarounds.
https://forum.rclone.org/t/can-rclone-help-me-to-connect-my-pcloud-folders-to-plex-media-server-synology/32657/43?u=asdffdsa

well, seems like I was to dumb to use the search correcly. my bad, thanks!

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