STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
What is the problem you are having with rclone?
I have a different behaviour when I use rclonefs to mount with or without the --rc option. When rc mode is activated, the mounting process failed. rclonefs and rclone is the same. I reduced the problem to this but ultimately I goes in automount and fuse.
ll /usr/bin/rclonefs
lrwxrwxrwx 1 root root 21 Mar 9 11:32 /usr/bin/rclonefs -> /usr/local/bin/rclone*
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.15.0-79-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
My ultimate goal is to use any storage. I have tried with S3 but the reproducible example is using a local mount.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
First I create a user config file to mount the local /tmp to mount point /mnt/toto
# The mount works as expected
rclone --config=myrclone.conf config create mytmp local
$ sudo -E rclonefs mytmp:/tmp /mnt/toto -o rw,config=myrclone.conf,vfs-cache-mode=off,uid=1000,gid=1000,dev,suid
ll /mnt/toto/
total 679
drwxr-xr-x 1 docker host_user_group 0 Sep 5 15:43 ./
drwxr-xr-x 1 root root 4096 Sep 5 11:21 ../
drwxr-xr-x 1 docker host_user_group 0 Sep 1 09:03 .X11-unix/
drwxr-xr-x 1 docker host_user_group 0 Oct 31 2022 RtmpIP04VL/
.....
$ ps -eaf
UID PID PPID C STIME TTY TIME CMD
docker 1 0 0 10:33 pts/0 00:00:01 bash
docker 1230 0 0 15:37 pts/1 00:00:00 bash
root 1378 1 0 15:43 pts/0 00:00:00 /usr/local/rclone/rclone mount mytmp:/tmp /mnt/toto --config=myrclone.conf --vfs-cache-mode=off --uid=1000 --gid=1000 --daemon
Then I try to do the same with the --rc option ( I have killed the previous mounting process) it fails
$ sudo -E rclonefs mytmp:/tmp /mnt/toto -o rw,rc,rc-no-auth,config=myrclone.conf,vfs-cache-mode=off,uid=1000,gid=1000,dev,suid
2023/09/05 15:51:34 NOTICE: Serving remote control on http://127.0.0.1:5572/
2023/09/05 15:52:34 Fatal error: mount not ready
# Waiting for the error I had this processus listing
2023/09/05 15:51:34 NOTICE: Serving remote control on http://127.0.0.1:5572/
2023/09/05 15:52:34 Fatal error: mount not ready
$ ps -eaf
UID PID PPID C STIME TTY TIME CMD
docker 1 0 0 10:33 pts/0 00:00:01 bash
docker 1230 0 0 15:37 pts/1 00:00:00 bash
root 1614 1 0 15:49 pts/0 00:00:00 sudo -E rclonefs mytmp:/tmp /mnt/toto -o rw,rc,rc-no-auth,config=myrclone.conf,vfs-cache-mode=off,uid=1000,gid=1000,dev,suid
root 1615 1614 18 15:49 pts/0 00:00:03 rclonefs mytmp:/tmp /mnt/toto -o rw,rc,rc-no-auth,config=myrclone.conf,vfs-cache-mode=off,uid=1000,gid=1000,dev,suid
root 1628 1615 0 15:49 pts/0 00:00:00 [rclone] <defunct>
docker 1647 1230 0 15:50 pts/1 00:00:00 ps -eaf
The rclone config contents with secrets removed.
[mytmp]
type = local
A log from the command that you were trying to run with the -vv
flag
$ sudo -E rclonefs -vv mytmp:/tmp /mnt/toto -o rw,rc,rc-no-auth,config=myrclone.conf,vfs-cache-mode=off,uid=1000,gid=1000,dev,suid
2023/09/05 16:11:39 DEBUG : Setting --allow-other "true" from environment variable RCLONE_ALLOW_OTHER="true"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --allow-other "true" from environment variable RCLONE_ALLOW_OTHER="true"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --allow-other "true" from environment variable RCLONE_ALLOW_OTHER="true"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --dir-cache-time "5m0s" from environment variable RCLONE_DIR_CACHE_TIME="300s"
2023/09/05 16:11:39 DEBUG : Setting --vfs-cache-mode "full" from environment variable RCLONE_VFS_CACHE_MODE="full"
2023/09/05 16:11:39 DEBUG : Setting --config "/home/docker/.config/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/home/docker/.config/rclone/rclone.conf"
2023/09/05 16:11:39 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclonefs" "mount" "mytmp:/tmp" "/mnt/toto" "--rc" "--rc-no-auth" "--config=myrclone.conf" "--vfs-cache-mode=off" "--uid=1000" "--gid=1000" "--verbose=2" "--daemon"]
2023/09/05 16:11:39 NOTICE: Serving remote control on http://127.0.0.1:5572/
2023/09/05 16:11:39 DEBUG : Creating backend with remote "mytmp:/tmp"
2023/09/05 16:11:39 DEBUG : Using config file from "/home/mlamarin/workspace/pipelines/us/projects_data_syncer/myrclone.conf"
2023/09/05 16:12:39 DEBUG : Daemon timed out. Terminating daemon pid 1755
2023/09/05 16:12:39 Fatal error: mount not ready