Mounting Sharepoint site (MacOS)

I'm trying to mount a sharepoint site with Rclone, but so far I keep running into problems, where I feel like I'm missing some information. I do roughly know how terminal works, but I'm not a weathered user.
So far, it seems the configuration of the sharepoint site has worked and it did find the right site location. Then problem is, when I try to use the command:

rclone mount remote:path/to/files /path/to/local/mount

I keep getting back: ''Failed to create file system for "remote:xxx": didn't find section in config file''. I'm not really sure what should be the 'remote:path/to/files'. I tried the name of the drive in the config, the specific url to the site and some others, but none seem to work.

You should use the name of the remote.

Where is the config located? You could try specifying the config file with --config path/to/config.conf

Default config placement (Linux) is ~/.config/rclone/rclone.conf so if you have the config lovated somewhere else you need to specify

The config file is in the default location (/users/Bernd/.config/rclone/config.conf on MacOS) and specifying it in the mount command does not change the outcome.
When I view my config I see:

Current remotes:

Name Type
==== ====
Logitech onedrive

But when I try it I get:

Bernd@MacBook-van-Bernd-Keuning ~ % rclone mount remote:Logitech /users/Logitech
2020/09/22 11:34:09 Failed to create file system for "remote:Logitech": didn't find section in config file
It feels very weird, this is the way it is supposed to work, right?

You're typing it wrong. You don't type remote:Logitech, you just use Logitech:.

So the command is rclone mount Logitech: /users/Logitech (you can add & at the end of the command to run it as a background process)

Well, that explains it. It now does mount, but the mounted disk is empty. I tried creating my own client-ID, but it didn't change the outcome. The mounted disk has a Generic File System and contains 0 bytes, I don't see any other information that explains the problem.

You could run the command with -vv and set a logfile path (or just don't mount it as a background process). Or you could run any other command and see the debug output.

I don't have any experience with onedrive, but it could be you want to set a folder inside the remote ´Logitech:/path/inside/onedrive´

This is what I get:

2020/09/22 14:58:11 DEBUG : rclone: Version "v1.52.3" starting with parameters ["rclone" "mount" "Logitech:" "/users/Logitech" "-vv"]
2020/09/22 14:58:11 DEBUG : Using config file from "/Users/Bernd/.config/rclone/rclone.conf"
2020/09/22 14:58:12 DEBUG : One drive root '': Mounting on "/users/Logitech"
2020/09/22 14:58:12 INFO : One drive root '': poll-interval is not supported by this remote
2020/09/22 14:58:12 DEBUG : Adding path "vfs/forget" to remote control registry
2020/09/22 14:58:12 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/09/22 14:58:12 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/09/22 14:58:12 DEBUG : : Root:
2020/09/22 14:58:12 DEBUG : : >Root: node=/, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : /: Attr:
2020/09/22 14:58:12 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : /: Lookup: name=".hidden"
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : /: >Lookup: node=, err=no such file or directory
2020/09/22 14:58:12 DEBUG : : Statfs:
2020/09/22 14:58:12 DEBUG : : >Statfs: stat={Blocks:0 Bfree:0 Bavail:0 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2020/09/22 14:58:12 DEBUG : /: Lookup: name=".hidden"
2020/09/22 14:58:12 DEBUG : /: >Lookup: node=, err=no such file or directory
2020/09/22 14:58:12 DEBUG : /: Lookup: name=".hidden"
2020/09/22 14:58:12 DEBUG : /: >Lookup: node=, err=no such file or directory
2020/09/22 14:58:12 DEBUG : /: Lookup: name=".hidden"
2020/09/22 14:58:12 DEBUG : /: >Lookup: node=, err=no such file or directory

I tried adding '--poll-interval 0' as parameter, but that didn't change anything.

  • try to see the files in the remote, without the mount
    rclone ls Logitech:

  • for the mount command, try adding --allow-other

Fixed it.
The problem wasn't in the mounting, but in the configuration. When 'rclone ls Logitech:' didn't return anything, I started wondering if the location was correct.
So before, in setting up the Sharepoint I chose the method "Root Sharepoint site", which did return something that made sense, so I assumed it was correct. This time I used "Search a Sharepoint site", used a generic search term, which let me through a few menus to the correct folder. Now the mount command works, without the use of any additional parameters.

good to hear...

Or so I thought...
The mounting works, but the drive still shows up as 0 bytes. I can open everything, but when I try to write anything I get a 'No space available' error. The file I try to move to the drive does appear, but with 0 bytes...
When I try rclone about Logitech: I get:

Total:   0
Used:    0
Free:    0
Trashed: 0
  • update rclone
  • try adding https://rclone.org/commands/rclone_mount/#vfs-cache-mode-writes
  • would need to see a debug log, at the point in time where you get the 'no space error'

I'm kinda stumped, I don't see how to update rclone. I tried both the script installation and downloading the new binary and executing it, but neither seems to actually update the rclone version.

Adding --vfs-cache-more writes as parameter doesn't seem to change anything.

I tried observing the debug log when trying to copy a file, but the logging goes absolutely haywire once I open the mounted disk. This seems to be the point where I try coping:

2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/: ReadDirAll: 
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/: >ReadDirAll: item=1, err=<nil>
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: Attr: 
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: >Attr: a=valid=1s ino=0 size=0 mode=-rw-r--r--, err=<nil>
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: Open: flags=OpenReadOnly
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: Open: flags=O_RDONLY
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: >Open: fd=2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf (rw), err=<nil>
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: >Open: fh=&{2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf (rw)}, err=<nil>
2020/09/23 19:43:05 DEBUG : &{2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf (rw)}: Flush: 
2020/09/23 19:43:05 DEBUG : &{2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf (rw)}: >Flush: err=<nil>
2020/09/23 19:43:05 DEBUG : &{2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf (rw)}: Release: 
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf(0xc00fb4bf40): RWFileHandle.Release closing
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf(0xc00fb4bf40): close: 
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf(0xc00fb4bf40): >close: err=<nil>
2020/09/23 19:43:05 DEBUG : &{2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf (rw)}: >Release: err=<nil>
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: Attr: 
2020/09/23 19:43:05 DEBUG : 2020/Projecten/20032 Swiet D-002991 BBV Veluwe 2021/Informatieset/OR/geo 609/OR_4_Zutphen_000828819_AD003.pdf: >Attr: a=valid=1s ino=0 size=0 mode=-rw-r--r--, err=<nil>

rclone is a single portable executable, you can download it anywhere and run it.

what exactly is the problem now?

what do you think is wrong with the debug output?

Well, I succeeded updating rclone, but that didn't resolve anything.

The problem seems definitely to be in the Sharepoint site. I tried mounting my personal Onedrive disk that is tied to the same account as the Sharepoint site and it had no problems at all. Using rclone about OneDrive: yielded normal results and the mounted disk is writeable. It seems really weird that the Sharepoint site with identical configuration does not work.

have you searched the forum for solutions?

Well, after a longer search on the forum I finally found a solution/work around.
Using the parameter --disable About, it finally showed up having TBs of free space and writing finally works!

Thanks for all the help! Rclone is not easy to get used to, but feels very powerful.

great͏͏͏͏ ͏͏͏͏ ͏͏͏͏

这个我的pr 已经修复,原因是不能识别drives/driveid 形式的api
必须使用 siteis/siteid
我以为只有世纪互联onedrive才有这个问题
如果你是世纪互联用户可以尝试下目前china 网络流传的版本不能挂载shareoint 或者出现你这种情况,

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