Error in periodic export 3.5 RC 3 Build

110 views
Skip to first unread message

Nick

unread,
Oct 16, 2016, 12:38:46 PM10/16/16
to RavenDB - 2nd generation document database
Hi I have set up periodic export to write to an Azure container but am getting the following error, any ideas?

Raven.Abstractions.Connection.ErrorResponseException: Status code: BadRequest <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidHeaderValue</Code><Message>The value for one of the HTTP headers is not in the correct format. RequestId:cedaafb3-0001-0098-4bcb-27b0a9000000 Time:2016-10-16T16:34:21.3670135Z</Message><HeaderName>x-ms-version</HeaderName><HeaderValue>2011-08-18</HeaderValue></Error> at Raven.Database.Client.Azure.RavenAzureClient.<PutContainer>d__9.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Client\Azure\RavenAzureClient.cs:line 75 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Database.Bundles.PeriodicExports.PeriodicExportTask.<UploadToAzure>d__39.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Bundles\PeriodicExports\PeriodicBackupTask.cs:line 557 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Database.Bundles.PeriodicExports.PeriodicExportTask.<UploadToServer>d__36.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Bundles\PeriodicExports\PeriodicBackupTask.cs:line 506 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Database.Bundles.PeriodicExports.PeriodicExportTask.<>c__DisplayClass34_0.<<TimerCallback>b__0>d.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Bundles\PeriodicExports\PeriodicBackupTask.cs:line 383

Oren Eini (Ayende Rahien)

unread,
Oct 18, 2016, 3:24:47 AM10/18/16
to ravendb

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Sun, Oct 16, 2016 at 7:38 PM, Nick <nic...@gmail.com> wrote:
Hi I have set up periodic export to write to an Azure container but am getting the following error, any ideas?

Raven.Abstractions.Connection.ErrorResponseException: Status code: BadRequest <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidHeaderValue</Code><Message>The value for one of the HTTP headers is not in the correct format. RequestId:cedaafb3-0001-0098-4bcb-27b0a9000000 Time:2016-10-16T16:34:21.3670135Z</Message><HeaderName>x-ms-version</HeaderName><HeaderValue>2011-08-18</HeaderValue></Error> at Raven.Database.Client.Azure.RavenAzureClient.<PutContainer>d__9.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Client\Azure\RavenAzureClient.cs:line 75 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Database.Bundles.PeriodicExports.PeriodicExportTask.<UploadToAzure>d__39.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Bundles\PeriodicExports\PeriodicBackupTask.cs:line 557 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Database.Bundles.PeriodicExports.PeriodicExportTask.<UploadToServer>d__36.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Bundles\PeriodicExports\PeriodicBackupTask.cs:line 506 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Database.Bundles.PeriodicExports.PeriodicExportTask.<>c__DisplayClass34_0.<<TimerCallback>b__0>d.MoveNext() in C:\Builds\RavenDB-3.5-RC\Raven.Database\Bundles\PeriodicExports\PeriodicBackupTask.cs:line 383

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tobias Zürcher

unread,
Sep 13, 2017, 10:39:59 AM9/13/17
to RavenDB - 2nd generation document database
Hi,
i have the same issue. I don't understand how your link with the "right auth values" should help? In RavenDB Mgmt Studio, there are no urls, just the name of container, folder name, azure storage account and azure storage key. So if i do setup an SAS token, then i'd have to add this to to the url, but there is no url?

Am I missing something? Would appreciate an improved documentation with a full example that actually works. I did use this feature in my previous projects with success.

Tobi
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Tobias Zürcher

unread,
Sep 13, 2017, 10:45:56 AM9/13/17
to RavenDB - 2nd generation document database
According to https://github.com/Azure/azure-sdk-for-python/issues/288#issuecomment-74399273 you have to set x-ms-version from "2011-08-18" to "2014-02-14" in https://github.com/ravendb/ravendb/blob/v3.5/Raven.Database/Client/Azure/RavenAzureClient.cs#L33

But there might be breaking changes in the Azure Blob Storage Client API.... otherwise this change doesn't make any sense.

tobi

Oren Eini (Ayende Rahien)

unread,
Sep 14, 2017, 12:14:19 AM9/14/17
to ravendb
It's possible, we'll investigate this, but I think we'll only be able to get to it next week
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Sep 14, 2017, 12:15:16 AM9/14/17
to ravendb

Tobias Zürcher

unread,
Sep 14, 2017, 8:49:20 AM9/14/17
to RavenDB - 2nd generation document database
thank you ayende

Oren Eini (Ayende Rahien)

unread,
Sep 17, 2017, 4:34:58 AM9/17/17
to ravendb
Can you check if you are trying to export to a contains with period in its name?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Tobias Zürcher

unread,
Feb 16, 2018, 9:49:47 AM2/16/18
to RavenDB - 2nd generation document database
Shit didn't get a notification for this.

just wanted to setup the periodic export again, still same issue. we are on 35202 which is the last 3.5 version i can see.

>> Can you check if you are trying to export to a contains with period in its name?
i'm not 100% sure if I understand you properly. 

container name is only [a-z]*
FolderName is empty
azure storage account is only [a-z]*

does this help?

Oren Eini (Ayende Rahien)

unread,
Feb 18, 2018, 3:07:30 PM2/18/18
to ravendb
What is the size of the database / periodic export in question?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Tobias Zürcher

unread,
Mar 5, 2018, 3:27:51 AM3/5/18
to RavenDB - 2nd generation document database
really small, about 1.5mb

Grisha Kotler

unread,
Mar 5, 2018, 12:11:39 PM3/5/18
to rav...@googlegroups.com
Can you try with v4.0? (I sent you a license)

We updated the Azure storage version there.
I think that this is caused by the container name.

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Grisha Kotler l RavenDB Core Team Developer Mobile: +972-54-586-8647

RavenDB paving the way to "Data Made Simplehttp://ravendb.net/


To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Tobias Zürcher

unread,
Mar 7, 2018, 4:24:17 AM3/7/18
to RavenDB - 2nd generation document database
Hey Grisha,
thank you! I will try it out with v4 and answer.

We planned to upgrade our 3.5 to v4, but it will take some time. Can we expect a fix for 3.5? 

Tobi

Oren Eini (Ayende Rahien)

unread,
Mar 7, 2018, 8:20:15 AM3/7/18
to ravendb
I believe we fixed that in 3.5 as well.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages