Fabio
June 10, 2023, 8:29am
1
What is the problem you are having with rclone?
I have configured 2 cloud services on my Raspberry (Raspbian Bullseye). GDrive and Dropbox. None of the 2 got mounted
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
- os/version: raspbian 11.7
- os/kernel: 6.1.21-v7+ (armv7l)
- os/type: linux
- os/arch: arm (ARMv7 compatible)
- go/version: go1.20.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Google Drive and Dropbox
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone mount remote: /home/boss/remote -vvv
2023/06/10 10:21:08 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "mount" "remote:" "/home/boss/remote" "-vvv"]
2023/06/10 10:21:08 DEBUG : Creating backend with remote "remote:"
2023/06/10 10:21:08 DEBUG : Using config file from "/home/boss/.config/rclone/rclone.conf"
2023/06/10 10:21:09 DEBUG : Dropbox root '': Mounting on "/home/boss/remote"
2023/06/10 10:21:09 DEBUG : : Root:
2023/06/10 10:21:09 DEBUG : : >Root: node=/, err=<nil>
..then it hangs forever.
The rclone config contents with secrets removed.
[GDrive]
type = drive
client_id = 2......
client_secret = ............
scope = drive.file
root_folder_id = 1DkKhRmbLj94TsqbQEk898lfKUDTGj5Hn
token = {"access_token":"ya29.a0AWY7Cknvbmg6Pk1DYPSZWcXrxYHndPwXtKucxU4wL26pNjiTQf96lsL2wjrFB_slrxSgFScdq4MqDC3jn3uuIEaHGG0unF4tV2JqqnBGsXrz4ly9t0EwhC7-9l8-Tb2L2vdQ2OWvNXS01SaKJUnqq5Nkjxk7Rq6DaCgYKARYSARASFQG1tDrpnPLx9rHPJ0KDU0ormdnmCw0167","token_type":"Bearer","refresh_token":"1//09Kl-fwddMTCTCgYIARAAGAkSNwF-L9Ir84zmiLHa2xQArsMvE1EJOZjbcHQ3iywVjt3TYmuWGEY4M9ElHME56FBZV4mmp1YXPok","expiry":"2023-06-10T11:16:55.074300877+02:00"}
[remote]
type = dropbox
token = {"access_token":"sl.BgD0-f5msUpAakOVuckg-CvQ8_utaJvWBPngwotxCpruXPwFbF8p4p4IyvhQa2lck07zI69_xwe9rnu5hhW4i4eKEJE81bL8kHfwW3iG3pveAdqar2vunXZM3JxcSbpf7tPXvbOu","token_type":"bearer","refresh_token":"JuqX48FaKlwAAAAAAAAAAYGlwwnH8owVpzyGAcHanblYbffXHQwvQCZq9a8Xb4LF","expiry":"2023-06-10T14:06:29.662048678+02:00"}
Start with posting output of:
rclone lsd GDrive: -vv
and
rclone lsd remote: -vv
Fabio
June 10, 2023, 8:33am
3
rclone lsd remote: -vv
2023/06/10 10:32:44 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "lsd" "remote:" "-vv"]
2023/06/10 10:32:44 DEBUG : Creating backend with remote "remote:"
2023/06/10 10:32:44 DEBUG : Using config file from "/home/boss/.config/rclone/rclone.conf"
-1 2023-06-10 10:32:45 -1 .moneydancesync
-1 2023-06-10 10:32:45 -1 Apps
-1 2023-06-10 10:32:45 -1 MoneyDance Backup
-1 2023-06-10 10:32:45 -1 Paper Docs
-1 2023-06-10 10:32:45 -1 SaltyRED
2023/06/10 10:32:45 DEBUG : 6 go routines active
2023/06/10 10:32:45 INFO : Dropbox root '': Committing uploads - please wait...
rclone lsd GDrive: -vv
2023/06/10 10:33:09 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "lsd" "GDrive:" "-vv"]
2023/06/10 10:33:09 DEBUG : Creating backend with remote "GDrive:"
2023/06/10 10:33:09 DEBUG : Using config file from "/home/boss/.config/rclone/rclone.conf"
2023/06/10 10:33:09 DEBUG : 4 go routines active
Cool. So we know that remotes work.
Now let's check fuse
ls -l `which fusermount`
ls -l `which fusermount3`
Fabio
June 10, 2023, 8:39am
5
lrwxrwxrwx 1 root root 11 Jun 20 2021 /bin/fusermount -> fusermount3
-rwsr-xr-x 1 root root 26204 Jun 20 2021 /bin/fusermount3
Let's see if module is loaded into kernel:
modprobe fuse
ok so now run again:
rclone mount remote: /home/boss/remote -vvv
and in other terminal window
ls -l /home/boss/remote
Fabio
June 10, 2023, 8:49am
9
rclone mount remote: /home/boss/remote -vvv
2023/06/10 10:48:26 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "mount" "remote:" "/home/boss/remote" "-vvv"]
2023/06/10 10:48:26 DEBUG : Creating backend with remote "remote:"
2023/06/10 10:48:26 DEBUG : Using config file from "/home/boss/.config/rclone/rclone.conf"
2023/06/10 10:48:26 DEBUG : Dropbox root '': Mounting on "/home/boss/remote"
2023/06/10 10:48:26 DEBUG : : Root:
2023/06/10 10:48:26 DEBUG : : >Root: node=/, err=<nil>
2023/06/10 10:48:28 DEBUG : /: Attr:
2023/06/10 10:48:28 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/06/10 10:48:28 DEBUG : /: ReadDirAll:
2023/06/10 10:48:29 DEBUG : /: >ReadDirAll: item=8, err=<nil>
2023/06/10 10:48:29 DEBUG : /: Lookup: name="Apps"
2023/06/10 10:48:29 DEBUG : /: >Lookup: node=Apps/, err=<nil>
2023/06/10 10:48:29 DEBUG : Apps/: Attr:
2023/06/10 10:48:29 DEBUG : Apps/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/06/10 10:48:29 DEBUG : /: Lookup: name="MoneyDance Backup"
2023/06/10 10:48:29 DEBUG : /: >Lookup: node=MoneyDance Backup/, err=<nil>
2023/06/10 10:48:29 DEBUG : MoneyDance Backup/: Attr:
2023/06/10 10:48:29 DEBUG : MoneyDance Backup/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/06/10 10:48:29 DEBUG : /: Lookup: name="Paper Docs"
2023/06/10 10:48:29 DEBUG : /: >Lookup: node=Paper Docs/, err=<nil>
2023/06/10 10:48:29 DEBUG : Paper Docs/: Attr:
2023/06/10 10:48:29 DEBUG : Paper Docs/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/06/10 10:48:29 DEBUG : /: Lookup: name="SaltyRED"
2023/06/10 10:48:29 DEBUG : /: >Lookup: node=SaltyRED/, err=<nil>
2023/06/10 10:48:29 DEBUG : SaltyRED/: Attr:
2023/06/10 10:48:29 DEBUG : SaltyRED/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/06/10 10:48:29 DEBUG : /: Lookup: name="fabiopass.kdbx"
2023/06/10 10:48:29 DEBUG : /: >Lookup: node=fabiopass.kdbx, err=<nil>
2023/06/10 10:48:29 DEBUG : fabiopass.kdbx: Attr:
2023/06/10 10:48:29 DEBUG : fabiopass.kdbx: >Attr: a=valid=1s ino=0 size=18046 mode=-rw-r--r--, err=<nil>
In the other terminal:
ls -l /home/boss/remote
total 18
drwxr-xr-x 1 boss boss 0 Jun 10 10:48 Apps
-rw-r--r-- 1 boss boss 18046 Jun 7 12:55 fabiopass.kdbx
drwxr-xr-x 1 boss boss 0 Jun 10 10:48 'MoneyDance Backup'
drwxr-xr-x 1 boss boss 0 Jun 10 10:48 'Paper Docs'
drwxr-xr-x 1 boss boss 0 Jun 10 10:48 SaltyRED
It got mounted
so all works as expected:)
if you do not want to block terminal window for mount to run use systemd:
Here very good example for dropbox mount:
In addition to have trouble free use create dropbox app id.
and then create your dropbox
remote from scratch.
Fabio
June 10, 2023, 8:53am
13
can I mount it with the --daemon
option?
Fabio:
What the problem was?
Problem was between your chair and keyboard.
All worked from the start
Yes there are many ways how to skin the cat.
Enjoy your rclone usage:)
Fabio
June 10, 2023, 8:55am
16
Ah Ah!
Not really... believe me. It was getting stuck.
Thank you!
Fabio:
The rclone config contents with secrets removed.
[GDrive]
type = drive
client_id = 2......
client_secret = ............
scope = drive.file
root_folder_id = 1DkKhRmbLj94TsqbQEk898lfKUDTGj5Hn
token = {"access_token":"ya29.a0AWY7Cknvbmg6Pk1DYPSZWcXrxYHndPwXtKucxU4wL26pNjiTQf96lsL2wjrFB_slrxSgFScdq4MqDC3jn3uuIEaHGG0unF4tV2JqqnBGsXrz4ly9t0EwhC7-9l8-Tb2L2vdQ2OWvNXS01SaKJUnqq5Nkjxk7Rq6DaCgYKARYSARASFQG1tDrpnPLx9rHPJ0KDU0ormdnmCw0167","token_type":"Bearer","refresh_token":"1//09Kl-fwddMTCTCgYIARAAGAkSNwF-L9Ir84zmiLHa2xQArsMvE1EJOZjbcHQ3iywVjt3TYmuWGEY4M9ElHME56FBZV4mmp1YXPok","expiry":"2023-06-10T11:16:55.074300877+02:00"}
[remote]
type = dropbox
token = {"access_token":"sl.BgD0-f5msUpAakOVuckg-CvQ8_utaJvWBPngwotxCpruXPwFbF8p4p4IyvhQa2lck07zI69_xwe9rnu5hhW4i4eKEJE81bL8kHfwW3iG3pveAdqar2vunXZM3JxcSbpf7tPXvbOu","token_type":"bearer","refresh_token":"JuqX48FaKlwAAAAAAAAAAYGlwwnH8owVpzyGAcHanblYbffXHQwvQCZq9a8Xb4LF","expiry":"2023-06-10T14:06:29.662048678+02:00"}
One more advice - delete your remotes and create them again. Change also passwords on your both cloud accounts.
You have posted all details including secrets. It means that I can just copy it and connect to your gdrive or dropbox.
This is why we ask to remove all secrets when posting here.
Fabio
June 10, 2023, 9:39am
18
I removed client id and client secret!
This is the least important....
Fabio
June 10, 2023, 9:41am
20
What is important? Tokens?