What is the problem you are having with rclone?
I am no longer able to start clone service, it stopped working and it won't properly unmount the drive.
I also cannot run the command without --allow-non-empty
Run the command 'rclone version' and share the full output of the command.
root@Sheldon:~# rclone version
rclone v1.60.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-52-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
systemctl restart rclone.service
The rclone config contents with secrets removed.
root@Sheldon:~# cat .config/rclone/rclone.conf
[gdrive]
type = drive
client_id = 780644407811-33j8falnmd1dg7aeuabcm3a1hct192oh.apps.googleusercontent.com
client_secret = xxxxxxxxxx
scope = drive
root_folder_id = 1MFK0o6yo8FBVi-H4ivjnrogN8Zhg-EL9
token = xxxxxxx
team_drive =
A log from the command with the -vv
flag
root@Sheldon:~# /usr/bin/rclone mount gdrive: /mnt/remote --dir-cache-time 5000h --poll-interval 10s --umask 002 --user-agent someappname101 --cache-dir=/tmp/cache --drive-pacer-min-sleep 10ms --drive-pacer-burst 200 --vfs-cache-mode full --vfs-cache-max-size 50G --vfs-cache-max-age 5000h --vfs-cache-poll-interval 5m --vfs-read-ahead 2G --bwlimit-file 32M -vv
2022/11/11 09:26:51 DEBUG : rclone: Version "v1.60.0" starting with parameters ["/usr/bin/rclone" "mount" "gdrive:" "/mnt/remote" "--dir-cache-time" "5000h" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/tmp/cache" "--drive-pacer-min-sleep" "10ms" "--drive-pacer-burst" "200" "--vfs-cache-mode" "full" "--vfs-cache-max-size" "50G" "--vfs-cache-max-age" "5000h" "--vfs-cache-poll-interval" "5m" "--vfs-read-ahead" "2G" "--bwlimit-file" "32M" "-vv"]
2022/11/11 09:26:51 DEBUG : Creating backend with remote "gdrive:"
2022/11/11 09:26:51 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/11/11 09:26:51 DEBUG : gdrive: detected overridden config - adding "{cHldw}" suffix to name
2022/11/11 09:26:51 DEBUG : fs cache: renaming cache item "gdrive:" to be canonical "gdrive{cHldw}:"
2022/11/11 09:26:51 Fatal error: directory already mounted, use --allow-non-empty to mount anyway: /mnt/remote
the second error
root@Sheldon:~# /usr/bin/rclone mount gdrive: /mnt/remote --dir-cache-time 5000h --poll-interval 10s --umask 002 --user-agent someappname101 --cache-dir=/tmp/cache --drive-pacer-min-sleep 10ms --drive-pacer-burst 200 --vfs-cache-mode full --vfs-cache-max-size 50G --vfs-cache-max-age 5000h --vfs-cache-poll-interval 5m --vfs-read-ahead 2G --allow-non-empty --bwlimit-file 32M -vv
2022/11/11 09:27:45 DEBUG : rclone: Version "v1.60.0" starting with parameters ["/usr/bin/rclone" "mount" "gdrive:" "/mnt/remote" "--dir-cache-time" "5000h" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/tmp/cache" "--drive-pacer-min-sleep" "10ms" "--drive-pacer-burst" "200" "--vfs-cache-mode" "full" "--vfs-cache-max-size" "50G" "--vfs-cache-max-age" "5000h" "--vfs-cache-poll-interval" "5m" "--vfs-read-ahead" "2G" "--allow-non-empty" "--bwlimit-file" "32M" "-vv"]
2022/11/11 09:27:45 DEBUG : Creating backend with remote "gdrive:"
2022/11/11 09:27:45 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/11/11 09:27:45 DEBUG : gdrive: detected overridden config - adding "{cHldw}" suffix to name
2022/11/11 09:27:45 DEBUG : fs cache: renaming cache item "gdrive:" to be canonical "gdrive{cHldw}:"
2022/11/11 09:27:46 DEBUG : vfs cache: root is "/tmp/cache"
2022/11/11 09:27:46 DEBUG : vfs cache: data root is "/tmp/cache/vfs/gdrive{cHldw}"
2022/11/11 09:27:46 DEBUG : vfs cache: metadata root is "/tmp/cache/vfsMeta/gdrive{cHldw}"
2022/11/11 09:27:46 DEBUG : Creating backend with remote "/tmp/cache/vfs/gdrive{cHldw}/"
2022/11/11 09:27:46 DEBUG : Creating backend with remote "/tmp/cache/vfsMeta/gdrive{cHldw}/"
2022/11/11 09:27:46 DEBUG : Google drive root '': Mounting on "/mnt/remote"
2022/11/11 09:27:46 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/11/11 09:27:46 mount helper error: fusermount: failed to access mountpoint /mnt/remote: Transport endpoint is not connected
2022/11/11 09:27:46 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
fusermount command
root@Sheldon:~# fusermount -uz /mnt/remoteroot@Sheldon:~# ls /mnt/remote ls: cannot access '/mnt/remote': Transport endpoint is not connected
rclone service file: [Unit]Description=RClone ServiceWants=network-online.targetAfter=network-o - Pastebin.com
root@Sheldon:~# cat -vet /etc/systemd/system/rclone.service
[Unit]$
Description=RClone Service$
Wants=network-online.target$
After=network-online.target$
$
[Service]$
Type=notify$
Environment=RCLONE_CONFIG=/root/.config/rclone/rclone.conf$
KillMode=none$
RestartSec=1$
ExecStart=/usr/bin/rclone mount gdrive: /mnt/remote \$
--dir-cache-time 5000h \$
--log-level INFO \$
--allow-non-empty \$
--poll-interval 10s \$
--umask 002 \$
--user-agent someappname101 \$
--cache-dir=/tmp/cache \$
--drive-pacer-min-sleep 10ms \$
--drive-pacer-burst 200 \$
--vfs-cache-mode full \$
--vfs-cache-max-size 50G \$
--vfs-cache-max-age 5000h \$
--vfs-cache-poll-interval 5m \$
--vfs-read-ahead 2G \$
--bwlimit-file 32M$
StandardOutput=file:/root/scripts/rclone_mount.log$
ExecStop=/bin/fusermount -uz /mnt/remote$
ExecStartPost=/usr/bin/rclone vfs/refresh recursive=true _async=true$
Restart=always$
User=root$
Group=root$
$
[Install]$
WantedBy=multi-user.target$
rclone service mount log:
root@Sheldon:~# cat scripts/rclone_mount.log <6>INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
mount helper error: fusermount: failed to access mountpoint /mnt/remote: Transport endpoint is not connectedFatal error: failed to mount FUSE fs: fusermount: exit status 1