rclone: cmount: failed when host.Unmount in macOS 11 Big Sur and rclone hangs for long time
What is the problem you are having with rclone?
cmount: failed when host.Unmount in macOS 11 Big Sur and rclone hangs for long time
What is your rclone version (output from rclone version)
osxfuse: 3.11.1
rclone v1.53.3
- os/arch: darwin/amd64
- go version: go1.15.4
Which cloud storage system are you using? (e.g. Google Drive)
Nextcloud WebDAV
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
rclone cmount the-name:/ ~/mnt/test
A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)
2020/11/25 13:45:42 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/11/25 13:45:42 DEBUG : /: >Getattr: errc=0
2020/11/25 13:45:42 DEBUG : /: Access: mask=00
2020/11/25 13:45:42 DEBUG : /: >Access: errc=0
^C
2020/11/25 13:45:47 INFO : Signal received: interrupt
2020/11/25 13:45:47 DEBUG : Calling host.Unmount
2020/11/25 13:45:47 DEBUG : host.Unmount failed
2020/11/25 13:45:47 DEBUG : vfs cache: cleaner exiting
2020/11/25 13:45:47 INFO : Exiting...
2020/11/25 13:45:47 DEBUG : webdav root '': Destroy:
2020/11/25 13:45:47 DEBUG : webdav root '': >Destroy:
^C^C^C^C^C ( no response)
( after long time, rclone ends without any more outputs. )
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (10 by maintainers)
Commits related to this issue
- atexit: add Signalled() function - set if called from a signal #4804 — committed to rclone/rclone by ncw 6 years ago
- mountlib: make sure we don't call umount more than once #4804 Before this change when using CTRL-C with rclone cmount the mount would be unmounted twice. — committed to rclone/rclone by ncw 6 years ago
- cmount: fix macOS hang: don't call host.Umount if a signal has been received Before this change cgofuse and libatexit would race to see who could unmount the file system with unpredicatable results. ... — committed to rclone/rclone by ncw 6 years ago
- mountlib: make sure we don't call umount more than once #4804 Before this change when using CTRL-C with rclone cmount the mount would be unmounted twice. — committed to rclone/rclone by ncw 6 years ago
- atexit: add Signalled() function - set if called from a signal #4804 — committed to rclone/rclone by ncw 6 years ago
- cmount: don't call host.Umount if a signal has been received Before this change cgofuse and libatexit would race to see who could unmount the file system with unpredicatable results. On Linux it coul... — committed to rclone/rclone by ncw 6 years ago
I observe
rclone mounthanging if you ^C it or send aSIGINT,SIGTERM, etc. This happens for me every time on 4 different Macs running Monterey 12.7.2 (I’m connecting to OneDrive).The
rcloneprocess is then no longer owned by the user who started it, becomes orphaned (PPID = 1) and/sbin/launchdrefuses to let it die. I’m using rclone 1.6.4 with macFUSE 4.5.0. So I don’t think the issue has gone away.A reliable workaround for me, that works every time, is simply to run
umount [mountpoint]as the user who mounted it. This succeeds immediately, and causesrcloneto terminate with a 1-line message:ERROR : [mountpoint]: Unmounted rclone mountand an exit status of 0.
This issue seems outdated, and I am not using rclone at the moment. So I think it’s better to close this stale one.