Rclone Systemd Fusermount Permission errors

What is the problem you are having with rclone?

I'm trying to make a systemd script to mount my google drive on KDE Neon on start but I keep on getting this permission denied error with fusermount when running it

Apr 12 07:19:41 RyzenNova systemd[1]: Started RClone Service.
Apr 12 07:19:41 RyzenNova rclone[8055]: 2020/04/12 07:19:41 mount helper error: fusermount: failed to access mountpoint /home/novaviper/CloudData/GoogleDrive: Permission denied
Apr 12 07:19:41 RyzenNova rclone[8055]: 2020/04/12 07:19:41 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
Apr 12 07:19:41 RyzenNova systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
Apr 12 07:19:41 RyzenNova systemd[1]: rclone.service: Failed with result 'exit-code'.

EDIT The command running normally without the script also is giving me the permissions error.

What is your rclone version (output from rclone version)

rclone v1.51.0
- os/arch: linux/amd64
- go version: go1.13.7

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

KDE Neon 5.18.4; Ubuntu 18.04 64bit

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)

$ cat /etc/systemd/system/rclone.service

[Unit]
Description=RClone Service
RequiresMountsFor=/home/novaviper/CloudData/GoogleDrive
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rclone mount gdrive: /home/novaviper/CloudData/GoogleDrive \
--config /home/novaviper/.config/rclone/rclone.conf \
--allow-non-empty \
--vfs-cache-mode full
ExecStop=/bin/fusermount -uz /home/novaviper/CloudData/GoogleDrive
Restart=always
RestartSec=10

[Install]
WantedBy=default.target
```

It looks like you don't have permissions on that folder.

Can you run a ls -al on that folder and share what the permissions are?

When I run it, it says it doesn't exist, but I go and create it in Dolphin it says it exists already?... I'm not sure what's going on with it

I just deleted the folder via the rmdir command remade it with mkdir, then ran the ls -al and got this

$ ls -al  /home/novaviper/CloudData/GoogleDrive
total 8
drwxrwxr-x 2 novaviper novaviper 4096 Apr 12 09:49 .
drwxrwxr-x 3 novaviper novaviper 4096 Apr 12 09:49 ..

And even after doing all of this, I ran the script again and it still says permission denied. And it only seems to happen when I use the config parameter.

What's even odder is despite the permission error.. I can still access the remote folders.. so it seemed to have mounted? But why do I get that permissions error? ._.

You probably have multiple rclones running as this option alllows for over mounting and creates bad situations.

Try to run it without systemd and from the command line and share the command and the output of your command.

The directory has to exist to mount to it.

The command seems to run just fine now. It lets me access the folder but I get this output

novaviper@RyzenNova:~$ /usr/bin/rclone mount gdrive: /home/novaviper/CloudData/GoogleDrive --config /home/novaviper/.config/rclone/rclone.conf --drive-use-trash --vfs-cache-mode writes --max-transfer 750G
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 1/10: invalid seek position
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 2/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 3/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 4/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 5/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 6/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 7/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 8/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 9/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: low level retry 10/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Read error: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:02 ERROR : CMST 2010 Midterm Study Guide.docx: ReadFileHandle.Release error: file already closed
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 1/10: invalid seek position
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 2/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 3/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 4/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 5/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 6/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 7/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 8/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 9/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: low level retry 10/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Read error: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:07 ERROR : Causal Argument Rough Draft.docx: ReadFileHandle.Release error: file already closed
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 1/10: invalid seek position
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 2/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 3/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 4/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 5/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 6/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 7/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 8/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 9/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: low level retry 10/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Read error: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:12 ERROR : EE Lab 2.docx: ReadFileHandle.Release error: file already closed
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 1/10: invalid seek position
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 2/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 3/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 4/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 5/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 6/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 7/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 8/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 9/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: low level retry 10/10: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Read error: partial downloads are not supported while exporting Google Documents
2020/04/12 12:50:13 ERROR : English.docx: ReadFileHandle.Release error: file already closed

You can see this:

https://rclone.org/drive/#limitations-of-google-docs

Still getting errors with systemd

Apr 12 13:59:18 RyzenNova systemd[1]: Started GDrive - Rclone Service.
Apr 12 13:59:18 RyzenNova rclone[23977]: 2020/04/12 13:59:18 Fatal error: Can not open: /home/novaviper/CloudData/GoogleDrive: open /home/novaviper/CloudData/GoogleDrive: permission denied
Apr 12 13:59:18 RyzenNova systemd[1]: rclonegdrive.service: Main process exited, code=exited, status=1/FAILURE
Apr 12 13:59:18 RyzenNova systemd[1]: rclonegdrive.service: Failed with result 'exit-code'.

And here's what the scripts looks like

[Unit]
Description=GDrive - Rclone Service
RequiresMountsFor=/home/novaviper/CloudData/GoogleDrive
After=network-online.target

[Service]
Type=simple
KillMode=none
ExecStart=/usr/bin/rclone mount gdrive: /home/novaviper/CloudData/GoogleDrive \
--config /home/novaviper/.config/rclone/rclone.conf \
--drive-use-trash \
--vfs-cache-mode full \
--max-transfer 750G
ExecStop=/bin/fusermount -uz /home/novaviper/CloudData/GoogleDrive
Restart=always
RestartSec=10

[Install]
WantedBy=default.target

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