OSX mount command appears to be broken in latest beta


#21

Yep, that is correct. Using my compiled version it works fine


#22

Hi,
I appear to be getting the same issue when trying to mount gdrive. I have tried both the latest stable build for MacOS and beta build.

xbmcs-Mac-mini:media xbmc$ sudo rclone mount gdrive: /Users/xbmc/media/gdrive --config /Users/xbmc/.config/rclone/rclone.conf -vv
2018/06/04 12:25:59 DEBUG : rclone: Version “v1.41-081-g4009fb67ß” starting with parameters [“rclone” “mount” “gdrive:” “/Users/xbmc/media/gdrive” “–config” “/Users/xbmc/.config/rclone/rclone.conf” “-vv”]
2018/06/04 12:25:59 DEBUG : Using config file from “/Users/xbmc/.config/rclone/rclone.conf”
2018/06/04 12:25:59 DEBUG : Google drive root ‘’: Mounting on “/Users/xbmc/media/gdrive”
2018/06/04 12:25:59 DEBUG : Adding path “vfs/forget” to remote control registry
2018/06/04 12:25:59 DEBUG : : Root:
2018/06/04 12:25:59 DEBUG : : >Root: node=/, err=
2018/06/04 12:25:59 DEBUG : /: Attr:
2018/06/04 12:25:59 DEBUG : : Statfs:
2018/06/04 12:25:59 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2018/06/04 12:25:59 DEBUG : : Statfs:
2018/06/04 12:25:59 DEBUG : : Statfs:
2018/06/04 12:27:00 DEBUG : pacer: Rate limited, sleeping for 1.511339783s (1 consecutive low level retries)
2018/06/04 12:27:00 DEBUG : pacer: low level retry 1/10 (error Get https://www.googleapis.com/drive/v3/changes/startPageToken?alt=json&supportsTeamDrives=false: net/http: TLS handshake timeout)
2018/06/04 12:27:00 DEBUG : pacer: Rate limited, sleeping for 2.57606887s (2 consecutive low level retries)
2018/06/04 12:27:00 DEBUG : pacer: low level retry 1/10 (error Get https://www.googleapis.com/drive/v3/about?alt=json&fields=storageQuota: net/http: TLS handshake timeout)

I remove h.t.t.p.s as could not upload
Thanks in advance

Phil


#23

Can you try building rclone from source on macOS?

(Note that you don’t need to set GOPATH any more - it wil default to ~/go)

I have an issue to maybe always supply a native compiled rclone: https://github.com/ncw/rclone/issues/2309

Perhaps I should up the priority of that?


#24

Hi,
I downloaded go and compiled rclone on mac. I still cannot mount the gdrive though I can lsd the drive. Rclone keeps trying to reconnect once failed. Snippet of log below.

xbmcs-Mac-mini:media xbmc$ sudo rclone lsd gdrive:
-1 2018-06-02 15:09:27 -1 media
xbmcs-Mac-mini:media xbmc$

xbmcs-Mac-mini:media xbmc$ sudo rclone mount gdrive: /Users/xbmc/media/gdrive --allow-non-empty -vv
2018/06/06 19:38:02 DEBUG : rclone: Version “v1.41-DEV” starting with parameters [“rclone” “mount” “gdrive:” “/Users/xbmc/media/gdrive” “–allow-non-empty” “-vv”]
2018/06/06 19:38:02 DEBUG : Using config file from “/var/root/.config/rclone/rclone.conf”
2018/06/06 19:38:02 DEBUG : Google drive root ‘’: Mounting on “/Users/xbmc/media/gdrive”
2018/06/06 19:38:02 DEBUG : Adding path “vfs/forget” to remote control registry
2018/06/06 19:38:02 DEBUG : : Root:
2018/06/06 19:38:02 DEBUG : : >Root: node=/, err=
2018/06/06 19:38:02 DEBUG : : Statfs:
2018/06/06 19:38:02 DEBUG : /: Attr:
2018/06/06 19:38:02 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2018/06/06 19:38:02 DEBUG : : Statfs:
2018/06/06 19:38:02 DEBUG : : Statfs:
2018/06/06 19:38:03 DEBUG : Google drive root ‘’: Checking for changes on remote
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : /: Attr:
2018/06/06 19:38:04 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2018/06/06 19:38:04 DEBUG : : Statfs:
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : : Statfs:
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : : Statfs:
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : /: Attr:
2018/06/06 19:38:04 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2018/06/06 19:38:04 DEBUG : : Statfs:
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : : Statfs:
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : : Statfs:
2018/06/06 19:38:04 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 19:38:04 DEBUG : /: Lookup: name=“DCIM”
2018/06/06 19:38:04 DEBUG : /: >Lookup: node=, err=no such file or directory
2018/06/06 19:38:04 DEBUG : /: Lookup: name=".Spotlight-V100"
2018/06/06 19:38:04 DEBUG : /: >Lookup: node=, err=no such file or directory
2018/06/06 19:38:04 DEBUG : : Statfs:


#25

What is the ouput from the osx mount command?


#26

xbmcs-Mac-mini:media xbmc$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2s2 on /Volumes/XBMC2TB2 (hfs, local, nodev, nosuid, journaled, noowners)
/dev/disk1s1 on /Volumes/XBMC2TB1 (hfs, local, nodev, nosuid, read-only, noowners)
gdrive: on /Users/xbmc/media/gdrive (osxfuse, synchronous)
xbmcs-Mac-mini:media xbmc$


#27

That seems to show it as mounted here: /Users/xbmc/media/gdrive

what happens if you cd to that dir in the teminal and ls?


#28

problem is the rclone mount command never completes just keeps retrying to mount.

xbmcs-Mac-mini:media xbmc$ ls gdrive
ls: gdrive: No such file or directory
xbmcs-Mac-mini:media xbmc$

xbmcs-Mac-mini:media xbmc$ cd gdrive
cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
xbmcs-Mac-mini:gdrive xbmc$


#29

You could try adding --allow-other to your mount command

(and do you need to use sudo to run rclone? I just run it as my regular user, and my config file is in my users home directory.)


#30

Hi,
Added --allow-other same result rclone doesn’t complete and osx mount report drive is mounted

xbmcs-Mac-mini:~ xbmc$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk1s2 on /Volumes/XBMC2TB2 (hfs, local, nodev, nosuid, journaled, noowners)
/dev/disk2s1 on /Volumes/XBMC2TB1 (hfs, local, nodev, nosuid, read-only, noowners)
gdrive: on /Users/xbmc/media/gdrive (osxfuse, synchronous)
xbmcs-Mac-mini:~ xbmc$

xbmcs-Mac-mini:~ xbmc$ sudo rclone mount gdrive: /Users/xbmc/media/gdrive --allow-non-empty -vv --allow-other
Password:
2018/06/06 20:29:53 DEBUG : rclone: Version “v1.41-DEV” starting with parameters [“rclone” “mount” “gdrive:” “/Users/xbmc/media/gdrive” “–allow-non-empty” “-vv” “–allow-other”]
2018/06/06 20:29:53 DEBUG : Using config file from “/var/root/.config/rclone/rclone.conf”
2018/06/06 20:29:53 DEBUG : Google drive root ‘’: Mounting on “/Users/xbmc/media/gdrive”
2018/06/06 20:30:01 DEBUG : Adding path “vfs/forget” to remote control registry
2018/06/06 20:30:01 DEBUG : : Root:
2018/06/06 20:30:01 DEBUG : : >Root: node=/, err=
2018/06/06 20:30:01 DEBUG : : Statfs:
2018/06/06 20:30:01 DEBUG : /: Attr:
2018/06/06 20:30:01 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2018/06/06 20:30:01 DEBUG : : Statfs:
2018/06/06 20:30:01 DEBUG : : Statfs:
2018/06/06 20:30:02 DEBUG : Google drive root ‘’: Checking for changes on remote
2018/06/06 20:30:02 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 20:30:02 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2018/06/06 20:30:02 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877900398 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=


#31

ok, this time rclone has connect to gdrive as I can cd to drive and ls contents. But rclone doesn’t complete. I will try without debug


#32

wondering if there is a reason for using the --allow-non-empty flag?

if not, maybe get rid of that as well.


#33

If you run rclone from the command line like this it will always stay open, unless you put into the background:

sudo rclone mount gdrive: /Users/xbmc/media/gdrive --allow-non-empty -vv --allow-other &

(or run it as a daemon, but i have not tried that)


#34

sudo rclone mount gdrive: /Users/xbmc/media/gdrive --allow-other

above command mounts drive but command never completes. Does rclone mount need to be a background task?


#35

it is its normal behaviour you can run --daemon to detach


#36

ok, sorry didn’t fully read your reply. I will run it as a daemon or background task. Thanks for your help.


#37

No worries, my 2nd reply was at the same time as your question :slight_smile: