I can open the webdav page in browser from a Linux client.
When I test the connection from the local server with an existing profile in Duplicati with wrong password I get “Failed to connect: The remote server returned an error: (401) Unauthorized.”
When I test the connection with a new profile the test is successful
–> connection to WebDAV server is working and information are being exchanged between local server and pCloud server
But: when I use correct password with an existing profile I get “Failed to connect: Expecting chunk trailer.”
Duplicati Version: 2.0.4.23_beta_2019-07-14
Below the part in syslog of the test with correct password:
Dec 24 08:36:36 odroid duplicati-server[1543]: System.Net.WebException: Error getting response stream (ReadDoneAsync2): ReceiveFailure
Dec 24 08:36:36 odroid duplicati-server[1543]: at System.Net.WebResponseStream.InitReadAsync (System.Threading.CancellationToken cancellationToken) [0x000f3] in <dfe42095fd31410e95d8021f755c3557>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at System.Net.WebOperation.Run () [0x001d9] in <dfe42095fd31410e95d8021f755c3557>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <dfe42095fd31410e95d8021f755c3557>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <dfe42095fd31410e95d8021f755c3557>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Library.Utility.AsyncHttpRequest+AsyncWrapper.GetResponseOrStream () [0x0004d] in <2b2660cd66234060ac508681b40577e7>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Library.Utility.AsyncHttpRequest.GetResponse () [0x00044] in <2b2660cd66234060ac508681b40577e7>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Library.Backend.WEBDAV.ListWithouExceptionCatch () [0x0007c] in <d6379bd8e6564261a833b24b303b9869>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Library.Backend.WEBDAV.List () [0x000a5] in <d6379bd8e6564261a833b24b303b9869>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Library.Backend.WEBDAV.Test () [0x00000] in <d6379bd8e6564261a833b24b303b9869>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.TestConnection (System.String url, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x000b7] in <be73c239d77d4180b5147067144fc237>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x00091] in <be73c239d77d4180b5147067144fc237>:0
Dec 24 08:36:36 odroid duplicati-server[1543]: at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x00280] in <be73c239d77d4180b5147067144fc237>:0
Webdav error: unexpected EOF reading trailer posted on the Duplicacy (different backup program) forum reported on Dec 23 that pCloud began failing in a similar way. Word differences in the exact message are likely from the different libraries used. Duplicati uses Mono’s for its C# code, whereas Duplicacy uses a library written in Go. There are also some hints there on how to work with pCloud support if you wish to try your luck with that… Perhaps a mono update would help, but I doubt that. Results on Windows might also be interesting. It looks, though, like pCloud has closed on us early:
Thanks for that test. I wonder if pCloud has somehow lost the ability to do listings of large directories? This isn’t unheard of, and somewhat painful workarounds exist. Use fewer files, but make each larger.
What difference is there in the two profiles besides new versus old? Is new empty, and old quite full? Testing could be done of trying to make the new one look more and more like the old - until it breaks.
I wonder if the big directory listing could be made to fail in some WebDAV client that’s not a backup? Some very popular WebDAV client (if it exists) might get a better reaction if you ask pCloud support.
The “chunk” references probably refer to breaking the total response into chunks as described here, probably described in more user-friendly terms elsewhere if you want to go look. I’m not an expert…