Using Rclone mount with systemd

Hi Guys

Totally new here an need help if you can.

I get the following error when checking the status and running this.
Please see below.

Would love some help.

Thank
Gazza

~$ systemctl --user enable --now rclone-vfs.service
Job for rclone-vfs.service failed because the control process exited with error code.
See "systemctl --user status rclone-vfs.service" and "journalctl --user -xe" for details.
:~$ systemctl --user status rclone-vfs.service
\u25cf rclone-vfs.service - RClone VFS Service
   Loaded: loaded (/home32/goatboi/.config/systemd/user/rclone-vfs.service; enab
   Active: failed (Result: exit-code) since Sat 2020-03-07 14:52:46 CET; 16s ago
  Process: 43359 ExecStart=/home32/goatboi/bin/rclone mount gdrive: /home32/goat
 Main PID: 43359 (code=exited, status=1/FAILURE)

Can you share your service file?

Use 3 back tics before and after the block of code like

this

...

[Unit]
Description=RClone VFS Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
KillMode=none
Environment=GOMAXPROCS=2

ExecStart=/home32/goatboi/bin/rclone mount gdrive: /home32/goatboi/goatmount
--allow-other
--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36'
--config /home32/goatboi/.config/rclone/rclone.conf
--use-mmap
--drive-skip-gdocs
--dir-cache-time 168h
--timeout 1h
--umask 002
--poll-interval=1m
--vfs-cache-mode writes
--vfs-read-chunk-size 64M
--vfs-read-chunk-size-limit 2048M
--tpslimit 10
--tpslimit-burst 10
ExecStop=/bin/fusermount -uz /home32/goatboi/bin/rclone
Restart=on-failure

[Install]
WantedBy=default.target
...

The rclone log from here would be useful too

If that's the fully pasted file, you are missing \ after things.

It should look like this

felix@gemini:/etc/systemd/system$ cat rclone.service
[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
Environment=RCLONE_CONFIG=/opt/rclone/rclone.conf
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount gcrypt: /GD \
--allow-other \
--bind 192.168.1.30 \
--buffer-size 256M \
--dir-cache-time 1000h \
--log-level INFO \
--log-file /opt/rclone/logs/rclone.log \
--poll-interval 15s \
--timeout 1h \
--umask 002 \
--user-agent test \
--rc \
--rc-addr 127.0.0.1:5572
ExecStop=/bin/fusermount -uz /GD
Restart=on-failure
User=felix
Group=felix

[Install]
WantedBy=multi-user.target

I feel like im totally lost here. I've done this before and im not sure what the issue is this time.
Anyone able to pm me so we can contact each other and see if you can help.

Hi Guys,

Anyone able to help with the setup. Its using ultraseed box.
Thanks

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