Unable to connect rclone with sharepoint webdav

What is the problem you are having with rclone?

I am unable to configure rclone to sharepoint site webdav. I am getting HTTP 405 error.
2022/08/18 16:24:21 ERROR : webdav root '': Statfs failed: 405 Method Not Allowed
2022/08/18 16:24:31 ERROR : IO error: couldn't list files: 405 Method Not Allowed

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

[root@ocisg-rclone ~]# rclone --version
rclone v1.59.1

  • os/version: oracle 7.9 (64 bit)
  • os/kernel: 5.4.17-2136.310.7.el7uek.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.5
  • go/linking: static
  • go/tags: none

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

Webdav-Sharepoint

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

rclone --vfs-cache-mode writes mount "sharepoint":  /ms-share

The rclone config contents with secrets removed.

- type: webdav
- url: https://graph.microsoft.com/v1.0/sites/7c7331ff-5f8b-40e5-95e1-44c5b82aeee9/drives/
- vendor: sharepoint
- bearer_token: eyJ0eXAiOiJKV1QiLCJub25jZSI6InR6dlpCRC1EM3k2SVhOOERzOGFjTEdKU0ZQdjl5NmFubHR6dHlkX0F5bEEiLCJhbGciO****rYpTQ3c2dxMCckWt82lBL8JisfmAsUiSJ61IaA566FOXYzjQ57d50YJCx67MJ8qmMyN0QNeHi48NI4G1soZPuZr28B25QTd_9wQgyxrJkg

A log from the command with the -vv flag

[root@ocisg-rclone ~]# rclone -vv --vfs-cache-mode writes mount "sharepoint":  /ms-share
2022/08/18 16:47:45 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "-vv" "--vfs-cache-mode" "writes" "mount" "sharepoint:" "/ms-share"]
2022/08/18 16:47:45 DEBUG : Creating backend with remote "sharepoint:"
2022/08/18 16:47:45 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/08/18 16:47:45 DEBUG : found headers:
2022/08/18 16:47:45 Failed to create file system for "sharepoint:": :  ()

hello and welcome to the forum,

for testing, try a simple command rclone ls sharepoint:

Actually I got fixed this in another way. Got the config file created manually and pasted that in the rclone.conf which fixed the issue and I am able to mount the file system as well.

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