WebDAV Backups to Windows 2016 IIS

Hi all

Some people here doing successfull backups via WebDAV to IIS on Win2k16?
I’m unable to make it work with 2.0 (beta). Duplicati can not upload the files for some reason.

I’ll try to backup to a subfoler within the WebDAV root directory. Mounted network drive on my Windows box works perfectly. No errors in the server’s logfile, everything status 20x.

Regards
Tom

Hello and welcome!

Can you please post the full error information that Duplicati shows?

I did a test on a Server 2016 VM. I was able to get it to work by doing the following:

Using Server Manager

  • Install main IIS role
  • Install IIS option: Common > WebDAV Publishing
  • Install IIS option: Security > Basic Authentication

Using Computer Management

  • Create new local user - eg, user1 and assign password

Using Windows Explorer

  • Create folder to store webdav data - eg, C:\inetpub\wwwroot\webdav\user1
  • Adjust NTFS permissions on that folder so user1 has Modify rights

Using IIS Manager

  • Enable WebDAV at site level
  • Add WebDAV authoring rule so that user1 has Read and Write permission at webdav target folder level (or higher)
  • Enable Basic Authentication at webdav target folder level (or higher)

The main piece that was causing me trouble was the fact that Basic Authentication is not installed by default in IIS. Without Basic Authentication installed and enabled, Duplicati couldn’t authenticate against the server. Note that this authentication method is insecure, so don’t use it over an untrusted network unless you are going to combine it with (and require) TLS.

Let me know if you need any other pointers or screen shots. Good luck!

Hi all

The WebDAV server is generally working.

net use * https://www.bucher-allround.ch /user:wd.bucher-allround xxxxxxx
The command completed successfully.
  • Uploading, modifying, deleting files is possible.
  • Basisc Authentication & Windows Authentication is enabled on the WebDAV server side.

I would like to backup to a subfolder called “test” on the WebDAV root.

2019-12-11 14_47_30-test

I’ve deleted all configured backups yesterday, so I tried to configure a fresh backup now to deliver all the informations to the forum. For now, i can not create a WebDAV backup/connection anymore.

I receive following error:
“Failed to connect: Der Remoteserver hat einen Fehler zurückgegeben: (403) Unzulässig.”

Yesterday, when i initally tried to configure WebDAV, i had the same. But after a few attempts to create the WebDAV connection, the error disappeared like magic and the connection test was successfull.
I was happy that the wizzard completed and started the backup job: That ended then with the error initally described: Duplicati was unable to put files to the WebDAV connection.

Screenshot of todays attempt to run the wizzard (i also tried to add 443 to the Port input-field, my experience from yesterday was that leaving it empty or adding 443 worked both):

Hmm… i’ve tried to reinstall Duplicati, the error remains. The error logged on my serverside is a HTTP 403.

2019-12-11 14:10:52 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 403 2 5 6543 177 15
2019-12-11 14:11:18 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 403 2 5 6543 177 15
2019-12-11 14:11:20 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 403 2 5 6543 177 15
2019-12-11 14:11:23 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 403 2 5 6543 177 31
2019-12-11 14:11:24 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 403 2 5 6543 177 15
2019-12-11 14:11:25 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 403 2 5 6543 177 31

I can see, there is no username in the logfile visible. But when i try to use my mapped network drive, then i can see the username and everything works as expected.

2019-12-11 14:12:52 W3SVC31 www 10.0.1.30 PROPFIND / - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 17346 171 46
2019-12-11 14:12:52 W3SVC31 www 10.0.1.30 MOVE /test/Neues+Textdokument.txt https://www.bucher-allround.ch/test/mytestfile.txt 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 201 0 0 247 265 31
2019-12-11 14:12:52 W3SVC31 www 10.0.1.30 PROPFIND /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1188 190 62
2019-12-11 14:12:52 W3SVC31 www 10.0.1.30 GET /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 200 0 0 391 199 31
2019-12-11 14:12:52 W3SVC31 www 10.0.1.30 PROPFIND /Desktop.ini - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 404 0 2 5222 182 15
2019-12-11 14:12:54 W3SVC31 www 10.0.1.30 PROPFIND /AutoRun.inf - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 404 0 2 5222 817 15
2019-12-11 14:12:56 W3SVC31 www 10.0.1.30 LOCK /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 200 0 0 876 1128 15
2019-12-11 14:12:56 W3SVC31 www 10.0.1.30 HEAD /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 200 0 0 391 143 31
2019-12-11 14:12:56 W3SVC31 www 10.0.1.30 PUT /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 204 0 0 231 266 15
2019-12-11 14:12:56 W3SVC31 www 10.0.1.30 PROPPATCH /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 660 734 31
2019-12-11 14:12:56 W3SVC31 www 10.0.1.30 UNLOCK /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 204 0 0 231 287 15
2019-12-11 14:12:56 W3SVC31 www 10.0.1.30 PROPFIND /test/mytestfile.txt - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.chdynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1191 190 62

The problem is different from yesterday, but has probably the same root cause.

Any idea why i’m not able to create a WebDAV connection to this server (today)?

Cheers
Tom

That means Duplicati is not able to authenticate, so your connection is falling back to anonymous.

You have Basic Authentication installed, but did you confirm that it is enabled? It needs to be enabled at least at your backup target folder location.

This is enabled

2019-12-11 15_33_36-Remote Desktop Manager Free

You’re right. Anonymous is also enabled. I need it, because the website delivers also a regular website.

I did not change the setting from yesterday.

Here some logs from yesterday

2019-12-11 00:17:12 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround tomthedell.thuinformatik.local HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1138 175 46
2019-12-11 00:17:24 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround tomthedell.thuinformatik.local HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 1157 772 0
2019-12-11 00:17:27 W3SVC31 www 10.0.1.30 PUT /test/duplicati-baf3c38274b6b49eeadc872f540cc5723.dblock.zip.aes - 443 - tomthedell.thuinformatik.local HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 413 1 0 5550 860 0

Here i can see the username is present… very strange.

By looking at the logs, i can see yesterday i had an HTTP Error 413 request entity too large. Ok, so i know why i was not able to put files to the WebDAV server yesterday. The files was too large.I know how to increase the aloowed filesize for PUT on IIS. No Problem.

But i can no create a fresh backup job anymore now :frowning:

That’s fine, I would restrict webdav so that anonymous cannot use it though. You can do that with your webdav authoring rules.

How is Duplicati configured? Did you change the --dblock-size option perhaps? The default is 50MB, which should be fine in most cases… and I doubt 50MB is too large for IIS WebDAV.

Well if you wanted to, you should be able to. Erase the backup data on the webdav side, then delete the local job database to start over.

I tested to disable “Anonymous Authentication” and the connection test is successfull. Argh, maybe i did some changes here yesterday? Must be the case, i have no other explanation. It was late. Sorry for the wrong info.

Now i tried to perform the backup. Here the serverlogs:

2019-12-11 14:40:47 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 403 2 5 6543 177 31
2019-12-11 14:40:58 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 - 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 401 2 5 6383 177 31
2019-12-11 14:40:58 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 1985 776 31
2019-12-11 14:41:09 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1138 175 62
2019-12-11 14:42:32 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 1985 776 31
2019-12-11 14:42:38 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 1985 776 31
2019-12-11 14:42:38 W3SVC31 www 10.0.1.30 PUT /test/duplicati-bb6a1f62c08da4d75b10412daa7425ce1.dblock.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 1672 31
2019-12-11 14:42:38 W3SVC31 www 10.0.1.30 PUT /test/duplicati-i4e8802f228a44e619d9b36c9edfb69f6.dindex.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 1736 31
2019-12-11 14:42:38 W3SVC31 www 10.0.1.30 PUT /test/duplicati-20191211T144237Z.dlist.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 1622 31
2019-12-11 14:42:38 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 4747 776 31
2019-12-11 14:42:38 W3SVC31 www 10.0.1.30 GET /test/duplicati-20191211T144237Z.dlist.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7378 758 15
2019-12-11 14:42:48 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1138 810 62
2019-12-11 14:42:49 W3SVC31 www 10.0.1.30 GET /test/duplicati-20191211T144237Z.dlist.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7378 758 15
2019-12-11 14:42:59 W3SVC31 www 10.0.1.30 GET /test/duplicati-20191211T144237Z.dlist.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7378 758 15
2019-12-11 14:43:09 W3SVC31 www 10.0.1.30 GET /test/duplicati-20191211T144237Z.dlist.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7378 758 31
2019-12-11 14:43:19 W3SVC31 www 10.0.1.30 GET /test/duplicati-20191211T144237Z.dlist.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7378 758 15
2019-12-11 14:43:19 W3SVC31 www 10.0.1.30 GET /test/duplicati-i4e8802f228a44e619d9b36c9edfb69f6.dindex.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 31
2019-12-11 14:43:30 W3SVC31 www 10.0.1.30 GET /test/duplicati-i4e8802f228a44e619d9b36c9edfb69f6.dindex.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 31
2019-12-11 14:43:40 W3SVC31 www 10.0.1.30 GET /test/duplicati-i4e8802f228a44e619d9b36c9edfb69f6.dindex.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 31
2019-12-11 14:43:50 W3SVC31 www 10.0.1.30 GET /test/duplicati-i4e8802f228a44e619d9b36c9edfb69f6.dindex.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 31
2019-12-11 14:44:00 W3SVC31 www 10.0.1.30 PROPFIND / - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1130 806 62
2019-12-11 14:44:00 W3SVC31 www 10.0.1.30 GET /test/duplicati-i4e8802f228a44e619d9b36c9edfb69f6.dindex.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 15
2019-12-11 14:44:00 W3SVC31 www 10.0.1.30 GET /test/duplicati-bb6a1f62c08da4d75b10412daa7425ce1.dblock.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 31
2019-12-11 14:44:10 W3SVC31 www 10.0.1.30 GET /test/duplicati-bb6a1f62c08da4d75b10412daa7425ce1.dblock.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 15
2019-12-11 14:44:20 W3SVC31 www 10.0.1.30 GET /test/duplicati-bb6a1f62c08da4d75b10412daa7425ce1.dblock.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 15
2019-12-11 14:44:23 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1138 175 62
2019-12-11 14:44:25 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 4722 175 31
2019-12-11 14:44:25 W3SVC31 www 10.0.1.30 PROPFIND /test/desktop.ini - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 404 0 2 5232 187 31
2019-12-11 14:44:29 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 4722 810 31
2019-12-11 14:44:30 W3SVC31 www 10.0.1.30 GET /test/duplicati-bb6a1f62c08da4d75b10412daa7425ce1.dblock.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 31
2019-12-11 14:44:40 W3SVC31 www 10.0.1.30 GET /test/duplicati-bb6a1f62c08da4d75b10412daa7425ce1.dblock.zip.aes - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 404 3 50 7414 776 15
2019-12-11 14:44:51 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 4722 175 46
2019-12-11 14:44:58 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 4722 175 31
2019-12-11 14:45:00 W3SVC31 www 10.0.1.30 PROPFIND / - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 1130 171 62
2019-12-11 14:45:02 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 4722 175 31
2019-12-11 14:45:20 W3SVC31 www 10.0.1.30 PROPFIND /test - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Microsoft-WebDAV-MiniRedir/10.0.18363 - - www.bucher-allround.ch 207 0 0 4722 175 31

A few files are there

2019-12-11 15_48_56-test

No Error 413.

Log from Duplicati

I think with this i’ve reproduced the problem from yesterday.

Questions:

  • Why is my username/password ignored during the WebDAV wizzard?
  • Why happens this error message?

Any help appreciated.

Anonymous is not allowed to use WebDAV

No problem. I can can increase the size on IIS up 4,5 GB per File.

This is what is not working, when anonymous authentication is enabled. If anonymous authentication is disabled, the connection test is successfull: But i can not leave it like this, additionally it does not work during the backup: Some put errors (and not Error 413). See post above.

In my testing, it isn’t. But if authentication fails IIS will fall back to anonymous (if it is allowed). That isn’t Duplicati requesting anonymous access, but rather IIS falling back to anonymous I believe.

But maybe it was at some point during your testing?

That’s quite large for dblock sizes. 50MB works fine for most people, and remember it doesn’t mean you can’t back up source files that are >50MB. Source files are broken into chunks and repackaged before uploading. Even if block size is 50MB you can still back up files that are gigabytes in size.

See Choosing Sizes in Duplicati • Duplicati

Let’s make sure we are talking about the same thing. ‘Anonymous Authentication’ piece of IIS can stay enabled, and should be for most web servers. I was talking about Anonymous WebDAV authoring - I would not leave that enabled, and from your screen shot it doesn’t appear to be.

Remember with IIS you can enable/disable options and tune them at almost any level: Site level or various directory levels. Make sure you are only tuning them in the right spots and that you’re consistent about it.

In my testing, it isn’t. But if authentication fails IIS will fall back to anonymous (if it is allowed). That isn’t Duplicati requesting anonymous access, but rather IIS falling back to anonymous I believe.

Okay. I can’t see such a behaviour when using a net use command to mount the webdav directory, but i don’t know - maybe.

But maybe it was at some point during your testing?

Good to keep this in mind: But i can exclude that. I publish the authoring rules by using a script. No such config was rolled out.

That’s quite large for dblock sizes. 50MB works fine for most people, and remember it doesn’t mean you can’t back up source files that are >50MB. Source files are broken into chunks and repackaged before uploading. Even if block size is 50MB you can still back up files that are gigabytes in size.

I understand that: But if someone is using a WebDAV directory, he probably want to use generally bigger files. I have to change it anyways.

Let’s make sure we are talking about the same thing. ‘Anonymous Authentication’ piece of IIS can stay enabled, and should be for most web servers. I was talking about Anonymous WebDAV authoring - I would not leave that enabled, and from your screen shot it doesn’t appear to be.

Okay, the authoring was never enabled for anonymous users. I always talked about the anonymous authentication of IIS itself. When disabling it, the username of the WebDAV client becomes visible in the logfile, otherwise not. I can swear i did not change the setting yesterday but became unsure after i saw it. I remember, i had similar issues that went away without config change on the server side (i thought).

Remember with IIS you can enable/disable options and tune them at almost any level: Site level or various directory levels. Make sure you are only tuning them in the right spots and that you’re consistent about it.

I’m doing that. I only work on site level. I publish configs only by command line. Validate every change. I’m normaly very precise at it.

Here is something strange. Please take into account, that Duplicati is not really working as expected.

I will proceed to test other tools and the previous Duplicati version.

I would like to thank you a lot for your time. In case you are one of the dev’s @duplicati, i will be always here to help out with closer work together, in case your time allows and/or interested.

Cheers

Ok, good sounds like you are testing very carefully. And if you want to use larger dblocks it’s certainly up to you!

It is mysterious why it is not working for you yet. I was able to get it working consistently by doing what I outlined in my earlier message, so I’m confident it can also work for you. We just have to figure out what is different about your environment.

I’m a fan and user of Duplicati that occasionally makes minor code contributions, and I try to help out in these forums.

If you have the time and inclination, maybe you can set up a blank test Windows 2016 VM and do the steps I mentioned in my second post. If anything it will serve as confirmation that Duplicati does work against an IIS WebDAV server. Maybe it will help you figure out what is different about your production environment.

Ok.

I have a blank testsystem ready. I will do additional test with it, i’ll let you know the outcome.

For now, i just successfully uploaded a 200MB file via WebDAV mapped drive, the limitation was previously on 30MB. I have this adressed for now.

Keep you updated.

Same as yesterday, no config change (except the bigger file size allowed)… and the connection test is successfull. Haleluja…

Proceeding…

By the way - NET USE can also utilize Digest or Windows Authentication methods from what I recall. Duplicati cannot use them I believe.

Good luck with your tests!

Hey, it’s working now…

The only two changes was:

C:\Windows\System32\inetsrv\appcmd.exe set config "My WebSite" /section:requestfiltering /requestlimits.maxallowedcontentlength:4294967295"

Default: 30000000

C:\Windows\System32\inetsrv\appcmd.exe set config "My WebSite" /section:system.web/httpRuntime /maxRequestLength:512000

Default: 4096

Here was the connection test:

2019-12-11 15:30:12 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-56-78.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 1157 776 15

Here the backup itself:

2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 1157 776 15
2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 PUT /test/duplicati-b1177fc17aafc4338881f769cee78d8de.dblock.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 1353 31
2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 PUT /test/duplicati-id39bd712b35643ff99294ed5334a5394.dindex.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 1422 46
2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 PUT /test/duplicati-20191211T153328Z.dlist.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 1309 31
2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 3909 776 31
2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 GET /test/duplicati-20191211T153328Z.dlist.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 200 0 0 905 754 15
2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 GET /test/duplicati-id39bd712b35643ff99294ed5334a5394.dindex.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 200 0 0 1000 772 15
2019-12-11 15:33:29 W3SVC31 www 10.0.1.30 GET /test/duplicati-b1177fc17aafc4338881f769cee78d8de.dblock.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 200 0 0 931 772 15
2019-12-11 15:34:37 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 3903 776 35
2019-12-11 15:34:51 W3SVC31 www 10.0.1.30 PUT /test/duplicati-b35ed11e201f1430da14f156f03342bf7.dblock.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 21791828 8345
2019-12-11 15:34:51 W3SVC31 www 10.0.1.30 PUT /test/duplicati-id2ddc32417ba4244994bc7bbee13de6b.dindex.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 165845 109
2019-12-11 15:34:51 W3SVC31 www 10.0.1.30 PUT /test/duplicati-20191211T153436Z.dlist.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 201 0 0 320 186677 203
2019-12-11 15:34:51 W3SVC31 www 10.0.1.30 PROPFIND /test/ - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 207 0 0 6663 776 15
2019-12-11 15:34:51 W3SVC31 www 10.0.1.30 GET /test/duplicati-20191211T153436Z.dlist.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 200 0 0 186591 754 78
2019-12-11 15:34:51 W3SVC31 www 10.0.1.30 GET /test/duplicati-id2ddc32417ba4244994bc7bbee13de6b.dindex.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 200 0 0 165713 772 93
2019-12-11 15:34:55 W3SVC31 www 10.0.1.30 GET /test/duplicati-b35ed11e201f1430da14f156f03342bf7.dblock.zip - 443 WWW\wd.bucher-allround 12-34-45-67.dynamic.hispeed.ch HTTP/1.1 Duplicati+WEBDAV+Client+v2.0.4.23 - - www.bucher-allround.ch 200 0 0 21829976 772 2937

I will repeat the same steps on another client again. Let you know the outcome.

Great - thanks for sharing your results, it may help others out as well.