Rclone mounted folder is empty - Run from Podman

What is the problem you are having with rclone?

When I mount a folder with rclone using podman it seems to work, I do not get any error, but the mounted folder stays empty.

Run the command 'rclone version' and share the full output of the command.

Container:

rclone v1.63.1
- os/version: alpine 3.18.2 (64 bit)
- os/kernel: 6.4.9-1-default (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: none

OS:
OpenSuse Aeon

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

pCloud

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

podman run --rm --volume ~/.config/rclone:/config/rclone --volume ~/pCloud:/data:shared --user $(id -u):$(id -g) --volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined rclone/rclone mount --allow-non-empty -vv pCloudAlbi: /data

The rclone config contents with secrets removed.

[pCloudAlbi]
type = pcloud
hostname = eapi.pcloud.com
token = {"access_token":"***REDACTED***"}

A log from the command with the -vv flag

2023/08/13 21:28:38 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "mount" "--allow-non-empty" "-vv" "pCloudAlbi:" "/data"]
2023/08/13 21:28:38 DEBUG : Creating backend with remote "pCloudAlbi:"
2023/08/13 21:28:38 DEBUG : Using config file from "/config/rclone/rclone.conf"
2023/08/13 21:28:38 INFO  : pcloud root '': poll-interval is not supported by this remote
2023/08/13 21:28:38 NOTICE: pcloud root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2023/08/13 21:28:38 DEBUG : pcloud root '': Mounting on "/data"
2023/08/13 21:28:38 DEBUG : : Root: 
2023/08/13 21:28:38 DEBUG : : >Root: node=/, err=<nil>

I am very new to Linux so please be a bit patient with me :slight_smile:

Try to add

--allow-other      Allow access to other users (not supported on Windows)

flag to your mount command.

Thank you for the suggestion! Unfortunately nothing changes, the output is exactly the same as before a part from:

2023/08/14 09:28:04 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "mount" "--allow-non-empty" "--allow-other" "-vv" "pCloudAlbi:" "/data"]

which is obviously expected.

It seems strange to me that after printing those eight lines nothing happens... with no obvious error.

EDIT:

I got this error upon stopping rclone:

^C2023/08/14 09:38:43 INFO  : Signal received: interrupt
2023/08/14 09:38:43 ERROR : /data: Unmounted rclone mount
2023/08/14 09:38:43 INFO  : Exiting...
ERRO[0000] read /sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/user.slice/libpod-df425194ab7bea9639b9bc95c46cd9a8bd001e74926d9467d9a06f05132a5574.scope/cgroup.freeze: no such device 

I am not sure what that means though.

and what about trying the same command without podman? Does it work?

I am using an immutable distro and I need podman because installing things on the base system is discouraged.

I could maybe try to install rclone on the base OS and then rollback to a previous btfrs snapshot but I am not sure how relevant that would be.

I have googled around a bit and found a similar issue on the podman repository from 2020, maybe I should open an issue there?

It would be interesting to know if I am the first one experiencing this issue with rclone.

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