Empty Mounted Directory

What is the problem you are having with rclone?

Mounted directory is empty.

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

rclone v1.61.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-67-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

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

阿里云盘 AliyunDrive

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

/usr/bin/rclone mount webdav:/ /mnt/aliyundrive \
        --cache-dir /tmp \
        --allow-other \
        --vfs-cache-mode writes \
        --allow-non-empty \
        --no-update-modtime \
        --use-mmap \
        --dir-cache-time 1h

The rclone config contents with secrets removed.

Editing existing "webdav" remote with options:
- type: webdav
- url: http://127.0.0.1:8084
- vendor: nextcloud
- user: xchawai
- pass: *** ENCRYPTED ***

A log from the command with the -vv flag

rclone mount webdav:/ /mnt/aliyundrive --cache-dir /tmp --allow-other --vfs-cache-mode writes --allow-non-empty --no-update-modtime --use-mmap --dir-cache-time 1h -vv
2023/04/14 11:46:09 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "mount" "webdav:/" "/mnt/aliyundrive" "--cache-dir" "/tmp"
"--allow-other" "--vfs-cache-mode" "writes" "--allow-non-empty" "--no-update-modtime" "--use-mmap" "--dir-cache-time" "1h" "-vv"]
2023/04/14 11:46:09 DEBUG : Creating backend with remote "webdav:/"
2023/04/14 11:46:09 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/04/14 11:46:09 DEBUG : found headers:
2023/04/14 11:46:09 DEBUG : fs cache: renaming cache item "webdav:/" to be canonical "webdav:"
2023/04/14 11:46:09 INFO  : webdav root '': poll-interval is not supported by this remote
2023/04/14 11:46:09 DEBUG : vfs cache: root is "/tmp"
2023/04/14 11:46:09 DEBUG : vfs cache: data root is "/tmp/vfs/webdav"
2023/04/14 11:46:09 DEBUG : vfs cache: metadata root is "/tmp/vfsMeta/webdav"
2023/04/14 11:46:09 DEBUG : Creating backend with remote "/tmp/vfs/webdav/"
2023/04/14 11:46:09 DEBUG : fs cache: renaming cache item "/tmp/vfs/webdav/" to be canonical "/tmp/vfs/webdav"
2023/04/14 11:46:09 DEBUG : Creating backend with remote "/tmp/vfsMeta/webdav/"
2023/04/14 11:46:09 DEBUG : fs cache: renaming cache item "/tmp/vfsMeta/webdav/" to be canonical "/tmp/vfsMeta/webdav"
2023/04/14 11:46:09 DEBUG : webdav root '': Mounting on "/mnt/aliyundrive"2023/04/14 11:46:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/04/14 11:46:09 DEBUG : : Root:
2023/04/14 11:46:09 DEBUG : : >Root: node=/, err=<nil>
2023/04/14 11:46:23 DEBUG : /: Attr:
2023/04/14 11:46:23 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:46:24 DEBUG : /: ReadDirAll:
2023/04/14 11:46:26 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2023/04/14 11:46:26 DEBUG : /: Attr:
2023/04/14 11:46:26 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:46:28 DEBUG : /: Attr:
2023/04/14 11:46:28 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:46:28 DEBUG : /: ReadDirAll:
2023/04/14 11:46:28 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2023/04/14 11:46:28 DEBUG : /: Attr:
2023/04/14 11:46:28 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:46:30 DEBUG : /: Attr:
2023/04/14 11:46:30 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:46:30 DEBUG : /: ReadDirAll:
2023/04/14 11:46:30 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2023/04/14 11:46:30 DEBUG : /: Attr:
2023/04/14 11:46:30 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:46:31 DEBUG : /: Attr:
2023/04/14 11:46:31 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:46:31 DEBUG : /: ReadDirAll:
2023/04/14 11:46:31 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2023/04/14 11:46:31 DEBUG : /: Attr:
2023/04/14 11:46:31 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:47:07 DEBUG : /: Attr:
2023/04/14 11:47:07 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:47:08 DEBUG : /: ReadDirAll:
2023/04/14 11:47:08 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2023/04/14 11:47:08 DEBUG : /: Attr:
2023/04/14 11:47:08 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:47:08 DEBUG : /: Attr:
2023/04/14 11:47:08 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/04/14 11:47:08 DEBUG : /: ReadDirAll:
2023/04/14 11:47:08 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2023/04/14 11:47:08 DEBUG : /: Attr:
2023/04/14 11:47:08 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>

WebDav is totally fine when I'm accessing from Chrome, and this problem is not always happen.
The reason why I choose "Nextcloud" as vendor is because it support SHA-1 checksum.

hello and welcome to the forum,

use the correct documented value, get that working.
if the vendor is not nextcloud, then do not use vendor: nextcloud

make sure a simple command works:
rclone ls webdav: -vv

Thanks for your reply!
I've tried to change the vendor to "webdav", but the problem still appear.
and I tried

rclone ls webdav: -vv

It works.
But the directory is still empty.

  • can you post the full output of
    rclone ls webdav: -vv

  • what is the exact url what works with chrome?

  • you are running the webdav server on local lan at 127.0.0.1:8084

Full output:

root@ubuntu:~# rclone ls webdav: -vv
2023/04/14 15:33:52 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "ls" "webdav:" "-vv"]
2023/04/14 15:33:52 DEBUG : Creating backend with remote "webdav:"
2023/04/14 15:33:52 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/04/14 15:33:52 DEBUG : found headers: 
       31 TV Shows/Friends/RARBG.txt
934754323 TV Shows/Friends/friends.s01e01.720p.bluray.x264-psychd.mkv
934786017 TV Shows/Friends/friends.s01e02.720p.bluray.x264-psychd.mkv
934068003 TV Shows/Friends/friends.s01e03.720p.bluray.x264-psychd.mkv
934331091 TV Shows/Friends/friends.s01e04.720p.bluray.x264-psychd.mkv
934239069 TV Shows/Friends/friends.s01e05.720p.bluray.x264-psychd.mkv
777274798 TV Shows/Friends/friends.s01e06.720p.bluray.x264-psychd.mkv
934867341 TV Shows/Friends/friends.s01e07.720p.bluray.x264-psychd.mkv
934485265 TV Shows/Friends/friends.s01e08.720p.bluray.x264-psychd.mkv
934410746 TV Shows/Friends/friends.s01e09.720p.bluray.x264-psychd.mkv
934647103 TV Shows/Friends/friends.s01e10.720p.bluray.x264-psychd.mkv
934066552 TV Shows/Friends/friends.s01e11.720p.bluray.x264-psychd.mkv
935324685 TV Shows/Friends/friends.s01e12.720p.bluray.x264-psychd.mkv
934998835 TV Shows/Friends/friends.s01e13.720p.bluray.x264-psychd.mkv
935368818 TV Shows/Friends/friends.s01e14.720p.bluray.x264-psychd.mkv
935516585 TV Shows/Friends/friends.s01e15.720p.bluray.x264-psychd.mkv
935240525 TV Shows/Friends/friends.s01e16.720p.bluray.x264-psychd.mkv
934897814 TV Shows/Friends/friends.s01e17.720p.bluray.x264-psychd.mkv
934259738 TV Shows/Friends/friends.s01e18.720p.bluray.x264-psychd.mkv
934766679 TV Shows/Friends/friends.s01e19.720p.bluray.x264-psychd.mkv
934719550 TV Shows/Friends/friends.s01e20.720p.bluray.x264-psychd.mkv
935188683 TV Shows/Friends/friends.s01e21.720p.bluray.x264-psychd.mkv
934514438 TV Shows/Friends/friends.s01e22.720p.bluray.x264-psychd.mkv
934780025 TV Shows/Friends/friends.s01e23.720p.bluray.x264-psychd.mkv
935329286 TV Shows/Friends/friends.s01e24.720p.bluray.x264-psychd.mkv
4002602749 TV Shows/Dirty.Money.2018.S01.1080p.NF.WEBRip.DD5.1.x264-SiGMA[rartv]/Dirty.Money.2018.S01E01.Hard.NOx.1080p.NF.WEB-DL.DD5.1.H.264-SiGMA.mkv
3561130103 TV Shows/Dirty.Money.2018.S01.1080p.NF.WEBRip.DD5.1.x264-SiGMA[rartv]/Dirty.Money.2018.S01E02.Payday.1080p.NF.WEB-DL.DD5.1.H.264-SiGMA.mkv
2271309899 TV Shows/Dirty.Money.2018.S01.1080p.NF.WEBRip.DD5.1.x264-SiGMA[rartv]/Dirty.Money.2018.S01E03.Drug.Short.1080p.NF.WEB-DL.DD5.1.H.264-SiGMA.mkv
2226563951 TV Shows/Dirty.Money.2018.S01.1080p.NF.WEBRip.DD5.1.x264-SiGMA[rartv]/Dirty.Money.2018.S01E04.Cartel.Bank.1080p.NF.WEB-DL.DD5.1.H.264-SiGMA.mkv
2198578420 TV Shows/Dirty.Money.2018.S01.1080p.NF.WEBRip.DD5.1.x264-SiGMA[rartv]/Dirty.Money.2018.S01E05.The.Maple.Syrup.Heist.1080p.NF.WEB-DL.DD5.1.H.264-SiGMA.mkv
3386268636 TV Shows/Dirty.Money.2018.S01.1080p.NF.WEBRip.DD5.1.x264-SiGMA[rartv]/Dirty.Money.2018.S01E06.The.Confidence.Man.1080p.NF.WEB-DL.DD5.1.H.264-SiGMA.mkv
       31 TV Shows/Dirty.Money.2018.S01.1080p.NF.WEBRip.DD5.1.x264-SiGMA[rartv]/RARBG.txt
822880821 TV Shows/Money.Explained.S01.COMPLETE.1080p.WEB.h264-STOUT[TGx]/Money.Explained.S01E01.1080p.WEB.h264-STOUT.mkv
628841580 TV Shows/Money.Explained.S01.COMPLETE.1080p.WEB.h264-STOUT[TGx]/Money.Explained.S01E02.1080p.WEB.h264-STOUT.mkv
778531973 TV Shows/Money.Explained.S01.COMPLETE.1080p.WEB.h264-STOUT[TGx]/Money.Explained.S01E03.1080p.WEB.h264-STOUT.mkv
761423465 TV Shows/Money.Explained.S01.COMPLETE.1080p.WEB.h264-STOUT[TGx]/Money.Explained.S01E04.1080p.WEB.h264-STOUT.mkv
646006796 TV Shows/Money.Explained.S01.COMPLETE.1080p.WEB.h264-STOUT[TGx]/Money.Explained.S01E05.1080p.WEB.h264-STOUT.mkv
      678 TV Shows/Money.Explained.S01.COMPLETE.1080p.WEB.h264-STOUT[TGx]/[TGx]Downloaded from torrentgalaxy.to .txt
556894483 TV Shows/Spy.Family/[Lilith-Raws] SPYxFAMILY - 17 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4].mp4
591792215 TV Shows/Spy.Family/[Lilith-Raws] SPYxFAMILY - 20 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4].mp4
529676646 TV Shows/Spy.Family/[Lilith-Raws] SPYxFAMILY - 21 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4].mp4
563987056 TV Shows/Spy.Family/[Lilith-Raws] SPYxFAMILY - 22 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4].mp4
551465191 TV Shows/Spy.Family/[Lilith-Raws] SPYxFAMILY - 23 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4].mp4
457479645 TV Shows/Spy.Family/[Lilith-Raws] SPYxFAMILY - 24 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4].mp4
518181612 TV Shows/Spy.Family/[Lilith-Raws] SPYxFAMILY - 25 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4].mp4
407958399 TV Shows/Spy.Family/[NC-Raws] SPY×FAMILY 間諜家家酒 - 18 (Baha 1920x1080 AVC AAC MP4) [FA36A5A6].mp4
519250205 TV Shows/Spy.Family/[NC-Raws] SPY×FAMILY 間諜家家酒 - 19 (Baha 1920x1080 AVC AAC MP4) [86905CC3].mp4
       30 TV Shows/The.Green.Planet/RARBG.txt
970516170 TV Shows/The.Green.Planet/The.Green.Planet.S01E01.1080p.BluRay.x265-RARBG.mp4
957506073 TV Shows/The.Green.Planet/The.Green.Planet.S01E02.1080p.BluRay.x265-RARBG.mp4
965507568 TV Shows/The.Green.Planet/The.Green.Planet.S01E03.1080p.BluRay.x265-RARBG.mp4
966713784 TV Shows/The.Green.Planet/The.Green.Planet.S01E04.1080p.BluRay.x265-RARBG.mp4
956212718 TV Shows/The.Green.Planet/The.Green.Planet.S01E05.1080p.BluRay.x265-RARBG.mp4
       31 TV Shows/The.Mind.Explained.S01.1080p.NF.WEBRip.DDP5.1.x264-NTG[rartv]/RARBG.txt
1150388415 TV Shows/The.Mind.Explained.S01.1080p.NF.WEBRip.DDP5.1.x264-NTG[rartv]/The.Mind.Explained.S01E01.Memory.1080p.NF.WEB-DL.DDP5.1.x264-NTG.mkv
971646861 TV Shows/The.Mind.Explained.S01.1080p.NF.WEBRip.DDP5.1.x264-NTG[rartv]/The.Mind.Explained.S01E02.Dreams.1080p.NF.WEB-DL.DDP5.1.x264-NTG.mkv
1213511501 TV Shows/The.Mind.Explained.S01.1080p.NF.WEBRip.DDP5.1.x264-NTG[rartv]/The.Mind.Explained.S01E03.Anxiety.1080p.NF.WEB-DL.DDP5.1.x264-NTG.mkv
1034249407 TV Shows/The.Mind.Explained.S01.1080p.NF.WEBRip.DDP5.1.x264-NTG[rartv]/The.Mind.Explained.S01E04.Mindfulness.1080p.NF.WEB-DL.DDP5.1.x264-NTG.mkv
1279943377 TV Shows/The.Mind.Explained.S01.1080p.NF.WEBRip.DDP5.1.x264-NTG[rartv]/The.Mind.Explained.S01E05.Psychedelics.1080p.NF.WEB-DL.DDP5.1.x264-NTG.mkv
       31 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/RARBG.txt
2250537121 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E01.Pizza.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
2388397173 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E02.Tacos.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
1676553895 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E03.Home.Cooking.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
2112826581 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E04.Shrimp.and.Crawfish.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
1574786098 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E05.BBQ.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
2111613441 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E06.Fried.Chicken.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
1748052035 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E07.Fried.Rice.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
1659431189 TV Shows/Ugly.Delicious.S01.1080p.NF.WEBRip.DD5.1.x264-monkee[rartv]/Ugly.Delicious.S01E08.Stuffed.1080p.NF.WEB-DL.DD5.1.x264-monkee.mkv
       31 TV Shows/Ugly.Delicious.S02.1080p.NF.WEBRip.DDP5.1.x264-monkee[rartv]/RARBG.txt
1583406899 TV Shows/Ugly.Delicious.S02.1080p.NF.WEBRip.DDP5.1.x264-monkee[rartv]/Ugly.Delicious.S02E01.Kids.Menu.1080p.NF.WEB-DL.DD+5.1.x264-monkee.mkv
2027357769 TV Shows/Ugly.Delicious.S02.1080p.NF.WEBRip.DDP5.1.x264-monkee[rartv]/Ugly.Delicious.S02E02.Dont.Call.It.Curry.1080p.NF.WEB-DL.DD+5.1.x264-monkee.mkv
2441041387 TV Shows/Ugly.Delicious.S02.1080p.NF.WEBRip.DDP5.1.x264-monkee[rartv]/Ugly.Delicious.S02E03.Steak.1080p.NF.WEB-DL.DD+5.1.x264-monkee.mkv
1756407155 TV Shows/Ugly.Delicious.S02.1080p.NF.WEBRip.DDP5.1.x264-monkee[rartv]/Ugly.Delicious.S02E04.As.the.Meat.Turns.1080p.NF.WEB-DL.DD+5.1.x264-monkee.mkv
...
2023/04/14 15:34:02 DEBUG : 18 go routines active

The exact url, access to the local server by PC:

http://10.0.0.100:8084

I'm running the webdav server on local lan. But the actual files are stored in the "阿里云盘 AliyunDrive" cloud drive. They don't provide official webdav function, so somebody built a webdav server using official API. GitHub - messense/aliyundrive-webdav: 阿里云盘 WebDAV 服务

Sometimes the response is like this:

root@ubuntu:~# rclone ls webdav:
2023/04/14 15:46:07 ERROR : : error listing: directory not found
2023/04/14 15:46:07 Failed to ls with 2 errors: last error was: directory not found

But if I try again, it will work fine.

I think that may be the reason.

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