What is the problem you are having with rclone?
I am unable to automatically mount Rclone at boot even after following the guide at this link under Rclone as unix mount helper.
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.5.0-1023-oracle (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.22.1
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Hetzner Storage Box
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
I didn't use a command but created a file at /etc/systemd/system/mnt-gringotts.mount, the contents of mnt-gringotts.mount is as follows:
[Unit]
Description=Mount for /mnt/gringotts
[Mount]
Type=rclone
What=gringotts:
Where=/mnt/gringotts
Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
Afterwards I ran
sudo systemctl daemon-reload
sudo systemctl enable mnt-gringotts.mount --now
and got the following error when running the last command above:
May 30 16:25:24 nimbus2000 sudo[2431]: ubuntu : TTY=pts/0 ; PWD=/mnt/gringotts ; USER=root ; COMMAND=/usr/bin/systemctl daemon-reload
May 30 16:25:24 nimbus2000 sudo[2431]: pam_unix(sudo:session): session opened for user root(uid=0) by ubuntu(uid=1001)
May 30 16:25:24 nimbus2000 systemd[1]: Reloading.
May 30 16:25:24 nimbus2000 sudo[2431]: pam_unix(sudo:session): session closed for user root
May 30 16:25:32 nimbus2000 sudo[2462]: ubuntu : TTY=pts/0 ; PWD=/mnt/gringotts ; USER=root ; COMMAND=/usr/bin/systemctl enable mnt-data.mount --now
May 30 16:25:32 nimbus2000 sudo[2462]: pam_unix(sudo:session): session opened for user root(uid=0) by ubuntu(uid=1001)
May 30 16:25:32 nimbus2000 sudo[2462]: pam_unix(sudo:session): session closed for user root
May 30 16:25:38 nimbus2000 sudo[2465]: ubuntu : TTY=pts/0 ; PWD=/mnt/gringotts ; USER=root ; COMMAND=/usr/bin/systemctl enable mnt-gringotts.mount --now
May 30 16:25:38 nimbus2000 sudo[2465]: pam_unix(sudo:session): session opened for user root(uid=0) by ubuntu(uid=1001)
May 30 16:25:38 nimbus2000 systemd[1]: Reloading.
May 30 16:25:38 nimbus2000 systemd[1]: Mounting Mount for /mnt/gringotts...
░░ Subject: A start job for unit mnt-gringotts.mount has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit mnt-gringotts.mount has begun execution.
░░
░░ The job identifier is 692.
May 30 16:25:38 nimbus2000 mount[2497]: mount: /mnt/gringotts: unknown filesystem type 'rclone'.
May 30 16:25:38 nimbus2000 systemd[1]: mnt-gringotts.mount: Mount process exited, code=exited, status=32/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An n/a= process belonging to unit mnt-gringotts.mount has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 32.
May 30 16:25:38 nimbus2000 systemd[1]: mnt-gringotts.mount: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit mnt-gringotts.mount has entered the 'failed' state with result 'exit-code'.
May 30 16:25:38 nimbus2000 systemd[1]: Failed to mount Mount for /mnt/gringotts.
░░ Subject: A start job for unit mnt-gringotts.mount has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit mnt-gringotts.mount has finished with a failure.
░░
░░ The job identifier is 692 and the job result is failed.
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
ubuntu@nimbus2000:~$ rclone config redacted
[gringotts]
type = sftp
host = XXX
user = XXX
port = 23
pass = XXX
A log from the command that you were trying to run with the -vv
flag
shown above