Mount Unmounting

What is the problem you are having with rclone?

My mount keeps disconnecting. It will work for a few days and then repeatedly unmount for a few hours before working for a few more days. I've used it for several years without issue until the last few weeks.

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

rclone v1.61.1

  • os/version: gentoo 2.9 (64 bit)
  • os/kernel: 5.10.103-gentoo-whatbox (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • 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)

screen -dm rclone mount --allow-non-empty --buffer-size=32M --dir-cache-time=84h --vfs-cache-mode=minimal --vfs-cache-max-age=6h rcloneremote:Plex\ Media ~/mountedfolder/ --log-file=rclone.log --log-level DEBUG

The rclone config contents with secrets removed.

[seedbox]
type = sftp
host = tangelo.whatbox.ca
user = user
port = 22
pass = password
md5sum_command = md5sum
sha1sum_command = sha1sum
shell_type = unix

[remote]
type = drive
client_id = 
client_secret = 
service_account_file = 
token = {"access_token":"token","expiry":"2023-02-23T03:00:00.600856525Z"}
root_folder_id = 0APvRmDpKXsOtUk9PVA

[rcloneremote]
type = drive
client_id = client id
client_secret = client secret
scope = drive
token = {"access_token":"token","expiry":"2023-02-22T21:42:47.731738221-05:00"}
root_folder_id = 0APvRmDpKXsOtUk9PVA
team_drive = 

A log from the command with the -vv flag

2023/02/22 22:23:53 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "mount" "--allow-non-empty" "--buffer-size=32M" "--dir-cache-time=84h" "--vfs-cache-mode=minimal" "--vfs-cache-max-age=6h" "rcloneremote:Plex Media" "/home/jrcorwin/mountedfolder/" "--log-file=rclone.log" "--log-level" "DEBUG"]
2023/02/22 22:23:53 DEBUG : Creating backend with remote "rcloneremote:Plex Media"
2023/02/22 22:23:53 DEBUG : Using config file from "/home/jrcorwin/.config/rclone/rclone.conf"
2023/02/22 22:23:54 DEBUG : vfs cache: root is "/home/jrcorwin/.cache/rclone"
2023/02/22 22:23:54 DEBUG : vfs cache: data root is "/home/jrcorwin/.cache/rclone/vfs/rcloneremote/Plex Media"
2023/02/22 22:23:54 DEBUG : vfs cache: metadata root is "/home/jrcorwin/.cache/rclone/vfsMeta/rcloneremote/Plex Media"
2023/02/22 22:23:54 DEBUG : Creating backend with remote "/home/jrcorwin/.cache/rclone/vfs/rcloneremote/Plex Media"
2023/02/22 22:23:54 DEBUG : Creating backend with remote "/home/jrcorwin/.cache/rclone/vfsMeta/rcloneremote/Plex Media"
2023/02/22 22:23:54 DEBUG : Google drive root 'Plex Media': Mounting on "/home/jrcorwin/mountedfolder/"
2023/02/22 22:23:54 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/02/22 22:23:54 DEBUG : : Root: 
2023/02/22 22:23:54 DEBUG : : >Root: node=/, err=<nil>
2023/02/22 22:24:46 DEBUG : /: Attr: 
2023/02/22 22:24:46 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-x---, err=<nil>

In your mount command, add --log-file /some/log/location/rclone.log --log-level DEBUG

Collect a log and share the log as that's what will shed some light on why.

1 Like

Thank you. I edited my first post to include the log info.

You'd have to have the issue again with the logging to see.

That's just a normal mount log with no errors :slight_smile:

1 Like

Haha yep I realized that right after posting it. One odd item: That mount command is the one recommended by my seedbox in their wiki. It had recently stopped working around the same time when this issue appeared. I had started using a different one I had experimented with. After you gave me those instructions I went back to their recommended command and inserted the log commands you gave me and ran it. It didn't work and the log told me was because I couldn't have both -vv and the log level both set, so I removed -vv. Then it didn't work again and the log told me that I needed to use the non-empty flag. Now their recommended mount command is working again. I'm not sure why I suddenly needed to add the non-empty flag...

I see if it unmounts itself again.

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