2 Mounts from different cloud providers at the same time

Hi there, been using the forums for a while and I always take the time to research any issues (not many, followed good instruction here) but I seem to have hit a snag.

I am currently moving from GSuite to Dropbox Business, I have configured and tested everything on windows and copied my rclone.conf file to my Ubuntu 20.04 box. whilst my GDrive connects fine the Dropbox fails to start. I found a similar issue here but i cant post the link "multiple-rclone-mounts-only-1-working-at-a-time/9288" and I have tried looking at the --rc-addr configuration. I also compared my config's compared to the OP in that post and they are very similar and for the life of me i cannot find what it is.

I am not overly experienced on Linux so dont really know where to pull any logs from. I generally dont tinker with it and just configure from guides and things work. I appreciate any help that you can give.

I have configured 2 systemd files

rclone.service

[Unit]
Description=Mount and cache Google drive
After=syslog.target local-fs.target network.target
[Service]
Environment=RCLONEHOME=/home/eddie/.config/rclone
Environment=MOUNTTO=/home/eddie/GDrive
Environment=LOGS=/home/eddie/logs
Environment=UPLOADS=/home/eddie/uploads
Type=simple
User=eddie
ExecStartPre=/bin/mkdir -p ${MOUNTTO}
ExecStartPre=/bin/mkdir -p ${LOGS}
ExecStartPre=/bin/mkdir -p ${UPLOADS}
ExecStart=/usr/bin/rclone mount
--rc-addr=localhost:5572
--log-file ${LOGS}/rclone.log
--log-level INFO
--umask 022
--allow-non-empty
--allow-other
--fuse-flag sync_read
--tpslimit 10
--tpslimit-burst 10
--dir-cache-time=160h
--buffer-size=64M
--attr-timeout=1s
--vfs-read-chunk-size=2M
--vfs-read-chunk-size-limit=2G
--vfs-cache-max-age=5m
--vfs-cache-mode=writes
--cache-dir ${UPLOADS}
--config ${RCLONEHOME}/rclone.conf
GDriveCrypt: ${MOUNTTO}
ExecStop=/bin/fusermount -u -z ${MOUNTTO}
ExecStop=/bin/rmdir ${MOUNTTO}
Restart=always
[Install]
WantedBy=multi-user.target

dbrclone.service

[Unit]
Description=Mount and cache Dropbox
After=syslog.target local-fs.target network.target
[Service]
Environment=RCLONEHOME=/home/eddie/.config/rclone
Environment=MOUNTTO=/home/eddie/Dropbox
Environment=LOGS=/home/eddie/dblogs
Environment=UPLOADS=/home/eddie/dbuploads
Type=simple
User=eddie
ExecStartPre=/bin/mkdir -p ${MOUNTTO}
ExecStartPre=/bin/mkdir -p ${LOGS}
ExecStartPre=/bin/mkdir -p ${UPLOADS}
ExecStart=/usr/bin/rclone mount
--rc-addr=localhost:5573
--log-file ${LOGS}/rclone.log
--log-level INFO
--umask 022
--allow-non-empty
--allow-other
--fuse-flag sync_read
--tpslimit 10
--tpslimit-burst 10
--dir-cache-time=160h
--buffer-size=64M
--attr-timeout=1s
--vfs-read-chunk-size=2M
--vfs-read-chunk-size-limit=2G
--vfs-cache-max-age=5m
--vfs-cache-mode=writes
--cache-dir ${UPLOADS}
--config ${RCLONEHOME}/rclone.conf
dbcrypt: ${MOUNTTO}
ExecStop=/bin/fusermount -u -z ${MOUNTTO}
ExecStop=/bin/rmdir ${MOUNTTO}
Restart=always
[Install]
WantedBy=multi-user.target

I assume you mean the mount didn't start?

Firstly does rclone lsf GDriveCrypt: work?

Your systemd file looks like it is missing continuation characters?

ExecStartPre=/bin/mkdir -p ${UPLOADS}
ExecStart=/usr/bin/rclone mount \
--rc-addr=localhost:5572 \
--log-file ${LOGS}/rclone.log \
--log-level INFO \
--umask 022 \
--allow-non-empty \
--allow-other \
--fuse-flag sync_read \
--tpslimit 10 \
--tpslimit-burst 10 \
--dir-cache-time=160h \
--buffer-size=64M \
--attr-timeout=1s \
--vfs-read-chunk-size=2M \
--vfs-read-chunk-size-limit=2G \
--vfs-cache-max-age=5m \
--vfs-cache-mode=writes \
--cache-dir ${UPLOADS} \
--config ${RCLONEHOME}/rclone.conf \
GDriveCrypt: ${MOUNTTO}
ExecStop=/bin/fusermount -u -z ${MOUNTTO}

Show the systemd log with

journalctl -f -u rclone.service

Hi Nick, thanks for taking the time to respond.

Yes, the mount failed, or at least one of them. the rclone.service is fine and i can see the files no problem and they list using your command.

Unsure about the continuation characters you are referring to, i have been using this config with GSuite with no issues for about a year now. its only now i have come to add the Dropbox service that it will not mount.

the systemd log for rclone.service does not show much, just that it is sucessfully mounted.

the systemd log for dbrclone.service shows a failure.

-- Logs begin at Fri 2020-10-09 14:11:49 BST. --
Nov 01 09:38:49 challenger systemd[1]: Starting Mount and cache Dropbox...
Nov 01 09:38:49 challenger systemd[1]: Started Mount and cache Dropbox.
Nov 01 09:38:49 challenger rclone[6448]: 2020/11/01 09:38:49 Failed to open log file: open /home/eddie/dblogs/rclone.log: permission denied
Nov 01 09:38:49 challenger systemd[1]: dbrclone.service: Main process exited, code=exited, status=1/FAILURE
Nov 01 09:38:49 challenger systemd[1]: dbrclone.service: Failed with result 'exit-code'.
Nov 01 09:38:49 challenger systemd[1]: dbrclone.service: Scheduled restart job, restart counter is at 5.
Nov 01 09:38:49 challenger systemd[1]: Stopped Mount and cache Dropbox.
Nov 01 09:38:49 challenger systemd[1]: dbrclone.service: Start request repeated too quickly.
Nov 01 09:38:49 challenger systemd[1]: dbrclone.service: Failed with result 'exit-code'.
Nov 01 09:38:49 challenger systemd[1]: Failed to start Mount and cache Dropbox.

I can see that there is a permission issue for the log file however the folders have the same permissions as the GSuite mount. my lack of experience may show that im missing something very simple on this one.

I do see that the rclone.log file is created in that location though

I figured it out. i had to run a chown on the log file and it is now running. however i cannot see anything inside the crypt

the crypt is mounted

Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 952K 3.2G 1% /run
/dev/md127 5.4T 3.5T 1.7T 68% /
tmpfs 16G 16K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md2 1008M 137M 821M 15% /boot
/dev/md126 3.9G 17M 3.7G 1% /tmp
tmpfs 3.2G 0 3.2G 0% /run/user/1000
dbcrypt: 5.0T 9.3G 5.0T 1% /home/eddie/Dropbox

using the list command throws errors.

2020/11/01 10:21:07 ERROR : : error listing: directory not found
2020/11/01 10:21:07 Failed to lsf with 2 errors: last error was: error in ListJSON: directory not found

Have now fixed it. in the GSuite setup to mount the crypt you have

mountname:/foldername

in dropbox it seems the / is not required

mountname:foldername

You'd need to share your rclone.conf (secrets and keys removed), the command you are running and a debug log of the command (-vv).

1 Like

sorted now.

thanks for taking the time to respond.

If you have a dropbox business account the leading / is used to access team folder: https://rclone.org/dropbox/#dropbox-for-business

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