Rclone.service is not loaded properly: Invalid argument

And that command doesn’t run? I can see the right directory in your output:

i used it again and this is what i got:

root@onlines2m:~# ls -al /etc/systemd/system/multi-user.target.wants
total 8
drwxr-xr-x  2 root root 4096 Feb  5 18:31 .
drwxr-xr-x 10 root root 4096 Feb  3 22:51 ..
lrwxrwxrwx  1 root root   33 Jan 25 15:16 bind9.service -> /lib/systemd/system/bind9.service
lrwxrwxrwx  1 root root   41 Jan 25 15:05 console-setup.service -> /lib/systemd/system/console-setup.service
lrwxrwxrwx  1 root root   38 Jan 25 16:43 containerd.service -> /lib/systemd/system/containerd.service
lrwxrwxrwx  1 root root   32 Jan 25 15:04 cron.service -> /lib/systemd/system/cron.service
lrwxrwxrwx  1 root root   34 Jan 25 16:43 docker.service -> /lib/systemd/system/docker.service
lrwxrwxrwx  1 root root   38 Jan 25 15:13 irqbalance.service -> /lib/systemd/system/irqbalance.service
lrwxrwxrwx  1 root root   40 Jan 25 21:23 ModemManager.service -> /lib/systemd/system/ModemManager.service
lrwxrwxrwx  1 root root   47 Jan 25 15:05 networkd-dispatcher.service -> /lib/systemd/system/networkd-dispatcher.service
lrwxrwxrwx  1 root root   42 Jan 25 21:23 NetworkManager.service -> /lib/systemd/system/NetworkManager.service
lrwxrwxrwx  1 root root   32 Jan 25 16:40 nmbd.service -> /lib/systemd/system/nmbd.service
lrwxrwxrwx  1 root root   36 Jan 25 15:03 ondemand.service -> /lib/systemd/system/ondemand.service
lrwxrwxrwx  1 root root   36 Jan 25 15:15 openntpd.service -> /lib/systemd/system/openntpd.service
lrwxrwxrwx  1 root root   36 Jan 25 21:23 pppd-dns.service -> /lib/systemd/system/pppd-dns.service
lrwxrwxrwx  1 root root   36 Jan 25 15:03 remote-fs.target -> /lib/systemd/system/remote-fs.target
lrwxrwxrwx  1 root root   33 Jan 25 15:13 rsync.service -> /lib/systemd/system/rsync.service
lrwxrwxrwx  1 root root   35 Jan 25 15:04 rsyslog.service -> /lib/systemd/system/rsyslog.service
lrwxrwxrwx  1 root root   32 Jan 25 16:40 smbd.service -> /lib/systemd/system/smbd.service
lrwxrwxrwx  1 root root   31 Jan 25 15:16 ssh.service -> /lib/systemd/system/ssh.service
lrwxrwxrwx  1 root root   44 Jan 25 15:03 systemd-resolved.service -> /lib/systemd/system/systemd-resolved.service
lrwxrwxrwx  1 root root   31 Jan 25 15:14 ufw.service -> /lib/systemd/system/ufw.service
lrwxrwxrwx  1 root root   47 Jan 25 16:41 unattended-upgrades.service -> /lib/systemd/system/unattended-upgrades.service
lrwxrwxrwx  1 root root   35 Jan 25 16:40 winbind.service -> /lib/systemd/system/winbind.service
lrwxrwxrwx  1 root root   42 Jan 25 21:23 wpa_supplicant.service -> /lib/systemd/system/wpa_supplicant.service

So as root again, if you try:

systemctl enable rclone.service

you are back getting the same invalid argument error? I’m trying to think of everything to possibly check as we’re coming up pretty empty.

yes

root@onlines2m:~# systemctl enable rclone.service
Failed to enable unit: File rclone.service: Invalid argument

Ok. One more

systemd-analyze verify rclone.service

there is one more thing when i use:
systemctl status rclone as root i get a few errors.
when i use the same command is the user not the root i get zero errors ?!

is there any reason for that ?!

root@onlines2m:~# systemd-analyze verify rclone.service
getty.target: Wants dependency dropin /etc/systemd/system/getty.target.wants/getty@ttyS1.service is not a symlink, ignoring.
/etc/systemd/system/rclone.service:1: Assignment outside of section. Ignoring.
Attempted to remove disk file system, and we can't allow that.
root@onlines2m:~#

Can you share the output of:

cat -vet rclone.service

root@onlines2m:~# cat -vet rclone.service
cat: rclone.service: No such file or directory
root@onlines2m:~#

You gotta move first into the directory that contains the file:

cd /etc/systemd/system/

root@onlines2m:/etc/systemd/system# cat -vet rclone.service
root@gemini:/etc/systemd/system cat test.service$
[Unit]$
Description=RClone Service$
RequiresMountsFor=/home/mfmaa03/media/gsuite$
After=network-online.target$
$
[Service]$
Type=simple$
ExecStart=/usr/bin/rclone mount gsuite: /home/mfmaa03/media/gsuite $
–config /home/mfmaa03/.config/rclone/rclone.conf $
–allow-non-empty $
–allow-other $
–vfs-cache-mode writes $
–max-transfer 750G$
ExecStop=/bin/fusermount -uz /home/mfmaa03/media/gsuite$
Restart=always$
RestartSec=10$
User=mfmaa03$
Group=mfmaa03$
$
[Install]$
root@onlines2m:/etc/systemd/system#

Are there \ after the commands? You need to us the 3 backtics to paste it in here.

root@gemini:/etc/systemd/system cat -vet gmedia-rclone.service
[Unit]$
Description=RClone Service$
PartOf=gmedia.service$
RequiresMountsFor=/data$
$
[Service]$
Type=notify$
Environment=RCLONE_CONFIG=/data/rclone/rclone.conf$
ExecStart=/usr/bin/rclone mount gcrypt: /GD \$
   --allow-other \$
   --bind 192.168.1.30 \$
   --buffer-size 256M \$
   --dir-cache-time 72h \$
   --drive-chunk-size 32M \$
   --log-level INFO \$
   --log-file /home/felix/logs/rclone.log \$
   --timeout 1h \$
   --umask 002 \$
   --vfs-read-chunk-size 128M \$
   --vfs-read-chunk-size-limit off \$
   --rc $
ExecStop=/bin/fusermount -uz /GD$
Restart=on-failure$
User=felix$
Group=felix$
$
[Install]$
WantedBy=gmedia.service$
root@onlines2m:/etc/systemd/system# cat -vet rclone.service
root@gemini:/etc/systemd/system cat test.service$
[Unit]$
Description=RClone Service$
RequiresMountsFor=/home/mfmaa03/media/gsuite$
After=network-online.target$
$
[Service]$
Type=simple$
ExecStart=/usr/bin/rclone mount gsuite: /home/mfmaa03/media/gsuite \$
   --config /home/mfmaa03/.config/rclone/rclone.conf \$
   --allow-non-empty \$
   --allow-other \$
   --vfs-cache-mode writes \$
   --max-transfer 750G$
ExecStop=/bin/fusermount -uz /home/mfmaa03/media/gsuite$
Restart=always$
RestartSec=10$
User=mfmaa03$
Group=mfmaa03$
$
[Install]$
WantedBy=default.targetroot@onlines2m:/etc/systemd/system#

So I took your exact file and tested an enable and disable.

root@gemini:/etc/systemd/system vi rclone.service
root@gemini:/etc/systemd/system systemctl daemon-reload
root@gemini:/etc/systemd/system systemctl enable rclone
Created symlink /etc/systemd/system/default.target.wants/rclone.service → /etc/systemd/system/rclone.service.
root@gemini:/etc/systemd/system systemctl disable rclone
Removed /etc/systemd/system/default.target.wants/rclone.service.

I basically copied your file from the post above.

root@gemini:/etc/systemd/system cat -vet rclone.service
[Unit]$
Description=RClone Service$
RequiresMountsFor=/home/mfmaa03/media/gsuite$
After=network-online.target$
$
[Service]$
Type=simple$
ExecStart=/usr/bin/rclone mount gsuite: /home/mfmaa03/media/gsuite \$
   --config /home/mfmaa03/.config/rclone/rclone.conf \$
   --allow-non-empty \$
   --allow-other \$
   --vfs-cache-mode writes \$
   --max-transfer 750G$
ExecStop=/bin/fusermount -uz /home/mfmaa03/media/gsuite$
Restart=always$
RestartSec=10$
User=mfmaa03$
Group=mfmaa03$
$
[Install]$
WantedBy=default.target$
root@gemini:/etc/systemd/system

At some point, you have done a reload right? If that doesn’t work, I’m not sure what else to check as you are past all my Linux ideas.