Rclone mount did not work on macOS

What is the problem you are having with rclone?

I am using rclone on Linux and headless macOS vps with same config. It does nothing when I use rclone mount command in mac, but lsd works fine.

What is your rclone version (output from rclone version)

i tested rclone 1.48 to 1.57 (beta)

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 --daemon --allow-root --allow-other --allow-non-empty remote: /Users/vps/Documents

The rclone config contents with secrets removed.

[remote]
type = drive
client_id = XXXX
client_secret = XXXX
scope = drive
token = XXXX
team_drive = XXXX
root_folder_id =

A log from the command with the -vv flag

2021/09/16 16:05:39 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/16 16:05:39 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--allow-non-empty" "-vv" "remote:" "/Users/vps/Documents"]
2021/09/16 16:05:39 DEBUG : Creating backend with remote "remote:"
2021/09/16 16:05:39 DEBUG : rclone: Version "v1.55.1" finishing with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--allow-non-empty" "-vv" "remote:" "/Users/vps/Documents"]

You probably have multiple copies running with allow non empty as that lets you over mount and generally should not be used.

You can either look and stop all rclone processes or just reboot the machine.

Mount it one time.

daemon does not work with 1.56 so you have to use a beta.

Pick a version.
Type rclone version and share the output
Run the mount and share the full debug log.

hi,
based on the log, it seems that rclone starts and ends within the same second.
and no errors in the log.

if it is possible to have multiple rclones running at the same time, why does that instance exit instead of simply running another instance?

That's the daemon part exits in the process and it runs in the background as daemon means to fork it out.

felix@gemini:~$ ./rclone mount gcrypt: /home/felix/test --allow-non-empty --daemon -vv
2021/09/16 13:00:32 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2021/09/16 13:00:32 DEBUG : rclone: Version "v1.55.1" starting with parameters ["./rclone" "mount" "gcrypt:" "/home/felix/test" "--allow-non-empty" "--daemon" "-vv"]
2021/09/16 13:00:32 DEBUG : Creating backend with remote "gcrypt:"
2021/09/16 13:00:32 DEBUG : Creating backend with remote "GD:crypt"
2021/09/16 13:00:32 DEBUG : GD: detected overridden config - adding "{TKSWb}" suffix to name
2021/09/16 13:00:32 DEBUG : fs cache: renaming cache item "GD:crypt" to be canonical "GD{TKSWb}:crypt"
2021/09/16 13:00:32 DEBUG : rclone: Version "v1.55.1" finishing with parameters ["./rclone" "mount" "gcrypt:" "/home/felix/test" "--allow-non-empty" "--daemon" "-vv"]
felix@gemini:~$ ps -ef | grep rclone | grep test
felix     604176       1  0 13:00 ?        00:00:00 ./rclone mount gcrypt: /home/felix/test --allow-non-empty --daemon -vv
felix@gemini:~$

I have just rclone 1.55.1 installed and running now

rclone v1.55.1

  • os/type: darwin
  • os/arch: amd64
  • go/version: go1.16.3
  • go/linking: dynamic
  • go/tags: cmount

top log is complete rclone respons.

When you use daemon and no log file, it forks the process in the background so you don't get a log.

You need to use --log-file /tmp/rclone.log --log-level DEBUG to get a full log after you recreate the issue.

2021/09/16 19:32:48 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/16 19:32:48 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--allow-non-empty" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/16 19:32:48 DEBUG : Creating backend with remote "remote:"
2021/09/16 19:32:48 DEBUG : rclone: Version "v1.55.1" finishing with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--allow-non-empty" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/16 19:32:48 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/16 19:32:48 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--allow-non-empty" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/16 19:32:48 DEBUG : Creating backend with remote "remote:"

Using allow-non-empty is bad and hides stuff. You should not use it.

You want to do something against the mount and share the log when done.

Example:

tail -f /tmp/rclone.log
2021/09/16 15:42:12 DEBUG : rclone: Version "v1.55.1" finishing with parameters ["./rclone" "mount" "gcrypt:" "/home/felix/test" "--log-file" "/tmp/rclone.log" "--log-level" "DEBUG" "--daemon"]
2021/09/16 15:42:12 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2021/09/16 15:42:12 DEBUG : rclone: Version "v1.55.1" starting with parameters ["./rclone" "mount" "gcrypt:" "/home/felix/test" "--log-file" "/tmp/rclone.log" "--log-level" "DEBUG" "--daemon"]
2021/09/16 15:42:12 DEBUG : Creating backend with remote "gcrypt:"
2021/09/16 15:42:12 DEBUG : Creating backend with remote "GD:crypt"
2021/09/16 15:42:12 DEBUG : GD: detected overridden config - adding "{TKSWb}" suffix to name
2021/09/16 15:42:13 DEBUG : fs cache: renaming cache item "GD:crypt" to be canonical "GD{TKSWb}:crypt"
2021/09/16 15:42:13 DEBUG : Encrypted drive 'gcrypt:': Mounting on "/home/felix/test"
2021/09/16 15:42:13 DEBUG : : Root:
2021/09/16 15:42:13 DEBUG : : >Root: node=/, err=<nil>
2021/09/16 15:42:25 DEBUG : /: Attr:
2021/09/16 15:42:25 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/09/16 15:42:25 DEBUG : /: ReadDirAll:
2021/09/16 15:42:26 DEBUG : /: >ReadDirAll: item=7, err=<nil>

You can put 3 backtics before and after a block to make it


Like this -> bactick is this `

Put three of those before and after your block and you get a code block.

This is log with tail -f after 6 minutes

2021/09/17 05:23:15 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/17 05:23:15 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/17 05:23:15 DEBUG : Creating backend with remote "remote:"
2021/09/17 05:23:15 DEBUG : rclone: Version "v1.55.1" finishing with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/17 05:23:15 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/17 05:23:15 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "--daemon" "--allow-root" "--allow-other" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/17 05:23:15 DEBUG : Creating backend with remote "remote:"
2021/09/17 05:23:15 DEBUG : Mounting on "/Users/vps/Documents" ("remote")
2021/09/17 05:23:15 DEBUG : Adding "-o modules=iconv,from_code=UTF-8,to_code=UTF-8-MAC" for macOS
2021/09/17 05:23:15 DEBUG : Google drive root '': Mounting with options: ["-o" "attr_timeout=1" "-o" "fsname=remote:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "atomic_o_trunc" "-o" "allow_other" "-o" "allow_root" "-o" "volname=remote" "-o" "noappledouble" "-o" "modules=iconv,from_code=UTF-8,to_code=UTF-8-MAC"]
fuse: allow_other and allow_root are mutually exclusive
2021/09/17 05:23:15 ERROR : Google drive root '': Mount failed
2021/09/17 05:23:15 Fatal error: failed to mount FUSE fs: mount stopped before calling Init: mount failed

In the log, you have an error:

You want to pick one of the two to mount with.

I deleted allow-root and now i have deferent log file but mount folder is still empty

part of new log:

2021/09/17 17:02:30 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/17 17:02:30 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "--daemon" "--allow-other" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/17 17:02:30 DEBUG : Creating backend with remote "remote:"
2021/09/17 17:02:30 DEBUG : rclone: Version "v1.55.1" finishing with parameters ["rclone" "mount" "--daemon" "--allow-other" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/17 17:02:30 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/17 17:02:30 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "--daemon" "--allow-other" "--log-file" "/Users/vps/log.txt" "--log-level" "DEBUG" "remote:" "/Users/vps/Documents"]
2021/09/17 17:02:30 DEBUG : Creating backend with remote "remote:"
2021/09/17 17:02:31 DEBUG : Mounting on "/Users/vps/Documents" ("remote")
2021/09/17 17:02:31 DEBUG : Adding "-o modules=iconv,from_code=UTF-8,to_code=UTF-8-MAC" for macOS
2021/09/17 17:02:31 DEBUG : Google drive root '': Mounting with options: ["-o" "attr_timeout=1" "-o" "fsname=remote:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "atomic_o_trunc" "-o" "allow_other" "-o" "volname=remote" "-o" "noappledouble" "-o" "modules=iconv,from_code=UTF-8,to_code=UTF-8-MAC"]
2021/09/17 17:02:31 DEBUG : Google drive root '': Init: 
2021/09/17 17:02:31 DEBUG : Google drive root '': >Init: 
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : Google drive root '': read info from Shared Drive "Drive"
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/09/17 17:02:31 DEBUG : /: >Getattr: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Access: mask=00
2021/09/17 17:02:31 DEBUG : /: >Access: errc=0
2021/09/17 17:02:31 DEBUG : /: Statfs: 

Can you share the output of:

rclone lsd remote: -vv
rclone lsf remote: -vv

rclone lsd remote: -vv

2021/09/17 17:16:35 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/17 17:16:35 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "lsd" "remote:" "-vv"]
2021/09/17 17:16:35 DEBUG : Creating backend with remote "remote:"
2021/09/17 17:16:36 DEBUG : 6 go routines active
          -1 2021-09-14 13:23:31        -1 folder
          -1 2021-09-11 14:00:24        -1 tmp

rclone lsf remote: -vv

2021/09/17 17:16:36 DEBUG : Using config file from "/Users/vps/.config/rclone/rclone.conf"
2021/09/17 17:16:36 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "lsf" "remote:" "-vv"]
2021/09/17 17:16:36 DEBUG : Creating backend with remote "remote:"
folder/
2021/09/17 17:16:36 DEBUG : 6 go routines active
tmp/

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