Rclone Service fails to start

What is the problem you are having with rclone?

I'm using a modified rclone.service of @Animosity022 and it fails to start.
$ cat rclone.service
[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target

    [Service]
    Type=notify
    Environment=RCLONE_CONFIG=/home/ubuntu/.config/rclone/rclone.conf
    KillMode=none
    RestartSec=5
    ExecStart=/usr/bin/rclone mount GoogleBackupCrypt:/ /home/ubuntu/PlexDrive \
    --allow-other \
    --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 ubuntulaptopapp \
    ExecStop=/bin/fusermount -u /home/ubuntu/PlexDrive
    Restart=on-failure
    User=ubuntu
    Group=ubuntu



$ sudo service rclone status
● rclone.service - RClone Service
   Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sa 2019-12-14 02:45:53 CET; 3s ago
  Process: 7332 ExecStart=/usr/bin/rclone mount GoogleBackupCrypt:/ /home/ubuntu/PlexDrive --allow-other --buffer-size 256M --dir-cache-time 1000h --log-level INFO --log-file 
 Main PID: 7332 (code=exited, status=1/FAILURE)

Dez 14 02:45:53 ubuntu-Latitude-E6510 systemd[1]: Failed to start RClone Service.
Dez 14 02:45:53 ubuntu-Latitude-E6510 systemd[1]: rclone.service: Unit entered failed state.
Dez 14 02:45:53 ubuntu-Latitude-E6510 systemd[1]: rclone.service: Failed with result 'exit-code'.

What is your rclone version (output from rclone version)

rclone v1.50.2

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

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

Ubuntu Mate 16.04

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

Gsuite

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

sudo service rclone start

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

$ sudo service rclone start -vv
Job for rclone.service failed because the control process exited with error code. See "systemctl status rclone.service" and "journalctl -xe" for details.






 $ sudo service rclone status -vv
    ● rclone.service - RClone Service
       Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
       Active: activating (auto-restart) (Result: exit-code) since Sa 2019-12-14 02:51:08 CET; 4s ago
      Process: 8163 ExecStart=/usr/bin/rclone mount GoogleBackupCrypt:/ /home/ubuntu/PlexDrive --allow-other --buffer-size 256M --dir-cache-time 1000h --log-level INFO --log-file 
     Main PID: 8163 (code=exited, status=1/FAILURE)

    Dez 14 02:51:08 ubuntu-Latitude-E6510 systemd[1]: Failed to start RClone Service.
    Dez 14 02:51:08 ubuntu-Latitude-E6510 systemd[1]: rclone.service: Unit entered failed state.
    Dez 14 02:51:08 ubuntu-Latitude-E6510 systemd[1]: rclone.service: Failed with result 'exit-code'.
    lines 1-9/9 (END)

You should remove the last \ there.

You can type journalctl -u rclone -b

and that will give some error info as well.

The issue was that i forgot to create the log folder. was a quick mkdir issue. And I also removed the \

It's working now! :slight_smile:

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