tottobuono
(Salvatore)
November 23, 2023, 8:28am
1
STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
What is the problem you are having with rclone?
when I run the command rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &, I get the following error: Fatal error: failed to mount FUSE fs: cannot get mounts: open /proc/self/mountinfo: permission denied
Run the command 'rclone version' and share the full output of the command.
rclone v1.64.2
os/version: ubuntu 22.04 (64 bit)
os/kernel: 6.2.0-37-generic (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.21.3
go/linking: static
go/tags: snap
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[OneDrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business
A log from the command that you were trying to run with the -vv
flag
2023/11/23 09:16:22 Fatal error: failed to mount FUSE fs: cannot get mounts: open /proc/self/mountinfo: permission denied
tottobuono
(Salvatore)
November 23, 2023, 8:38am
2
running with sudo, I get this error: [1] 24822
Post full debug output:
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive -vv
tottobuono
(Salvatore)
November 23, 2023, 9:14am
4
2023/11/23 10:13:41 DEBUG : rclone: Version "v1.64.2" starting with parameters ["/snap/rclone/483/bin/rclone" "--vfs-cache-mode" "writes" "mount" "OneDrive:" "/home/salvatore/OneDrive" "-vv"]
2023/11/23 10:13:41 DEBUG : Creating backend with remote "OneDrive:"
2023/11/23 10:13:41 DEBUG : Using config file from "/home/salvatore/snap/rclone/483/.config/rclone/rclone.conf"
2023/11/23 10:13:41 DEBUG : OneDrive root '': Next delta token is: NDslMjM0OyUyMzE7MzsyYTgxOGQ3Ni03OGU3LTQwMmItODA0MS1jNDYzYjU3M2VjNTQ7NjM4MzYzMjc2MjE0NzMwMDAwOzQ1ODk1MjQwOTslMjM7JTIzOyUyMzA7JTIz
2023/11/23 10:13:41 DEBUG : vfs cache: root is "/home/salvatore/snap/rclone/483/.cache/rclone"
2023/11/23 10:13:41 DEBUG : vfs cache: data root is "/home/salvatore/snap/rclone/483/.cache/rclone/vfs/OneDrive"
2023/11/23 10:13:41 DEBUG : vfs cache: metadata root is "/home/salvatore/snap/rclone/483/.cache/rclone/vfsMeta/OneDrive"
2023/11/23 10:13:41 DEBUG : Creating backend with remote "/home/salvatore/snap/rclone/483/.cache/rclone/vfs/OneDrive/"
2023/11/23 10:13:41 DEBUG : fs cache: renaming cache item "/home/salvatore/snap/rclone/483/.cache/rclone/vfs/OneDrive/" to be canonical "/home/salvatore/snap/rclone/483/.cache/rclone/vfs/OneDrive"
2023/11/23 10:13:41 DEBUG : Creating backend with remote "/home/salvatore/snap/rclone/483/.cache/rclone/vfsMeta/OneDrive/"
2023/11/23 10:13:41 DEBUG : fs cache: renaming cache item "/home/salvatore/snap/rclone/483/.cache/rclone/vfsMeta/OneDrive/" to be canonical "/home/salvatore/snap/rclone/483/.cache/rclone/vfsMeta/OneDrive"
2023/11/23 10:13:41 Fatal error: failed to mount FUSE fs: cannot get mounts: open /proc/self/mountinfo: permission denied
Do not use snap installation if you need mount - as per docs :
Note: Due to the strict confinement of Snap, rclone mount
feature is not
supported.
If mounting is wanted, either install a precompiled binary or enable the relevant option when installing from source .
tottobuono
(Salvatore)
November 23, 2023, 10:00am
6
I've got now this error:
023/11/23 10:59:59 DEBUG : rclone: Version "v1.65.0-DEV" starting with parameters ["./rclone" "--vfs-cache-mode" "writes" "mount" "OneDrive:" "/home/salvatore/OneDrive" "-vv"]
2023/11/23 10:59:59 DEBUG : Creating backend with remote "OneDrive:"
2023/11/23 10:59:59 DEBUG : Using config file from "/home/salvatore/.config/rclone/rclone.conf"
2023/11/23 10:59:59 DEBUG : OneDrive root '': Next delta token is: NDslMjM0OyUyMzE7MzsyYTgxOGQ3Ni03OGU3LTQwMmItODA0MS1jNDYzYjU3M2VjNTQ7NjM4MzYzMzAzOTk0MTMwMDAwOzQ1ODk2MzIzNzslMjM7JTIzOyUyMzA7JTIz
2023/11/23 10:59:59 DEBUG : vfs cache: root is "/home/salvatore/.cache/rclone"
2023/11/23 10:59:59 DEBUG : vfs cache: data root is "/home/salvatore/.cache/rclone/vfs/OneDrive"
2023/11/23 10:59:59 DEBUG : vfs cache: metadata root is "/home/salvatore/.cache/rclone/vfsMeta/OneDrive"
2023/11/23 10:59:59 DEBUG : Creating backend with remote "/home/salvatore/.cache/rclone/vfs/OneDrive/"
2023/11/23 10:59:59 DEBUG : fs cache: renaming cache item "/home/salvatore/.cache/rclone/vfs/OneDrive/" to be canonical "/home/salvatore/.cache/rclone/vfs/OneDrive"
2023/11/23 10:59:59 DEBUG : Creating backend with remote "/home/salvatore/.cache/rclone/vfsMeta/OneDrive/"
2023/11/23 10:59:59 DEBUG : fs cache: renaming cache item "/home/salvatore/.cache/rclone/vfsMeta/OneDrive/" to be canonical "/home/salvatore/.cache/rclone/vfsMeta/OneDrive"
2023/11/23 10:59:59 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/11/23 10:59:59 Fatal error: failed to mount FUSE fs: directory already mounted, use --allow-non-empty to mount anyway: /home/salvatore/OneDrive
make sure that there is no other mount already running - you start things with &
so you might have things running in the background. Better to use systemd. But for now:
ps -ef | grep rclone
and kill running process.
tottobuono
(Salvatore)
November 23, 2023, 10:51am
8
ok now it works, how can I run rclone at boot? I want that it executes this type of command at startup:
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive & notify-send "OneDrive Connected" "Microsoft OneDrive successfully mounted."
On Linux the best way is to use systemd.
tottobuono
(Salvatore)
November 23, 2023, 10:54am
10
is there a guide on how it can be done?
plenty on internet. Google is your friend.
system
(system)
Closed
November 26, 2023, 11:12am
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.