RClone services broke after update from 16.04 to 18.04

What is the problem you are having with rclone?

Upgraded to 18.04 from 16.04. No modification to services/configs/etc, just wont mount all after update. One mount works, the rest don't.

What is your rclone version (output from rclone version)

v 1.52.2

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

Ubuntu 18.04

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)

//One that works if mounted manually via start

[Unit]
Description=RClone Service
PartOf=gmedia.service

[Service]
Type=notify

ExecStart=/usr/bin/rclone mount G****t: /**/Movies \
        --allow-other \
        --dir-cache-time 160h \
        --fuse-flag sync_read \
        --tpslimit 10 \
        --tpslimit-burst 10 \
        --buffer-size 1G \
        --attr-timeout 1s \
        --vfs-read-chunk-size 256M \
        --vfs-cache-max-age 5m \
        --vfs-cache-mode writes \
        --vfs-read-chunk-size-limit off \
        --log-level DEBUG \
        --log-file=/var/log/rclone-g*******.log \
        --timeout 1h \
        --umask 002 \
        --rc

ExecStop=/bin/fusermount -uz /**/Movies 
RestartSec=10
Restart=on-failure
User=s0n1cm0nk3y
Group=users

[Install]
WantedBy=gmedia.service

//One that doesn't work if mounted manually via start
[Unit]
Description=RClone Service
PartOf=gmedia.service

[Service]
Type=notify

ExecStart=/usr/bin/rclone mount G***t: /**/TVShows \
    --allow-other \
    --dir-cache-time 160h \
    --fuse-flag sync_read \
    --tpslimit 10 \
    --tpslimit-burst 10 \
    --buffer-size 1G \
    --attr-timeout 1s \
    --vfs-read-chunk-size 256M \
    --vfs-cache-max-age 5m \
    --vfs-cache-mode writes \
    --vfs-read-chunk-size-limit off \
    --log-level DEBUG \
    --log-file=/var/log/rclone-******.log \
    --timeout 1h \
    --umask 002 

ExecStop=/bin/fusermount -uz /**/TVShows
RestartSec=10
Restart=on-failure
User=s0n1cm0nk3y
Group=users

[Install]
WantedBy=gmedia.service

Additional Information

I am able to copy the mount commands from the service at 1:1 and run them without issues. Both services show the same errors on systemd-analyze and the error message shown for the one that doesnt work varies between:

Jul 09 00:31:42 b.org systemd[1]: /etc/systemd/system/rclone-g***s.service:9: Missing '='.

Jul 09 00:31:42 b.org systemd[1]: /etc/systemd/system/rclone-g****s.service:9: Missing '='.

-and-

Jul 09 01:33:27 b.org systemd[1]: /etc/systemd/system/rclone-g****s.service:8: Ignoring unknown escape sequences: " \ "

I'm really at a lost and anything would help.

You've got a space after one of the backslashes. If you remove that it will work better.

It was odd as each of these worked before the update. There wasn't issues or anything. Since the post I went through and copied the working file for each of the other mounts and modified their location. All is back up and running now.

It probably was something stupid but I'm not sure on the space, especially when it complained of a missing = too. Whats your thoughts? I went to corrupted service file.

Something would have changed in the upgrade that caused the issue I'd guess.

The = errors are a result of the extra space.

Probably. It worked beautifully in 16.04 but once updated to 18.04 they are all broke.

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