Systemd mount from guide (fail!)

systemctl --user start rclone@tcrypt

The rclone config contents with secrets removed.

[tdrive]
type = drive
scope = drive
token = {"access_token":"xxxxxxxxx","token_type":"Bearer","refresh_token":"yyyyyyy","expiry":"2023-05-10T15:29:10.59586061+01:00"}
team_drive = aaaaaaaa
root_folder_id = 

[tcrypt]
type = crypt
remote = tdrive:encrypt
password = ccccccccc
password2 = dddddddddddd

A log from the command with the -vv flag

░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A stop job for unit UNIT has finished.
░░ 
░░ The job identifier is 5390 and the job result is done.
May 10 15:09:09 BIG-KUBUNTU systemd[2466]: Starting rclone@tcrypt.service - RClone mount of users remote tcrypt using filesystem permissions...
░░ Subject: A start job for unit UNIT has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit UNIT has begun execution.
░░ 
░░ The job identifier is 5390.
May 10 15:09:09 BIG-KUBUNTU systemd[2466]: rclone@tcrypt.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ An ExecStartPre= process belonging to unit UNIT has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 10 15:09:09 BIG-KUBUNTU systemd[2466]: rclone@tcrypt.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit UNIT has entered the 'failed' state with result 'exit-code'.
May 10 15:09:09 BIG-KUBUNTU systemd[2466]: Failed to start rclone@tcrypt.service - RClone mount of users remote tcrypt using filesystem permissions.
░░ Subject: A start job for unit UNIT has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit UNIT has finished with a failure.
░░ 
░░ The job identifier is 5390 and the job result is failed.

Sorry but I found trying to work out which bits to keep and where to paste really confusing so my formatting will be out but I have answered all questions.

I've been trying to follow Systemd rclone mount · rclone/rclone Wiki · GitHub

One comment on that that might help would be if it indicated if root or std user permissions were needed on each stage...

I have saved the service file to /etc/systemd/user/rclone@.service (root as everything else there is but permissions are different to rest of contents of folder)

I have issued systemctl --user daemon-reload

I put my working rclone.conf at ~/.config/rclone/rclone.conf

I have tcrypt.env there also (my remote is tcrypt)

Contents:
REMOTE_NAME=tcrypt
MOUNT_DIR=~/tcrypt
REMOTE_PATH=/

I created ~/tcrypt to mount my remote to

rclone lsd tcrypt: works and lists my remote contents

systemctl --user start rclone@tcrypt ("You should now be able to navigate to ~/tcrypt and explore the files you have in your remote." - I CANNOT as it isnt mounting)

Job for rclone@tcrypt.service failed because the control process exited with error code.
See "systemctl --user status rclone@tcrypt.service" and "journalctl --user -xeu rclone@tcrypt.service" for details.

Any help appreciated. I've probably misread something in guide....

hi,

i would not use that, instead use
https://github.com/animosity22/homescripts/blob/master/systemd/rclone-drive.service

and need to use a rclone debug log.

Thanks, tried that and same issue

Failed to start rclone-drive.service

Checking journalctl -xeu rclone-drive.service I found a permission error

I think (just IMHO) the problem with ALL of the 3 "guides" I have seen is that nobody covers permissions (i.e. whether you need root or user to create files or folders). You just have to "work it out yourself" which isnt that helpful.

Anyway, thanks for the help. I'm running now

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