What is the problem you are having with rclone?
I am new to Linux. On Christmas I got myself a Raspberry Pi 5 and have been learning about RaspiOS / Debian Bookworm, Docker and finally about rclone since.
I have successfully managed to start a rclone container via Docker compose, mounting my Dropbox into the container and accessing it from the host.
Problem is: after stopping the container the host directory becomes unavailable, because the unmount fails.
ERROR : /data: Failed to unmount: exit status 1: fusermount3: failed to unmount /data: Resource busy
Manually typing „fusermount -u /data“ inside the container to end the mount before stopping the container does not work.
So then my host filesystem takes damage (see below), and all I could come up with so far was rebooting. Which leads to quite some work getting stuff up und running again.
jan_reinhardt@raspi5:~ $ ls -l
ls: cannot access 'Downloads': Permission denied
total 512
dr-xr-xr-x 2 jan_reinhardt jan_reinhardt 4096 Jan 21 21:58 Documents
d????????? ? ? ? ? ? Downloads
drwxr-xr-x 2 jan_reinhardt jan_reinhardt 4096 Dec 30 14:48 Music
drwxr-xr-x 2 jan_reinhardt jan_reinhardt 4096 Dec 30 14:48 Pictures
and
jan_reinhardt@raspi5:~ $ cd Downloads
-bash: cd: Downloads: Permission denied
Please, how do I unmount rclone or stop the Docker container the right way?
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
- os/version: alpine 3.19.0 (64 bit)
- os/kernel: 6.1.0-rpi7-rpi-2712 (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.6
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Dropbox
The command you were trying to run (eg rclone copy /tmp remote:tmp)
mount mydropbox:Scans /data --allow-non-empty --log-file=/logs/rclone-DEBUG-log.txt --log-level DEBUG
See below for the logfile when stopping the Docker container.
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[mydropbox]
type = dropbox
token = XXX
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv flag
2024/01/28 08:03:43 INFO : Signal received: terminated
2024/01/28 08:03:43 INFO : Dropbox root 'Scans': Committing uploads - please wait...
2024/01/28 08:03:43 ERROR : /data: Failed to unmount: exit status 1: fusermount3: failed to unmount /data: Resource busy
2024/01/28 08:03:43 INFO : Exiting...