这是indexloc提供的服务,不要输入任何密码
Skip to content

400 Bad Request when uploading to WebDAV Server #96

@stevenengland

Description

@stevenengland
  • I'm submitting a ...

    • bug report
    • feature request
    • [ x] support request
  • What is the current behavior?
    When the backup tasks reaches the point to upload the archive to the WebDAV server I get a 400 return code.
    What I tried:
    HTTPS (self signed cert) backend
    HTTP backend
    slash variations at the end and the beginning of URL and PATH (although the gowebdav lib seems to correct them anyway)

The WebDAV server is a Synology (DSM 7). I think there is a protocol issue between the gowebdav client and the Synology WebDAV server. But I am not sure. So I am asking here at first :)

The Synology log tells me nothing important here.

This is a sample:
~ # echo $WEBDAV_PATH /small_written_test/ ~ # echo $WEBDAV_URL http://192.168.2.101:5005/ ~ # backup time="2022-04-20T06:42:55Z" level=info msg="Stopping 2 container(s) labeleddocker-volume-backup.stop-during-backup=trueout of 4 running container(s)." time="2022-04-20T06:44:02Z" level=info msg="Created backup of/backupat/tmp/"nextcloud-2022-04-20T06-42-55.tar.gz"." time="2022-04-20T06:44:03Z" level=info msg="Restarted 2 container(s) and the matching service(s)." time="2022-04-20T06:44:04Z" level=error msg="Fatal error running backup: copyBackup: error creating directory '/small_written_test/' on WebDAV server: MkdirAll /small_written_test/: 400" time="2022-04-20T06:44:04Z" level=info msg="Removed tar file /tmp/"nextcloud-2022-04-20T06-42-55.tar.gz"."

Do you have any idea what I might test?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions