What is the problem you are having with rclone?
I have a set of 4 Google Drive mounts all mounted through a RClone Union. The mounts work perfectly by themselves, but when mounted through the union it seems after some period of time (I can't seem to figure out how long) the VFS just goes empty. I used a lot of the base from Animosity022, just modified it to be able to use ENV variables.
What is your rclone version (output from rclone version
)
rclone v1.52.2
- os/arch: linux/amd64
- go version: go1.14.4
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 20.04 via Proxmox on an Intel Xeon
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
)
I load the mounts via a systemd service file (well actually 4, one for each union). Below is an example of one of them.
[Unit]
Description=RClone Union A
Wants=network-online.target
After=network-online.target
[Service]
Environment=RCLONE_CONFIG=/root/rclone/rclone.conf
Environment=RCLONE_LOG_DIR=/root/rclone/logs
Environment=GDRIVE_NAME=uniona
Environment=RC_PORT=5579
Environment=RC_USER=admin
Environment=RC_PASS=pass
Type=notify
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount ${GDRIVE_NAME}: /mnt/merged/${GDRIVE_NAME} \
--config=${RCLONE_CONFIG} \
--allow-other \
--dir-cache-time 1000h \
--attr-timeout 1000h \
--poll-interval 1m \
--umask 002 \
--user-agent blahblahblah \
--rc \
--rc-addr :${RC_PORT} \
--rc-web-gui \
--rc-enable-metrics \
--rc-user=${RC_USER} \
--rc-pass=${RC_PASS} \
--rc-web-gui-no-open-browser \
--rc-web-gui-force-update \
--vfs-read-chunk-size 32M
ExecStop=/bin/fusermount -uz /mnt/rclone-${GDRIVE_NAME}
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true \
--rc-user=${RC_USER} \
--rc-pass=${RC_PASS} \
--rc-addr 127.0.0.1:${RC_PORT} _async=true
Restart=on-failure
[Install]
# This unit should start when app.service is starting
#WantedBy=rclone-union-mounts.service
WantedBy=multi-user.target
The rclone config contents with secrets removed.
[gda]
type = drive
client_id =
client_secret =
scope = drive
team_drive =
token =
[gdb]
type = drive
client_id =
client_secret =
scope = drive
team_drive =
token =
[gdc]
type = drive
client_id =
client_secret =
scope = drive
team_drive =
token =
[gdd]
type = drive
client_id =
client_secret =
scope = drive
team_drive =
token =
[gde]
type = drive
client_id =
client_secret =
scope = drive
team_drive =
token =
[uniona]
type = union
upstreams = gda:foldera:ro gdb:foldera:ro gdc:foldera:ro
[unionb]
type = union
upstreams = gdd:folderb:ro gdd:folderb:ro gda:folderb:ro gdb:folderb:ro gdc:folderb:ro
[unionc]
type = union
upstreams = gda:folderc:ro gdb:folderc:ro gdc:folderc:ro
[uniond]
type = union
upstreams = gdd:folderd:ro gda:folderd:ro gdb:folderd:ro gdc:folderd:ro
A log from the command with the -vv
flag
Not sure how to get a log from the mount. Should I dump it from journalctl or run it in a separate window? Also not sure what time period to post as I can seem to figure out when or why the VFS expires.
Thanks