Unable to mount via systemctl service

What is the problem you are having with rclone?

I am unable to setup a systemctl service to mount rclone automatically at boot.
Oct 22 00:49:34 Z600 rclone[572780]: password:2020/10/22 00:49:34 Failed to read line: EOF

What is your rclone version:

rclone v1.53.1

Which OS you are using and how many bits:

Ubuntu 20.04.1 amd64

Which cloud storage system are you using?

Google Drive

The command you were trying to run:

systemctl start rclone

systemctl rclone.service:

#/etc/systemd/system/rclone.service
                   
[Unit]
Description=rclone mount service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/****/.config/rclone/rclone.conf
KillMode=none
RestartSec=10
ExecStart=/usr/bin/rclone mount gdrivecrypt:/Other /home/****/Videos/Mount
--allow-other \
--dir-cache-time=1000h \
--vfs-cache-mode full \
--vfs-read-chunk-size=8M \
--vfs-read-chunk-size-limit off \
--buffer-size=128M \
--poll-interval=30s \
--timeout=1h \
--umask 002 \
ExecStop=/bin/fusermount -uz /home/****/Videos/Mount
Restart=on-failure
User=****
Group=****

[Install]
WantedBy=default.target

A log from the command with the -vv flag

Sorry, did not / don't know how to do this (Or whether it applies in this case)

Additional info: journalctl -xe

user@Z600:~$ journalctl -xe
-- the configured Restart= setting for the unit.
Oct 22 00:49:34 Z600 systemd[1]: Stopped rclone mount service.
-- Subject: A stop job for unit rclone.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A stop job for unit rclone.service has finished.
-- 
-- The job identifier is 8710 and the job result is done.
Oct 22 00:49:34 Z600 systemd[1]: Starting rclone mount service...
-- Subject: A start job for unit rclone.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit rclone.service has begun execution.
-- 
-- The job identifier is 8710.
Oct 22 00:49:34 Z600 rclone[572780]: Enter configuration password:
Oct 22 00:49:34 Z600 rclone[572780]: password:2020/10/22 00:49:34 Failed to read line: EOF
Oct 22 00:49:34 Z600 systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- An ExecStart= process belonging to unit rclone.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Oct 22 00:49:34 Z600 systemd[1]: rclone.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- The unit rclone.service has entered the 'failed' state with result 'exit-code'.
Oct 22 00:49:34 Z600 systemd[1]: Failed to start rclone mount service.
-- Subject: A start job for unit rclone.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit rclone.service has finished with a failure.

Looks like you have a password on your config.

Is it as simple as removing the password from my config? Or is there another way in which I can keep my password?

It's really up to you.

Having a password and placing it into a file seems like it defeats the purpose of having a password.

You can have it ask for a password as a prompt but you can't do that at boot.

Few examples here:

1 Like

Much appreciated @Animosity022!

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