Unable to mount remotes

What is the problem you are having with rclone?

Unable to mount remotes. Below is a data when trying to mount google drive.

What is your rclone version (output from rclone version)

rclone v1.56.0

  • os/version: debian 10.10 (64 bit)
  • os/kernel: 4.19.0-17-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.5
  • go/linking: static
  • go/tags: none

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

Google Drive

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

rclone mount google2: /media/data2

The rclone config contents with secrets removed.

[google2]
type = drive
scope = drive
token = {"access_token":"xxxxxxx"}

A log from the command with the -vv flag

2021/09/10 09:04:32 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "mount" "google2:" "/media/data2" "-vv"]
2021/09/10 09:04:32 DEBUG : Creating backend with remote "google2:"
2021/09/10 09:04:32 DEBUG : Using config file from "/home/xxxxx/.config/rclone/rclone.conf"
2021/09/10 09:04:32 DEBUG : google2: Loaded invalid token from config file - ignoring
2021/09/10 09:04:32 DEBUG : Saving config "token" in section "google2" of the config file
2021/09/10 09:04:32 DEBUG : Keeping previous permissions for config file: -rwx------
2021/09/10 09:04:32 DEBUG : google2: Saved new token in config file
2021/09/10 09:04:32 DEBUG : Google drive root '': 'root_folder_id = xxxxxxxxxx' - save this in the config to speed up startup
2021/09/10 09:04:32 DEBUG : Google drive root '': Mounting on "/media/data2"
2021/09/10 09:04:32 DEBUG : : Root: 
2021/09/10 09:04:32 DEBUG : : >Root: node=/, err=<nil>
2021/09/10 09:04:32 DEBUG : /: Lookup: name=".Trash"
2021/09/10 09:04:33 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Lookup: name="BDMV"
2021/09/10 09:04:33 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/09/10 09:04:33 DEBUG : /: Lookup: name=".xdg-volume-info"
2021/09/10 09:04:33 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/09/10 09:04:33 DEBUG : /: Lookup: name="autorun.inf"
2021/09/10 09:04:33 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/09/10 09:04:33 DEBUG : /: Lookup: name=".Trash-1000"
2021/09/10 09:04:33 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Attr: 
2021/09/10 09:04:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/09/10 09:04:33 DEBUG : /: ReadDirAll: 
2021/09/10 09:04:33 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/09/10 09:04:33 DEBUG : /: Lookup: name="autorun.inf"
2021/09/10 09:04:33 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory

That log shows it is mounted.

What problem are you having with the mount?

Yes, it was mounted. I just thought that there is a problem, because the rclone mount command didn't exit when i execute it.

Right.

It doesn't fork out as you ran it from the command line and it'll continue to run.

Most folks use a systemd service to run a mount.

You could also use --daemon but that's broken right now in 1.56 and you'd have to use the beta if you wanted to use that.

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