Export of file system throws SmugglerExportException: Non-negative number required

74 views
Skip to first unread message

Media Lab

unread,
Nov 29, 2016, 3:29:46 PM11/29/16
to RavenDB - 2nd generation document database
On our dev box, I have a FS that only has 7 files (plus versions).

When I click on Export, it starts then immediately throws

Raven.Abstractions.Exceptions.SmugglerExportException: Non-negative number required.
Parameter name: length ---> System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: length
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Array.Copy(Array sourceArray, Int64 sourceIndex, Array destinationArray, Int64 destinationIndex, Int64 length)
   at Raven.Database.FileSystem.Util.StorageStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Stream.<>c.<BeginReadInternal>b__39_0(Object )
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- 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 System.IO.Stream.EndRead(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
--- 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 System.IO.Stream.<CopyToAsyncInternal>d__27.MoveNext()
--- 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.Abstractions.Smuggler.SmugglerFilesApiBase.<ExportFiles>d__16.MoveNext()
   --- End of inner exception stack trace ---
   at Raven.Abstractions.Smuggler.SmugglerFilesApiBase.<ExportData>d__15.MoveNext()
--- 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.FileSystem.Controllers.FsStudioTasksController.<>c__DisplayClass2_0.<<ExportFilesystem>b__0>d.MoveNext()

I tried running smuggler from the command line as such

Raven.Smuggler between http://dev-t-app1:8889/ http://dev-p-app1:8889/ --disable-versioning-during-import --filesystem=Api_Documentation --filesystem2=Api_Documentation

And it tells me
Exporting Files
Done with reading configurations, total: 3
Streaming documents from 00000000-0000-0000-0000-000000000000, batch size 16384
Got Exception during smuggler export. Exception: There is a mismatch between the size reported in the RavenFS-Size header and the data read server side. Declared 35753 bytes, but got 0.
Done with reading files, total: 7, lastEtag: 00000000-0000-0001-0000-00000000001B
There is a mismatch between the size reported in the RavenFS-Size header and the data read server side. Declared 35753 bytes, but got 0

I assume both errors have something to do with another. Technically... it's 7 files. I can do this manually, but eventually this will grow and we'll need to smuggle between various other environments.


Grisha Kotler

unread,
Nov 29, 2016, 3:48:12 PM11/29/16
to rav...@googlegroups.com
Hi,

What build are you using?

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

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

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

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


--
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.

Media Lab

unread,
Nov 29, 2016, 3:49:30 PM11/29/16
to RavenDB - 2nd generation document database
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Grisha Kotler

unread,
Nov 29, 2016, 4:12:41 PM11/29/16
to rav...@googlegroups.com
There was a fix for RavenFS export. Please try with the latest v3.5 build.

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

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

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

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.

Media Lab

unread,
Nov 29, 2016, 4:17:58 PM11/29/16
to RavenDB - 2nd generation document database
Upgraded the test box, exact same error

Raven.Abstractions.Exceptions.SmugglerExportException: Non-negative number required.
Parameter name: length ---> System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: length
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Array.Copy(Array sourceArray, Int64 sourceIndex, Array destinationArray, Int64 destinationIndex, Int64 length)
   at Raven.Database.FileSystem.Util.StorageStream.ReadUsingExternalTempBuffer(Byte[] buffer, Int32 offset, Int32 count, Byte[] temp)
   at Raven.Database.FileSystem.Util.StorageStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Stream.<>c.<BeginReadInternal>b__39_0(Object )
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- 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 System.IO.Stream.EndRead(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
--- 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 System.IO.Stream.<CopyToAsyncInternal>d__27.MoveNext()
--- 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.Abstractions.Smuggler.SmugglerFilesApiBase.<ExportFilesLegacy>d__16.MoveNext()
   --- End of inner exception stack trace ---
   at Raven.Abstractions.Smuggler.SmugglerFilesApiBase.<ExportData>d__15.MoveNext()
--- 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.FileSystem.Controllers.FsStudioTasksController.<>c__DisplayClass2_0.<<ExportFilesystem>b__0>d.MoveNext()

Build 35180

Grisha Kotler

unread,
Nov 29, 2016, 4:19:39 PM11/29/16
to rav...@googlegroups.com
Can you send the backup of this FS to sup...@ravendb.net?

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

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

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

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


--

Media Lab

unread,
Nov 29, 2016, 4:25:34 PM11/29/16
to RavenDB - 2nd generation document database
Wish I could! That throws an error too

[2016-11-29T21:21:09.1662030Z] Informational: Started backup process. Backing up data to directory = 'c:\ravenbackups'
[2016-11-29T21:21:09.1974542Z] Error: Failed to complete backup because: Denying request to perform a full backup to an existing backup folder. Try doing an incremental backup instead.

Tried Incremental, & it tells me 
Failed to create backup! System.InvalidOperationException: 
In order to run incremental backups using Esent you must have circular logging disabled

at Raven.Database.FileSystem.Controllers.AdminFileSystemController.<Backup>d__11.MoveNext()
--- 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 System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()
--- 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 System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- 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 System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- 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 System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()

Although smuggling via the command line worked fine. Go figure.

Grisha Kotler

unread,
Nov 29, 2016, 4:47:45 PM11/29/16
to rav...@googlegroups.com
Can you send us the export from the smuggler?

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

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

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

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


--

Oren Eini (Ayende Rahien)

unread,
Nov 30, 2016, 2:00:21 AM11/30/16
to ravendb
I think that if he could, that wouldn't be a problem. :-)
Can yous end the actual FS directory?

Hibernating Rhinos Ltd  

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

Media Lab

unread,
Nov 30, 2016, 7:58:37 AM11/30/16
to RavenDB - 2nd generation document database
Just sent it, let me know if there's anything else you need.

-Robb

Grisha Kotler

unread,
Nov 30, 2016, 1:44:35 PM11/30/16
to rav...@googlegroups.com
Thanks. Looking into this.

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

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

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

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


On 30 November 2016 at 14:58, Media Lab <ml.se...@medialabinc.com> wrote:
Just sent it, let me know if there's anything else you need.

-Robb

--

Media Lab

unread,
Dec 1, 2016, 8:07:15 AM12/1/16
to RavenDB - 2nd generation document database
No hurry on our side as we've migrated everything already, but thank you nonetheless.


On Wednesday, November 30, 2016 at 1:44:35 PM UTC-5, Grisha Kotler wrote:
Thanks. Looking into this.

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

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

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

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


On 30 November 2016 at 14:58, Media Lab <ml.se...@medialabinc.com> wrote:
Just sent it, let me know if there's anything else you need.

-Robb

--
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+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages