Hi All,
I am trying to mount my premiumize storage on boot. I am struggling to get the service to run. I have had a look on these forums and came across some threads which I have attempted to dissect information from but I am still struggling. I am only beginner with linux so Im grateful for any help and patience.
What is the problem you are having with rclone?
Im unable to get rclone to run as a service in order to mount at boot
Run the command 'rclone version' and share the full output of the command.
rclone v1.57.0
- os/version: raspbian 11.2
- os/kernel: 5.10.92-v7+ (armv7l)
- os/type: linux
- os/arch: arm
- go/version: go1.17.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Premiumize
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
systemctl start rclone
The rclone config contents with secrets removed.
[prem]
type = premiumizeme
token = {"access_token":"f9c5d7f605xxxxxxxxxx8be083d52db2f277c","token_type":"Bearer","refresh_token":"cf283555dfxxxxxxxxxxd1335697ae3a","expiry":"2032-01-21T15:20:05.103012653Z"}
A log from the command with the -vv
flag (THIS IS OUTPUT FROM JOURNALCTL -XE)
An ExecStart= process belonging to unit rclone.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jan 30 15:15:25 raspberrypi systemd[1]: rclone.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit rclone.service has entered the 'failed' state with result 'exit-code'.
Jan 30 15:15:25 raspberrypi systemd[1]: Failed to start Prem Drive (rclone).
░░ Subject: A start job for unit rclone.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit rclone.service has finished with a failure.
░░
░░ The job identifier is 2974 and the job result is failed.
My rclone.service file
GNU nano 5.4 rclone.service
[Unit]
Description=Prem Drive (rclone)
AssertPathIsDirectory=/mnt/prem
After=lighttpd.service
[Service]
Type=notify
ExecStart=/usr/bin/rclone mount
--config=/home/pi/.config/rclone/rclone.conf
--allow-other
--no-modtime
--drive-use-trash
--stats=0
--checkers=16
--bwlimit=40M
--dir-cache-time=60m
--vfs-cache-mode=full
ExecStop=/bin/fusermount -u /mnt/prem
Restart=always
RestartSec=10
[Install]
WantedBy=default.target