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.

Hi,

same problem here.

Duplicati - 2.0.5.107_canary_2020-05-26

I’m having the same error when either backing up or verifying a backup. It’s always three files, and an error each. For some context, I’m using OneDrive for Business as a destination, and 50MB containers. The only thing I’ve tried was setting http-operation-timeout to 5 minutes, but that did not change anything, at least nothing noticeable. Duplicati is running on a Proxmox host, aka Debian Stretch. I’m using the latest beta release (2.0.5.1_beta_2020-01-18).

Error Log (taken from web UI)
{
  "MainOperation": "Test",
  "VerificationsActualLength": 3,
  "Verifications": [
    {
      "Key": "duplicati-20200710T190002Z.dlist.zip.aes",
      "Value": [
        {
          "Key": "Error",
          "Value": "Cannot send a content-body with this verb-type."
        }
      ]
    },
    {
      "Key": "duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes",
      "Value": [
        {
          "Key": "Error",
          "Value": "Cannot send a content-body with this verb-type."
        }
      ]
    },
    {
      "Key": "duplicati-bc7c0ad5455d04d46a359f5f2ae7b3ec8.dblock.zip.aes",
      "Value": [
        {
          "Key": "Error",
          "Value": "Cannot send a content-body with this verb-type."
        }
      ]
    }
  ],
  "ParsedResult": "Error",
  "Version": "2.0.5.1 (2.0.5.1_beta_2020-01-18)",
  "EndTime": "2020-07-11T04:27:36.510315Z",
  "BeginTime": "2020-07-11T04:24:30.612597Z",
  "Duration": "00:03:05.8977180",
  "MessagesActualLength": 33,
  "WarningsActualLength": 0,
  "ErrorsActualLength": 3,
  "Messages": [
    "2020-07-11 12:24:30 +08 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Test has started",
    "2020-07-11 12:24:30 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()",
    "2020-07-11 12:24:48 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  (943 bytes)",
    "2020-07-11 12:24:48 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:24:48 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:24:58 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:02 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:12 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:15 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:25 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:28 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:38 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:42 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Failed: duplicati-20200710T190002Z.dlist.zip.aes (4.43 KB)",
    "2020-07-11 12:25:42 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes (18.03 KB)",
    "2020-07-11 12:25:44 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes (18.03 KB)",
    "2020-07-11 12:25:54 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes (18.03 KB)",
    "2020-07-11 12:25:57 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes (18.03 KB)",
    "2020-07-11 12:26:07 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes (18.03 KB)",
    "2020-07-11 12:26:10 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes (18.03 KB)",
    "2020-07-11 12:26:20 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes (18.03 KB)"
  ],
  "Warnings": [],
  "Errors": [
    "2020-07-11 12:25:42 +08 - [Error-Duplicati.Library.Main.Operation.TestHandler-RemoteFileProcessingFailed]: Failed to process file duplicati-20200710T190002Z.dlist.zip.aes",
    "2020-07-11 12:26:36 +08 - [Error-Duplicati.Library.Main.Operation.TestHandler-RemoteFileProcessingFailed]: Failed to process file duplicati-id2b6937b01de47759802882cdc5dcfa0.dindex.zip.aes",
    "2020-07-11 12:27:36 +08 - [Error-Duplicati.Library.Main.Operation.TestHandler-RemoteFileProcessingFailed]: Failed to process file duplicati-bc7c0ad5455d04d46a359f5f2ae7b3ec8.dblock.zip.aes"
  ],
  "BackendStatistics": {
    "RemoteCalls": 16,
    "BytesUploaded": 0,
    "BytesDownloaded": 0,
    "FilesUploaded": 0,
    "FilesDownloaded": 0,
    "FilesDeleted": 0,
    "FoldersCreated": 0,
    "RetryAttempts": 12,
    "UnknownFileSize": 0,
    "UnknownFileCount": 0,
    "KnownFileCount": 943,
    "KnownFileSize": 24669950035,
    "LastBackupDate": "2020-07-11T03:00:02+08:00",
    "BackupListCount": 1,
    "TotalQuotaSpace": 0,
    "FreeQuotaSpace": 0,
    "AssignedQuotaSpace": -1,
    "ReportedQuotaError": false,
    "ReportedQuotaWarning": false,
    "MainOperation": "Test",
    "ParsedResult": "Success",
    "Version": "2.0.5.1 (2.0.5.1_beta_2020-01-18)",
    "EndTime": "0001-01-01T00:00:00",
    "BeginTime": "2020-07-11T04:24:30.6126Z",
    "Duration": "00:00:00",
    "MessagesActualLength": 0,
    "WarningsActualLength": 0,
    "ErrorsActualLength": 0,
    "Messages": null,
    "Warnings": null,
    "Errors": null
  }
}
1 Like

Presumably the ones posted in Verifications section. Three is just the default of 1 set, configurable by –backup-test-samples if you’d like to see if you can dial that up and down. For context, you can see these

Verifying backend files (note backup job has a “Verify files” button that might error without doing a backup)
The TEST command

Presumably referring to the old libraries below. There was a libs update last year. I guess it didn’t do these.

https://github.com/duplicati/duplicati/tree/master/thirdparty/SharePoint.CSOM

It’s probably good to see a Canary user because if the libraries do get updated, I’m not sure whether the developer doing it has OD4B to test with. It’s too bad we don’t have nightly builds – that’d be even better.

Backend OneDrive for Business Errors - “Cannot send a content-body with this verb-type.” #4192
got the “same problem” post, but didn’t point here for possible solution. This mention will create a pointer, however a personal note on the GitHub issue might be good, if you are willing to help test a library update.

Work in openmediavault get error “Cannot send a content-body with this verb-type” #3497
says Rclone was a workaround for OD4B access. Possibly another workaround would be OneDrive v2.

I’m seeing exactly the same issue on 2.0.5.1_beta_2020-01-18.

OneDrive v2 API is not available for my Onedrive account.

rlcone doesn’t work to restore a backup made via Onedrive. I’m going to try to use rclone to make the backup.

Presumably this is not OneDrive Personal. Some sort of business version? Can you describe what it is?

Original post was Linux. Is yours too? I was disappointed to see that Microsoft .dll didn’t work at one time:

Restoring from OneDrive for Business #2475 (not a dup of this exact issue, but has some useful history)

and a later comment also talked about the Microsoft library at the time pulling in Linux-incompatible libs…

So I guess this update would have to be done carefully, being sure to make sure that Linux gets no worse.
There are a number of Canary users in this topic who possibly could help with the testing if that’s needed.

Discussion then heads to the newer Microsoft Graph versions. If OneDrive v2 won’t work, there are more.
OneDrive is a brand, with varying technologies underneath aimed at different users, and I’m not an expert.
Original post spoke of OD4B, which I think has SharePoint below, but Microsoft 365 Business might have.

Are you in a restore-is-needed situation or an initial setup situation? I’m not sure how you ran a continuing backup without download capability. If it was the initial backup, then it might just have done uploads so far.