Error when multiple instances of rclone running all with the --rc flag

What is the problem you are having with rclone?

The drive mounts fine without the --rc and --rc-addr options added. But once I add them to my service line, the command is run with the feed back the rc interface is listening but the mounted dir is empty.

What is your rclone version (output from rclone version)

1.56.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 20.04

Which cloud storage system are you using? (eg Google Drive)

Gdrives

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount drive: /home/user/mount --allow-other --rc --rc-no-auth

The rclone config contents with secrets removed.

Shouldn't be needed.

Error output:

Failed to start remote control: start server failed: listen tcp 127.0.0.1:5572: bind: address already in use

hi,

by default, rclone mount --rc uses port 5572 as documented at https://rclone.org/rc/#rc-addr-ip

for each additional instance of rclone mount that uses --rc, you need to use a unique port that is not in use.

for example, to use port 6001
rclone mount drive: /home/user/mount --allow-other --rc --rc-no-auth --rc-addr=:6001

Oh wow I have like 30 drives I would like to mount in that case, is there a better way to do this?

perhaps use rclone rcd
and create the mounts using
https://rclone.org/rc/#mount-mount

I was experimenting with the rcd flag.

It said I needed a

path to files to serve

In which I have no idea what that means. It doesn't look like I can just run rclone in the background and mount multiple drives with the same remote control point.

to mount using rcd, need to use https://rclone.org/rc/#mount-mount

or you can run multiple rclone mount commands like so
rclone mount remote01: /home/user/mount/remote01 --allow-other --rc --rc-no-auth --rc-addr=:6001
rclone mount remote02: /home/user/mount/remote02 --allow-other --rc --rc-no-auth --rc-addr=:6002

Yes, as tedious as that idea might sound I found it to be the only solution.

Using rcd won't work cuz it doesn't let me do what I want specifically enough. Like mounting a drive with determined cache location and size, at least not I am aware of.

Is it possible for you to find me the documentation for the options available when you use the rclone rc mount/mount command?
Sorry for the bother since I couldn't find it myself after a lot of googling.

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