Unable to generate rclone log file and unable to start service

What is the problem you are having with rclone?

I am attempting to generate a log file to understand why an rclone service will not start. I am following a guide on youtube from Simple-homelab and attempting to mount a SMB share from my Truenas VM to a Ubuntu LXC both running on proxmox.
For context here is the status output:

x rclone-truenas.service - Rclone NAS SMB
     Loaded: loaded (/etc/systemd/system/rclone-truenas.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Fri 2025-02-07 14:37:32 UTC; 1min 36s ago
    Process: 1075 ExecStart=/usr/bin/rclone mount nas_smb: /media/rclone/truenas --config /home/sean/.config/rclone/rclone.conf ->
   Main PID: 1075 (code=exited, status=217/USER)
        CPU: 245us

Feb 07 14:37:32 UbuntuCT systemd[1]: Starting rclone-truenas.service - Rclone NAS SMB...
Feb 07 14:37:32 UbuntuCT systemd[1]: rclone-truenas.service: Main process exited, code=exited, status=217/USER
Feb 07 14:37:32 UbuntuCT systemd[1]: rclone-truenas.service: Failed with result 'exit-code'.
Feb 07 14:37:32 UbuntuCT systemd[1]: Failed to start rclone-truenas.service - Rclone NAS SMB.

Run the command 'rclone version' and share the full output of the command.

rclone v1.69.0

  • os/version: ubuntu 24.04 (64 bit)
  • os/kernel: 6.8.12-8-pve (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.4
  • go/linking: static
  • go/tags: none

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

n/a trying to mount SMB share

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

sudo systemctl start rclone-truenas.service

Description=Rclone NAS SMB
Wants=network-online.target
After=network-online.target

[Service]
# https://forum.rclone.org/t/some-help-with-rclone-mount-for-plex-buffering-everywhere/18201/23
# https://forum.rclone.org/t/unable-to-start-rclone-service/32149/7
Type=notify
ExecStart=/usr/bin/rclone mount nas_smb: /media/rclone/truenas \
#--read-only \
--config /home/sean/.config/rclone/rclone.conf \
--log-file=/home/sean/rclone-truenas.log \
--log-level NOTICE \
--allow-other \
--no-modtime \
--umask 002 \
--user-agent home-server \
--dir-cache-time 24h \
--buffer-size 128M \
--vfs-fast-fingerprint \
--vfs-cache-mode full \
--vfs-cache-max-age 336h \
--cache-dir=/media/cache/truenas \
--vfs-cache-max-size 256G \
--vfs-read-chunk-size-limit 10G \
--vfs-refresh \
--use-mmap
ExecStop=/bin/fusermount -uz /media/rclone/truenas
#ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr :5572 _async=true
Restart=on-abort
User=anand
Group=anand
KillMode=mixed
RestartSec=5

When I navigate to /home/sean/rclone-truenas.log I could not find a log file, I also manually created the log file and re-ran everything but the logfile remains blank.

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

sean@UbuntuCT:/etc/systemd/system$ rclone config redacted
[nas_smb]
type = smb
host = XXX
pass = XXX

A log from the command that you were trying to run with the -vv flag

unsure how to do this sorry

Paste  log here

welcome to the forum,

could be that the service failed to start, rclone was never run, so no rclone log was created.

might be a user permissions issue.
you are running the systemd service as User=anand, not as User=sean
https://www.shellhacks.com/systemd-service-not-starting-status217-user/

gosh darn it! I thought I had removed everything from the copied config file but I guess not, sorry, with your push I looked further down and found it, edited it and it now seems to be working. Thanks!

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