Rclone.service failed

Hi, I am having issues mounting rclone. Its configured properly but couldn't sort out rclone.service. Could you please help. Thank you

# /etc/systemd/system/rclone.service
[Unit]
Description=Rclone VFS Mount
After=network-online.target

[Service]
User=1000
Group=1000
Type=notify
#ExecStartPre=/bin/sleep 10
ExecStart=/usr/bin/rclone mount \
  --allow-other \
  --buffer-size=64M \
  --config=/home/mouzzampk2014/.config/rclone/rclone.conf \
  --dir-cache-time=168h \
  --drive-chunk-size=64M \
  --drive-skip-gdocs \
  --fast-list \
  --rc \
  --rc-web-gui \
  --syslog \
  --timeout=10m \
  --umask=002 \
  --vfs-read-chunk-size-limit=2048M \
  --vfs-read-chunk-size=64M \
  -v \
  google: /mnt/remote
ExecStop=/bin/fusermount -uz /mnt/remote
Restart=on-abort
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=default.target

I also uncomment this line from user_allow_other from fuse.conf

After this I ran sudo systemctl daemon-reload and then these sudo systemctl start rclone.service sudo systemctl enable rclone.service

But not sure why I am getting this message.

● rclone.service - Rclone VFS Mount
   Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-05-31 19:50:27 UTC; 5min ago
  Process: 4568 ExecStart=/usr/bin/rclone mount --allow-other --buffer-size=64M --config=/home/mouzzampk2014/.config/rclone/rclone.conf --dir-cache-time=168h -
 Main PID: 4568 (code=exited, status=1/FAILURE)

May 31 19:50:27 istvan rclone[4568]:       --suffix string                     Suffix for use with --backup-dir.
May 31 19:50:27 istvan rclone[4568]:       --swift-chunk-size int              Above this size files will be chunked into a _segments container. (defaul
May 31 19:50:27 istvan rclone[4568]:       --syslog                            Use Syslog for logging
May 31 19:50:27 istvan rclone[4568]:       --syslog-facility string            Facility for syslog, eg KERN,USER,... (default "DAEMON")
May 31 19:50:27 istvan rclone[4568]:       --timeout duration                  IO idle timeout (default 5m0s)
May 31 19:50:27 istvan rclone[4568]:       --track-renames                     When synchronizing, track file renames and do a server side move if possi
May 31 19:50:27 istvan rclone[4568]:       --transfers int                     Number of file transfers to run in parallel. (default 4)
May 31 19:50:27 istvan rclone[4568]:   -u, --update                            Skip files that are newer on the destination.
May 31 19:50:27 istvan rclone[4568]:   -v, --verbose count[=-1]                Print lots more stuff (repeat for more)
May 31 19:50:27 istvan rclone[4568]: 2020/05/31 19:50:27 Fatal error: unknown flag: --fast-list

Thank you

You'd remove fast-list as it does nothing on a mount.

I commented the line and just re ran but same error

Thank you

After commenting --fast-list

I have this log

● rclone.service - Rclone VFS Mount
   Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-05-31 20:24:30 UTC; 11min ago
  Process: 5262 ExecStart=/usr/bin/rclone mount --allow-other --buffer-size=64M --config=/home/istvan/.config/rclone/rclone.conf --dir-cache-time=168h -
 Main PID: 5262 (code=exited, status=1/FAILURE)

May 31 20:24:30 istvan rclone[5262]:       --syslog-facility string            Facility for syslog, eg KERN,USER,... (default "DAEMON")
May 31 20:24:30 istvan rclone[5262]:       --timeout duration                  IO idle timeout (default 5m0s)
May 31 20:24:30 istvan rclone[5262]:       --track-renames                     When synchronizing, track file renames and do a server side move if possi
May 31 20:24:30 istvan rclone[5262]:       --transfers int                     Number of file transfers to run in parallel. (default 4)
May 31 20:24:30 istvan rclone[5262]:   -u, --update                            Skip files that are newer on the destination.
May 31 20:24:30 istvan rclone[5262]:   -v, --verbose count[=-1]                Print lots more stuff (repeat for more)
May 31 20:24:30 istvan rclone[5262]: 2020/05/31 20:24:30 Fatal error: unknown flag: --fast-list
May 31 20:24:30 istvan systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
May 31 20:24:30 istvan systemd[1]: rclone.service: Failed with result 'exit-code'.
May 31 20:24:30 istvan systemd[1]: Failed to start Rclone VFS Mount.
lines 1-16/16 (END)

You need to run systemctl daemon-reload after you make changes to a service file.

Yes I done that too

That means you did not change the file as the same error is there.

Let me post the file again and error. So basically I removed the line and then saved the file.

And then I ran these commands one by one

sudo systemctl daemon-reload
sudo systemctl start rclone.service
sudo systemctl enable rclone.service

But after this sudo systemctl start rclone.service I get this error

May 31 19:50:27 istvan rclone[4568]:       --suffix string                     Suffix for use with --backup-dir.
May 31 19:50:27 istvan rclone[4568]:       --swift-chunk-size int              Above this size files will be chunked into a _segments container. (defaul
May 31 19:50:27 istvan rclone[4568]:       --syslog                            Use Syslog for logging
May 31 19:50:27 istvan rclone[4568]:       --syslog-facility string            Facility for syslog, eg KERN,USER,... (default "DAEMON")
May 31 19:50:27 istvan rclone[4568]:       --timeout duration                  IO idle timeout (default 5m0s)
May 31 19:50:27 istvan rclone[4568]:       --track-renames                     When synchronizing, track file renames and do a server side move if possi
May 31 19:50:27 istvan rclone[4568]:       --transfers int                     Number of file transfers to run in parallel. (default 4)
May 31 19:50:27 istvan rclone[4568]:   -u, --update                            Skip files that are newer on the destination.
May 31 19:50:27 istvan rclone[4568]:   -v, --verbose count[=-1]                Print lots more stuff (repeat for more)
May 31 19:50:27 istvan rclone[4568]: 2020/05/31 19:50:27 Fatal error: unknown flag: --fast-list

Can you cat your rclone.service file and post that.

Thank you for looking into this for me.

# /etc/systemd/system/rclone.service
[Unit]
Description=Rclone VFS Mount
After=network-online.target

[Service]
User=1000
Group=1000
Type=notify
#ExecStartPre=/bin/sleep 10
ExecStart=/usr/bin/rclone mount \
  --allow-other \
  --buffer-size=64M \
  --config=/home/istvan/.config/rclone/rclone.conf \
  --dir-cache-time=168h \
  --drive-chunk-size=64M \
  --drive-skip-gdocs \
  --rc \
  --rc-web-gui \
  --syslog \
  --timeout=10m \
  --umask=002 \
  --vfs-read-chunk-size-limit=2048M \
  --vfs-read-chunk-size=64M \
  -v \
  google: /mnt/remote
ExecStop=/bin/fusermount -uz /mnt/remote
Restart=on-abort
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=default.target

Can you do:

date
rclone version
sudo systemctl daemon-reload
sudo systemctl start rclone.service
systemctl status rclone
journalctl -u rclone -b

and share the output.

istvan@istvan:~$ date
Mon Jun  1 12:17:20 UTC 2020
istvan@istvan:~$ rclone version
rclone v1.36
istvan@istvan:~$ sudo systemctl daemon-reload
[sudo] password for istvan: 
istvan@istvan:~$ sudo systemctl start rclone.service
Job for rclone.service failed because the control process exited with error code.
See "systemctl status rclone.service" and "journalctl -xe" for details.
istvan@istvan:~$ systemctl status rclone
● rclone.service - Rclone VFS Mount
   Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-06-01 12:17:52 UTC; 6s ago
  Process: 22355 ExecStart=/usr/bin/rclone mount --allow-other --buffer-size=64M --config=/home/istvan/.config/rclone/rclone.conf --dir-cache-time=168h 
 Main PID: 22355 (code=exited, status=1/FAILURE)

Jun 01 12:17:52 istvan rclone[22355]:       --suffix string                     Suffix for use with --backup-dir.
Jun 01 12:17:52 istvan rclone[22355]:       --swift-chunk-size int              Above this size files will be chunked into a _segments container. (defau
Jun 01 12:17:52 istvan rclone[22355]:       --syslog                            Use Syslog for logging
Jun 01 12:17:52 istvan rclone[22355]:       --syslog-facility string            Facility for syslog, eg KERN,USER,... (default "DAEMON")
Jun 01 12:17:52 istvan rclone[22355]:       --timeout duration                  IO idle timeout (default 5m0s)
Jun 01 12:17:52 istvan rclone[22355]:       --track-renames                     When synchronizing, track file renames and do a server side move if poss
Jun 01 12:17:52 istvan rclone[22355]:       --transfers int                     Number of file transfers to run in parallel. (default 4)
Jun 01 12:17:52 istvan rclone[22355]:   -u, --update                            Skip files that are newer on the destination.
Jun 01 12:17:52 istvan rclone[22355]:   -v, --verbose count[=-1]                Print lots more stuff (repeat for more)
Jun 01 12:17:52 istvan rclone[22355]: 2020/06/01 12:17:52 Fatal error: unknown flag: --rc

istvan@istvan:~$ journalctl -u rclone -b
-- Logs begin at Sun 2020-05-31 16:59:01 UTC, end at Mon 2020-06-01 12:18:11 UTC. --
May 31 18:08:54 istvan systemd[1]: Starting Rclone VFS Mount...
May 31 18:08:54 istvan rclone[3228]: Error: unknown flag: --fast-list
May 31 18:08:54 istvan rclone[3228]: Usage:
May 31 18:08:54 istvan rclone[3228]:   rclone mount remote:path /path/to/mountpoint [flags]
May 31 18:08:54 istvan rclone[3228]: Flags:
May 31 18:08:54 istvan rclone[3228]:       --allow-non-empty           Allow mounting over a non-empty directory.
May 31 18:08:54 istvan rclone[3228]:       --allow-other               Allow access to other users.
May 31 18:08:54 istvan rclone[3228]:       --allow-root                Allow access to root user.
May 31 18:08:54 istvan rclone[3228]:       --debug-fuse                Debug the FUSE internals - needs -v.
May 31 18:08:54 istvan rclone[3228]:       --default-permissions       Makes kernel enforce access control based on the file mode.
May 31 18:08:54 istvan rclone[3228]:       --dir-cache-time duration   Time to cache directory entries for. (default 5m0s)
May 31 18:08:54 istvan rclone[3228]:       --gid uint32                Override the gid field set by the filesystem. (default 1000)
May 31 18:08:54 istvan rclone[3228]:   -h, --help                      help for mount
May 31 18:08:54 istvan rclone[3228]:       --max-read-ahead int        The number of bytes that can be prefetched for sequential reads. (default 128k)
May 31 18:08:54 istvan rclone[3228]:       --no-modtime                Don't read the modification time (can speed things up).
May 31 18:08:54 istvan rclone[3228]:       --no-seek                   Don't allow seeking in files.
May 31 18:08:54 istvan rclone[3228]:       --read-only                 Mount read-only.
May 31 18:08:54 istvan rclone[3228]:       --uid uint32                Override the uid field set by the filesystem. (default 1000)
May 31 18:08:54 istvan rclone[3228]:       --umask int                 Override the permission bits set by the filesystem. (default 18)
May 31 18:08:54 istvan rclone[3228]:       --write-back-cache          Makes kernel buffer writes before sending them to rclone. Without this, writethro
May 31 18:08:54 istvan rclone[3228]: Global Flags:
May 31 18:08:54 istvan rclone[3228]:       --acd-templink-threshold int        Files >= this size will be downloaded via their tempLink. (default 9G)
May 31 18:08:54 istvan rclone[3228]:       --acd-upload-wait-per-gb duration   Additional time per GB to wait after a failed complete upload to see if i
May 31 18:08:54 istvan rclone[3228]:       --ask-password                      Allow prompt for password for encrypted configuration. (default true)
May 31 18:08:54 istvan rclone[3228]:       --b2-chunk-size int                 Upload chunk size. Must fit in memory. (default 96M)
May 31 18:08:54 istvan rclone[3228]:       --b2-test-mode string               A flag string for X-Bz-Test-Mode header.
May 31 18:08:54 istvan rclone[3228]:       --b2-upload-cutoff int              Cutoff for switching to chunked upload (default 190.735M)
May 31 18:08:54 istvan systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
May 31 18:08:54 istvan rclone[3228]:       --b2-versions                       Include old versions in directory listings.
May 31 18:08:54 istvan rclone[3228]:       --backup-dir string                 Make backups into hierarchy based in DIR.
May 31 18:08:54 istvan rclone[3228]:       --buffer-size int                   Buffer size when copying files. (default 16M)
May 31 18:08:54 istvan rclone[3228]:       --bwlimit BwTimetable               Bandwidth limit in kBytes/s, or use suffix b|k|M|G or a full timetable.
May 31 18:08:54 istvan rclone[3228]:       --checkers int                      Number of checkers to run in parallel. (default 8)
May 31 18:08:54 istvan rclone[3228]:   -c, --checksum                          Skip based on checksum & size, not mod-time & size

That version of rclone is about 3-4 years old.

Please update it:

https://rclone.org/downloads/

So the flags do not work, which is also why that's a question the template for the first post...

1 Like

Thank you so much. Much appreciated working perfectly fine. Can I ask another question

Why I need to uncomment this user_allow_other?

If I commented this line I get error but if I uncomment then its fine?

Thank you again and you have been very helpful

If you use the flag with rclone --allow-other, it makes any fuse mount accessible via other users on the server.

So if you ran a rclone mount as user 'bob' and wanted user 'joe' to access it, you need to mount with allow other. That requires a /etc/fuse.conf change on the system so you have to have root to do that as on a multi user server/seedbox, that would be not a good thing to do.

Thank you so much. Apologise for very late response :frowning:

Have a very good evening. Thanks again and much appreciated for all your help. Works flawlessly

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