Onedrive mount not working - ubuntu 20.04

What is the problem you are having with rclone?

Mounting the onedrive is working but shows empty directories in the filesystem.

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

rclone v1.50.2

  • os/arch: linux/amd64
  • go version: go1.13.6

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

Onedrive (standard)

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

rclone mount OneDrive: /home/doclesadmin/ODMedia/

The rclone config contents with secrets removed.

type = onedrive
token = {"access_token":"E--------->
drive_id = dbff4d2e819c9ed3
drive_type = personal

A log from the command with the -vv flag

rclone -vv mount OneDrive: /home/doclesadmin/ODMedia/
2022/01/06 17:49:25 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "-vv" "mount" "OneDrive:" "/home/doclesadmin/ODMedia/"]
2022/01/06 17:49:25 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/01/06 17:49:25 DEBUG : One drive root '': Mounting on "/home/doclesadmin/ODMedia/"
2022/01/06 17:49:25 INFO  : One drive root '': poll-interval is not supported by this remote
2022/01/06 17:49:25 DEBUG : Adding path "vfs/forget" to remote control registry
2022/01/06 17:49:25 DEBUG : Adding path "vfs/refresh" to remote control registry
2022/01/06 17:49:25 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2022/01/06 17:49:25 DEBUG : : Root: 
2022/01/06 17:49:25 DEBUG : : >Root: node=/, err=<nil>

I must add that when I perform the LSD command, I have right answer from OneDrive.

...
rclone lsd OneDrive:
-1 2021-12-12 09:36:28 0 .Trash-1000
-1 2021-12-07 23:06:57 3 Documents
-1 2021-03-25 16:43:46 0 Pictures
...

Thanks for helping

That version is old so you'd want to update it.

I don't see any ls command on the mount in the debug log. Did you run something on the mount?

Well, very strange, I just run the apt install rclone few minutes before.

I saw the setfupdate command and ran it, not working.
here is the command and the result

rclone selfupdate --stable
Error: unknown command "selfupdate" for "rclone"
Run 'rclone --help' for usage.
2022/01/06 18:06:08 Fatal error: unknown command "selfupdate" for "rclone"

Regarding the last question, I didn't run anything on the mount, you have the full debug output.

Is there a way to uninstall completely and install again with all fresh?

Thanks

Do not use package managers for rclone as they are dated/not a good source.

self update doesn't work because you a version that's too old for it to exist.

apt remove rclone

and install from:

Install (rclone.org)

Hi,
I did remove the old package and installed from the script,
Now is 1.57
see version output
rclone v1.57.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-92-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none

The config file has been unchanged and the connection with Onedrive is still valid and working.

Again, when mounting, nothing appears in the directory.
See the output from the mount command with -vv

 rclone -vv mount OneDrive: /home/doclesadmin/ODMedia/
2022/01/06 19:11:40 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "-vv" "mount" "OneDrive:" "/home/doclesadmin/ODMedia/"]
2022/01/06 19:11:40 DEBUG : Creating backend with remote "OneDrive:"
2022/01/06 19:11:40 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/01/06 19:11:41 INFO  : One drive root '': poll-interval is not supported by this remote
2022/01/06 19:11:41 NOTICE: One drive root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2022/01/06 19:11:41 DEBUG : One drive root '': Mounting on "/home/doclesadmin/ODMedia/"
2022/01/06 19:11:41 DEBUG : : Root: 
2022/01/06 19:11:41 DEBUG : : >Root: node=/, err=<nil>
^C2022/01/06 19:11:49 INFO  : Signal received: interrupt
2022/01/06 19:11:50 ERROR : /home/doclesadmin/ODMedia/: Unmounted rclone mount
2022/01/06 19:11:50 INFO  : Exiting...

Then tried with the --vfs-cache-mode writes option, again nothing the directory.

root@vmi589978:~# rclone --vfs-cache-mode writes mount OneDrive: /home/doclesadmin/ODMedia/
^C2022/01/06 19:15:59 ERROR : /home/doclesadmin/ODMedia/: Unmounted rclone mount
root@vmi589978:~# rclone -vv --vfs-cache-mode writes mount OneDrive: /home/doclesadmin/ODMedia/
2022/01/06 19:16:11 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "-vv" "--vfs-cache-mode" "writes" "mount" "OneDrive:" "/home/doclesadmin/ODMedia/"]
2022/01/06 19:16:11 DEBUG : Creating backend with remote "OneDrive:"
2022/01/06 19:16:11 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/01/06 19:16:12 INFO  : One drive root '': poll-interval is not supported by this remote
2022/01/06 19:16:12 DEBUG : vfs cache: root is "/root/.cache/rclone"
2022/01/06 19:16:12 DEBUG : vfs cache: data root is "/root/.cache/rclone/vfs/OneDrive"
2022/01/06 19:16:12 DEBUG : vfs cache: metadata root is "/root/.cache/rclone/vfsMeta/OneDrive"
2022/01/06 19:16:12 DEBUG : Creating backend with remote "/root/.cache/rclone/vfs/OneDrive/"
2022/01/06 19:16:12 DEBUG : Creating backend with remote "/root/.cache/rclone/vfsMeta/OneDrive/"
2022/01/06 19:16:12 DEBUG : One drive root '': Mounting on "/home/doclesadmin/ODMedia/"
2022/01/06 19:16:12 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/01/06 19:16:12 DEBUG : : Root: 
2022/01/06 19:16:12 DEBUG : : >Root: node=/, err=<nil>

I still do not see you trying to list anything in that debug log.

If you cd into the dir, you get an Attr log.

If you ls, you get a debug log that you did that as well (even if empty)

felix@gemini:~$ rclone mount GD: /home/felix/test -vvv
2022/01/06 17:26:44 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/01/06 17:26:44 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "mount" "GD:" "/home/felix/test" "-vvv"]
2022/01/06 17:26:44 DEBUG : Creating backend with remote "GD:"
2022/01/06 17:26:44 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2022/01/06 17:26:44 DEBUG : Google drive root '': Mounting on "/home/felix/test"
2022/01/06 17:26:44 DEBUG : : Root:
2022/01/06 17:26:44 DEBUG : : >Root: node=/, err=<nil>
2022/01/06 17:26:51 DEBUG : /: Attr:
2022/01/06 17:26:51 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/01/06 17:26:54 DEBUG : : Statfs:
2022/01/06 17:26:54 DEBUG : : >Statfs: stat={Blocks:4194304 Bfree:3317997 Bavail:3317997 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2022/01/06 17:26:57 DEBUG : /: Attr:
2022/01/06 17:26:57 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/01/06 17:26:57 DEBUG : /: ReadDirAll:
2022/01/06 17:26:57 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2022/01/06 17:26:57 DEBUG : /: Lookup: name="dir"
2022/01/06 17:26:57 DEBUG : /: >Lookup: node=dir/, err=<nil>
2022/01/06 17:26:57 DEBUG : dir/: Attr:
2022/01/06 17:26:57 DEBUG : dir/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/01/06 17:26:57 DEBUG : /: Lookup: name="hosts"
2022/01/06 17:26:57 DEBUG : /: >Lookup: node=hosts, err=<nil>
2022/01/06 17:26:57 DEBUG : hosts: Attr:
2022/01/06 17:26:57 DEBUG : hosts: >Attr: a=valid=1s ino=0 size=366 mode=-rw-rw-r--, err=<nil>

Are you cd ' ing the directory and typing something? Can you share that output?

thanks for helping...

I don't understand what you are expecting.
I created another directory ODMount.

When "mounted", I can't enter in the directory. Here is the ls -l output.

drwxr-xr-x 2 doclesadmin doclesadmin 4096 Aug  4 18:43 Desktop
drwxr-xr-x 3 doclesadmin doclesadmin 4096 Dec 11 17:11 Documents
drwxr-xr-x 2 doclesadmin doclesadmin 4096 Dec 12 11:51 Downloads
drwxr-xr-x 2 root        root        4096 Jul 16 20:07 logs
lrwxrwxrwx 1 doclesadmin doclesadmin   28 Jan  6 19:06 media -> /tmp/.x2go-doclesadmin/media
-rw-rw-r-- 1 doclesadmin doclesadmin    0 Dec 14 15:31 mountcheck
drwxrwxr-x 2 doclesadmin doclesadmin 4096 Dec 14 15:32 MountMedia
drwxr-xr-x 3 doclesadmin doclesadmin 4096 Dec 12 09:27 Music
-rw-rw-r-- 1 doclesadmin doclesadmin  864 Oct 28 00:14 network-log.png
d????????? ? ?           ?              ?            ? ODMount
drwxr-xr-x 2 doclesadmin doclesadmin 4096 Aug  4 18:06 Pictures
drwxr-xr-x 2 doclesadmin doclesadmin 4096 Aug  4 18:06 Public
drwxr-xr-x 2 doclesadmin doclesadmin 4096 Aug  6 22:02 Templates
drwxrwxr-t 2 doclesadmin doclesadmin 4096 Dec 10 16:44 thinclient_drives
drwxr-xr-x 4 root        root        4096 Jul 16 20:21 uploads
drwxr-xr-x 2 doclesadmin doclesadmin 4096 Jan  6 19:51 Videos

hello and welcome to the forum,

what is the output of the rclone mount point
ls /home/doclesadmin/ODMedia/

also, there does not seem to be a dir named ODMedia
but there is a dir named ODMount

Hi
Thanks for your welcome and helping.

Well, firstly the path for the directory was ODMedia.
Thinking it might be "corrupted" or wrongly set up, I deleted it and created a new one ODMount.
But in fact both directory end in the same behaviour.
Seems that this is not fully mounted.

re-post the updated rclone mount command and debug output.

rclone -vvv --vfs-cache-mode writes mount OneDrive: /home/doclesadmin/ODMount
2022/01/06 20:56:36 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "-vvv" "--vfs-cache-mode" "writes" "mount" "OneDrive:" "/home/doclesadmin/ODMount"]
2022/01/06 20:56:36 DEBUG : Creating backend with remote "OneDrive:"
2022/01/06 20:56:36 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/01/06 20:56:37 INFO  : One drive root '': poll-interval is not supported by this remote
2022/01/06 20:56:37 DEBUG : vfs cache: root is "/root/.cache/rclone"
2022/01/06 20:56:37 DEBUG : vfs cache: data root is "/root/.cache/rclone/vfs/OneDrive"
2022/01/06 20:56:37 DEBUG : vfs cache: metadata root is "/root/.cache/rclone/vfsMeta/OneDrive"
2022/01/06 20:56:37 DEBUG : Creating backend with remote "/root/.cache/rclone/vfs/OneDrive/"
2022/01/06 20:56:37 DEBUG : Creating backend with remote "/root/.cache/rclone/vfsMeta/OneDrive/"
2022/01/06 20:56:37 DEBUG : One drive root '': Mounting on "/home/doclesadmin/ODMount"
2022/01/06 20:56:37 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/01/06 20:56:37 DEBUG : : Root:
2022/01/06 20:56:37 DEBUG : : >Root: node=/, err=<nil>

what is the output of

  • ls /home/doclesadmin/ODMount
  • rclone ls OneDrive: -vv

Well the ls doesn't work

Here is the rclone ls command result

2022/01/06 21:01:11 DEBUG : Creating backend with remote "OneDrive:"
2022/01/06 21:01:11 DEBUG : Using config file from "/home/doclesadmin/.config/rclone/rclone.conf"
2022/01/06 21:01:11 Failed to create file system for "OneDrive:": didn't find section in config file

Found a issue in the config file !
Do I need to delete the current config and do it again from scratch ?

what is the output of rclone listremotes

OneDrive:
:sunglasses: :shushing_face:

i cannot see into your computer, so please post the command itself and entire output of rclone listremotes

doclesadmin@vmi589978:~$ sudo rclone listremotes
OneDrive:

so what is the problem?

2022/01/06 21:01:11 Failed to create file system for "OneDrive:": didn't find section in config file

again, i cannot see into your computer, need to post the full command line and full output, like this

user01@wsl01:~/rclone/scripts$ rclone lsd wasabi01:
          -1 2021-11-27 18:14:39        -1 10000x20mb
          -1 2020-09-29 17:13:17        -1 en07
          -1 2021-11-18 17:26:56        -1 en07.calibre.crypt