Ubuntu 16.04.6 LTS od4b Cannot send a content-body with this verb-type

Trying to backup files from Ubuntu 16.04.6 LTS to Microsoft One Drive for Business.

mono --version
Mono JIT compiler version 5.20.1.19 (tarball Thu Apr 11 09:09:21 UTC 2019)

Duplicati - 2.0.4.18_canary_2019-05-12

Backups stacktrace:

Log data:
2019-06-06 03:40:15 -05 - [Error-Duplicati.Library.Main.Operation.TestHandler-FailedToProcessFile]: Failed to process file duplicati-20190605T212025Z.dlist.zip.aes
System.Net.WebException: Cannot send a content-body with this verb-type. —> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in :0
at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func2[T,TResult] func) [0x0000d] in <e8eb3d7a311640f484845e45cbec8973>:0 at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in <e8eb3d7a311640f484845e45cbec8973>:0 at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <e8eb3d7a311640f484845e45cbec8973>:0 --- End of inner exception stack trace --- at Duplicati.Library.Main.BackendManager.GetForTesting (System.String remotename, System.Int64 size, System.String hash) [0x00065] in <04aa602f833345c185c07f867e855751>:0 at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x0042f] in <04aa602f833345c185c07f867e855751>:0 2019-06-06 03:40:59 -05 - [Error-Duplicati.Library.Main.Operation.TestHandler-FailedToProcessFile]: Failed to process file duplicati-i15e92f0e7bdb4e66ac4769a760ad7098.dindex.zip.aes System.Net.WebException: Cannot send a content-body with this verb-type. ---> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type. at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in <e8eb3d7a311640f484845e45cbec8973>:0 at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func2[T,TResult] func) [0x0000d] in :0
at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in :0
at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in :0
— End of inner exception stack trace —
at Duplicati.Library.Main.BackendManager.GetForTesting (System.String remotename, System.Int64 size, System.String hash) [0x00065] in <04aa602f833345c185c07f867e855751>:0
at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x0042f] in <04aa602f833345c185c07f867e855751>:0
2019-06-06 03:41:44 -05 - [Error-Duplicati.Library.Main.Operation.TestHandler-FailedToProcessFile]: Failed to process file duplicati-bea7903b00f7c4889a730cfff7b5b4be7.dblock.zip.aes
System.Net.WebException: Cannot send a content-body with this verb-type. —> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in :0
at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func`2[T,TResult] func) [0x0000d] in :0
at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in :0
at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in :0
— End of inner exception stack trace —
at Duplicati.Library.Main.BackendManager.GetForTesting (System.String remotename, System.Int64 size, System.String hash) [0x00065] in <04aa602f833345c185c07f867e855751>:0
at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x0042f] in <04aa602f833345c185c07f867e855751>:0

Restore stacktrace:

Log data:
2019-06-06 08:24:51 -05 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: “duplicati-b990ca51e7d824441a11c5444a1b67885.dblock.zip.aes”, message: Cannot send a content-body with this verb-type.
System.Net.WebException: Cannot send a content-body with this verb-type. —> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in :0
at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func`2[T,TResult] func) [0x0000d] in :0
at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in :0
at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in :0
— End of inner exception stack trace —
at Duplicati.Library.Main.AsyncDownloader+AsyncDownloaderEnumerator+AsyncDownloadedFile.get_TempFile () [0x00008] in <04aa602f833345c185c07f867e855751>:0
at Duplicati.Library.Main.Operation.RestoreHandler.DoRun (Duplicati.Library.Main.Database.LocalDatabase dbparent, Duplicati.Library.Utility.IFilter filter, Duplicati.Library.Main.RestoreResults result) [0x003bb] in <04aa602f833345c185c07f867e855751>:0

Hello,

I experience the same issue but with QNAP (Duplicati App). I deleted the old job, recreated and still this problem. Below the Machine/OS/Versions and the error messages. Please advise. Thanks.

** APIVersion : 1*
*    * PasswordPlaceholder : ***********
*    * ServerVersion : 2.0.4.18*
*    * ServerVersionName : - 2.0.4.18_canary_2019-05-12*
*    * ServerVersionType : Canary*
*    * StartedBy : Server*
*    * BaseVersionName : 2.0.4.18_canary_2019-05-12*
*    * DefaultUpdateChannel : Canary*
*    * DefaultUsageReportLevel : Information*
*    * ServerTime : 2019-06-07T14:13:32.296679+02:00*
*    * OSType : Linux*
*    * DirectorySeparator : /*
*    * PathSeparator : :*
*    * CaseSensitiveFilesystem : true*
*    * MonoVersion : 5.20.1.19*
*    * MachineName : qnas*
*    * UserName : admin*
*    * NewLine :*
*    * CLRVersion : 4.0.30319.42000*
*    * CLROSInfo : {"Platform":"Unix","ServicePack":"","Version":"4.2.8.0","VersionString":"Unix 4.2.8.0"}* 

and the error message:

2019-06-07 14:16:35 +02 - [Error-Duplicati.Library.Main.Operation.TestHandler-FailedToProcessFile]: Failed to process file duplicati-20190605T165247Z.dlist.zip.aes
System.Net.WebException: Cannot send a content-body with this verb-type. ---> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
  at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func`2[T,TResult] func) [0x0000d] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <8c93b8d28a4842e5ba71edc572c989c3>:0
   --- End of inner exception stack trace ---
  at Duplicati.Library.Main.BackendManager.GetForTesting (System.String remotename, System.Int64 size, System.String hash) [0x00065] in <04aa602f833345c185c07f867e855751>:0
  at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x0042f] in <04aa602f833345c185c07f867e855751>:0
2019-06-07 14:17:25 +02 - [Error-Duplicati.Library.Main.Operation.TestHandler-FailedToProcessFile]: Failed to process file duplicati-id46fca41afa844e5b8e9aa749f96457e.dindex.zip.aes
System.Net.WebException: Cannot send a content-body with this verb-type. ---> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
  at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func`2[T,TResult] func) [0x0000d] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <8c93b8d28a4842e5ba71edc572c989c3>:0
   --- End of inner exception stack trace ---
  at Duplicati.Library.Main.BackendManager.GetForTesting (System.String remotename, System.Int64 size, System.String hash) [0x00065] in <04aa602f833345c185c07f867e855751>:0
  at Duplicati.Library.Main.Operation.TestHandler.DoRun (System.Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) [0x0042f] in <04aa602f833345c185c07f867e855751>:0
2019-06-07 14:18:15 +02 - [Error-Duplicati.Library.Main.Operation.TestHandler-FailedToProcessFile]: Failed to process file duplicati-b2a4f8a9c6d75451cb9ea92bba01dc86c.dblock.zip.aes
System.Net.WebException: Cannot send a content-body with this verb-type. ---> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
  at System.Net.HttpWebRequest.MyGetRequestStreamAsync (System.Threading.CancellationToken cancellationToken) [0x00070] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.RunWithTimeout[T] (System.Func`2[T,TResult] func) [0x0000d] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.GetRequestStreamAsync () [0x00000] in <8c93b8d28a4842e5ba71edc572c989c3>:0
  at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <8c93b8d28a4842e5ba71edc572c989c3>:0
   --- End of inner exception stack trace ---

I remember this error. It was caused by an upgrade to the http libraries in Mono. The fix is something with setting the content-length header or not opening the request stream I think.

Hi Ken,

Do you have by any chance the link for that fix? It will be great. Thank you.

Ed

No. I just looked at the code, and it is all wrapped in the Microsoft.SharePoint.Client code so we cannot fix it from the Duplicati side (unless there is some plug that happens to be in just the right place).

But, it is possible that we can update the libraries and maybe Microsoft has fixed it for us.

The doGet function is what ultimately throws the exception:

FWIW, just now tried 2.0.4.19_canary_2019-06-17 with same results.

Have punted to using B2 Cloud Storage for my Linux machines in interim.