Failing to rclone to Nextcloud - 405 Method Not Allowed

What is the problem you are having with rclone?

Unable to run sync against a Nextcloud server - repeatedly get "couldn't list files: 405 Method Not Allowed"

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

rclone v1.53.3-DEV

  • os/arch: linux/arm64
  • go version: go1.15.9

No, but it is the current version in the Armbian repos

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

Nextcloud

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

/usr/bin/rclone sync music: /var/lib/music

The rclone config contents with secrets removed.

[music]
type = webdav
url = https://data.example.com
vendor = nextcloud
user = music
pass = *******************

A log from the command with the -vv flag

# /usr/bin/rclone -vv sync music: /var/lib/music
2022/03/21 15:58:12 DEBUG : rclone: Version "v1.53.3-DEV" starting with parameters ["/usr/bin/rclone" "-vv" "sync" "music:" "/var/lib/music"]
2022/03/21 15:58:12 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/03/21 15:58:12 DEBUG : Creating backend with remote "music:"
2022/03/21 15:58:12 DEBUG : Creating backend with remote "/var/lib/music"
2022/03/21 15:58:13 ERROR : : error reading source directory: couldn't list files: 405 Method Not Allowed
2022/03/21 15:58:13 DEBUG : Local file system at /var/lib/music: Waiting for checks to finish
2022/03/21 15:58:13 DEBUG : Local file system at /var/lib/music: Waiting for transfers to finish
2022/03/21 15:58:13 ERROR : Local file system at /var/lib/music: not deleting files as there were IO errors
2022/03/21 15:58:13 ERROR : Local file system at /var/lib/music: not deleting directories as there were IO errors
2022/03/21 15:58:13 INFO  : There was nothing to transfer
2022/03/21 15:58:13 ERROR : Attempt 1/3 failed with 1 errors and: couldn't list files: 405 Method Not Allowed
2022/03/21 15:58:14 ERROR : : error reading source directory: couldn't list files: 405 Method Not Allowed
2022/03/21 15:58:14 DEBUG : Local file system at /var/lib/music: Waiting for checks to finish
2022/03/21 15:58:14 DEBUG : Local file system at /var/lib/music: Waiting for transfers to finish
2022/03/21 15:58:14 ERROR : Local file system at /var/lib/music: not deleting files as there were IO errors
2022/03/21 15:58:14 ERROR : Local file system at /var/lib/music: not deleting directories as there were IO errors
2022/03/21 15:58:14 INFO  : There was nothing to transfer
2022/03/21 15:58:14 ERROR : Attempt 2/3 failed with 1 errors and: couldn't list files: 405 Method Not Allowed
2022/03/21 15:58:14 ERROR : : error reading source directory: couldn't list files: 405 Method Not Allowed
2022/03/21 15:58:14 DEBUG : Local file system at /var/lib/music: Waiting for checks to finish
2022/03/21 15:58:14 DEBUG : Local file system at /var/lib/music: Waiting for transfers to finish
2022/03/21 15:58:14 ERROR : Local file system at /var/lib/music: not deleting files as there were IO errors
2022/03/21 15:58:14 ERROR : Local file system at /var/lib/music: not deleting directories as there were IO errors
2022/03/21 15:58:14 INFO  : There was nothing to transfer
2022/03/21 15:58:14 ERROR : Attempt 3/3 failed with 1 errors and: couldn't list files: 405 Method Not Allowed
2022/03/21 15:58:14 INFO  : 
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         2.9s

2022/03/21 15:58:14 DEBUG : 3 go routines active
2022/03/21 15:58:14 Failed to sync: couldn't list files: 405 Method Not Allowed

hello and welcome to the forum,

that is a very old, custom compiled development version.
the only way to get the latest stable rclone is here

perhaps try
url = https://data.example.com/remote.php/webdav/

1 Like

Thanks. That worked for me.

1 Like

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