rclone: Fatal error: failed to umount FUSE fs: exit status 1: fusermount: failed to unmount /mnt/gdrive: Invalid argument

What is the problem you are having with rclone?

Fatal error: failed to umount FUSE fs: exit status 1: fusermount: failed to unmount /mnt/gdrive: Invalid argument

What is your rclone version (output from rclone version)

rclone v1.48.0

  • os/arch: linux/amd64
  • go version: go1.12.6

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 18.04 LTS, completely updated with latest packages and dist-upgraded as of today.

Which cloud storage system are you using? (eg Google Drive)

GDrive/TDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

#!/bin/bash

[Unit]
Description=tdrive Daemon
After=multi-user.target

[Service]
Type=Type=notify
User=0
Group=0
ExecStart=/usr/bin/rclone mount tdrive: /mnt/tdrive \
--config=/opt/appdata/plexguide/rclone.conf \
--uid=1000 --gid=1000 --umask=002 \
--log-file=/var/plexguide/logs/rclone-tdrive.log \
--log-level=NOTICE \
--allow-other \
--timeout=1h \
--user-agent="myuserappagent" \
--dir-cache-time=7620m \
--vfs-cache-mode=writes \
--vfs-cache-max-age=1h \
--vfs-cache-max-size=off \
--vfs-read-chunk-size-limit=1024M \
--vfs-read-chunk-size=64M \
--buffer-size=256M

ExecStop=/bin/fusermount -uz /mnt/tdrive
TimeoutStopSec=60

[Install]
WantedBy=multi-user.target

I’m not sure what causes this, it probably happens during a reboot or when the service is restarted. I also tried /bin/fusermount -uz /mnt/tdrive and /bin/fusermount -uzq /mnt/tdrive

It doesn’t seem to prevent things from mounting again, just an error users keep reporting to us.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 41

Commits related to this issue

Most upvoted comments

It’s already documented on the rclone mount page:

https://rclone.org/commands/rclone_mount/