What's the expected process to move a RavenFS database from 3.5 (or 3.0) into 4.0?

109 views
Skip to first unread message

Bruno Lopes

unread,
Jan 11, 2018, 7:19:20 PM1/11/18
to RavenDB - 2nd generation document database
Doing a "Import data from a .ravendbdump file into the current database" to load a .ravenfsdump fails with "The archive entry was compressed using an unsupported compression method."

Oren Eini (Ayende Rahien)

unread,
Jan 12, 2018, 1:22:01 AM1/12/18
to ravendb
That _should_ work.
How did you create the ravendbdump file?

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 Fri, Jan 12, 2018 at 2:19 AM, Bruno Lopes <bruno...@gmail.com> wrote:
Doing a "Import data from a .ravendbdump file into the current database" to load a .ravenfsdump fails with "The archive entry was compressed using an unsupported compression method."

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

Oren Eini (Ayende Rahien)

unread,
Jan 12, 2018, 1:22:38 AM1/12/18
to ravendb
Other methods include pointing to a live instance and getting all the data from there directly, creating a new db from an existing 3.5 db, etc.

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 Fri, Jan 12, 2018 at 2:19 AM, Bruno Lopes <bruno...@gmail.com> wrote:
Doing a "Import data from a .ravendbdump file into the current database" to load a .ravenfsdump fails with "The archive entry was compressed using an unsupported compression method."

--

Bruno Lopes

unread,
Jan 12, 2018, 5:08:17 AM1/12/18
to ravendb
Exported a file store from a 3.0 instance.

Pointing to a existing server is a bit harder, since in this case I want to restore locally an instance that's remote 

--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/kYW-VhEL9r8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+unsubscribe@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Jan 13, 2018, 6:00:09 AM1/13/18
to ravendb
Importing the export should work, IIRC

Bruno Lopes

unread,
Jan 15, 2018, 12:02:59 PM1/15/18
to RavenDB - 2nd generation document database
Here's what I did:
- created a fs on 3.5 build 35246.
- on the fs, created two folders, uploaded two zip files
- exported the fs

on 4, build 4.0.0-rc-40025, tried to import the file, and failed. Stack trace on the bottom, and ravenfsdump attached.

The archive entry was compressed using an unsupported compression method.
System.IO.InvalidDataException: The archive entry was compressed using an unsupported compression method.
   at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
      at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
      at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
      at System.IO.Compression.Inflater.Inflate(Byte[] bytes, Int32 offset, Int32 length)
      at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
      at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset, Int32 count)
      at Sparrow.Json.Parsing.UnmanagedJsonParserHelper.Read(PeepingTomStream stream, UnmanagedJsonParser parser, JsonParserState state, ManagedPinnedBuffer buffer) in C:\Builds\RavenDB-4.0-RC\src\Sparrow\Json\Parsing\UnmanagedJsonParserHelper.cs:line 27
      at Raven.Server.Smuggler.Documents.StreamSource.Initialize(DatabaseSmugglerOptions options, SmugglerResult result, Int64& buildVersion) in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\Smuggler\Documents\StreamSource.cs:line 58
      at Raven.Server.Smuggler.Documents.DatabaseSmuggler.Execute(Boolean ensureStepsProcessed) in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\Smuggler\Documents\DatabaseSmuggler.cs:line 55
      at Raven.Server.Smuggler.Documents.Handlers.SmugglerHandler.DoImportInternal(DocumentsOperationContext context, Stream stream, DatabaseSmugglerOptionsServerSide options, SmugglerResult result, Action`1 onProgress, OperationCancelToken token) in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\Smuggler\Documents\Handlers\SmugglerHandler.cs:line 525
      at Raven.Server.Smuggler.Documents.Handlers.SmugglerHandler.<>c__DisplayClass9_2.<<PostImportAsync>b__1>d.MoveNext() in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\Smuggler\Documents\Handlers\SmugglerHandler.cs:line 411
      --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Raven.Server.Smuggler.Documents.Handlers.SmugglerHandler.<PostImportAsync>d__9.MoveNext() in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\Smuggler\Documents\Handlers\SmugglerHandler.cs:line 355
      --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Raven.Server.Routing.RequestRouter.<HandlePath>d__5.MoveNext() in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\Routing\RequestRouter.cs:line 94
      --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult()
      at Raven.Server.RavenServerStartup.<RequestHandler>d__11.MoveNext() in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\RavenServerStartup.cs:line 159

     
On Saturday, 13 January 2018 11:00:09 UTC, Oren Eini wrote:
Importing the export should work, IIRC

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 Fri, Jan 12, 2018 at 12:07 PM, Bruno Lopes <bruno...@gmail.com> wrote:
Exported a file store from a 3.0 instance.

Pointing to a existing server is a bit harder, since in this case I want to restore locally an instance that's remote 
On Fri, Jan 12, 2018 at 6:22 AM, Oren Eini (Ayende Rahien) <aye...@ayende.com> wrote:
Other methods include pointing to a live instance and getting all the data from there directly, creating a new db from an existing 3.5 db, etc.

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 Fri, Jan 12, 2018 at 2:19 AM, Bruno Lopes <bruno...@gmail.com> wrote:
Doing a "Import data from a .ravendbdump file into the current database" to load a .ravenfsdump fails with "The archive entry was compressed using an unsupported compression method."

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

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/kYW-VhEL9r8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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.
Dump of fs-1, 2018-01-15 16-57.ravenfsdump

Grisha Kotler

unread,
Jan 15, 2018, 2:39:20 PM1/15/18
to rav...@googlegroups.com
Hi Bruno,

In order to import RavenFS to RavenDB v4.0, you'll need a live instance of RavenDB v3.x with a file system.
You can import it in the Import Database -> From another RavenDB server tab.
Make sure to select Import RavenFS

Inline images 1

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.

Bruno Lopes

unread,
Jan 15, 2018, 6:07:37 PM1/15/18
to ravendb
Ah, it's not working on the RC, but it works on today's nightly.

Quick note: the filesystem doesn't appear on the dropdown list for "database name". It works if I specify the filesystem name, but at first I thought it was bugged (as it showed the databases)

Also, I had to only select RavenFS. I tried with the other options toggled and it failed with:

[23:00:29 INFO] Strated processing RavenFS files
[23:00:33 INFO] Read 9 RavenFS files.
[23:00:39 INFO] Read 10 RavenFS files.
[23:00:50 INFO] Read 13 RavenFS files.
[23:00:52 INFO] Read 50 RavenFS files.
[23:00:53 INFO] Read 90 RavenFS files.
The argument type, 'Raven.Client.Documents.Smuggler.DatabaseItemType', is not the same as the enum type 'Raven.Server.Smuggler.Migration.ItemType'.
System.ArgumentException: The argument type, 'Raven.Client.Documents.Smuggler.DatabaseItemType', is not the same as the enum type 'Raven.Server.Smuggler.Migration.ItemType'.

   at System.Enum.HasFlag(Enum flag)

   at Raven.Server.Smuggler.Migration.Migrator_V3.<Execute>d__4.MoveNext() in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Server\Smuggler\Migration\Migrator_V3.cs:line 59


--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Raven.Server.Smuggler.Migration.Migrator.<>c__DisplayClass11_1.<<StartMigratingSingleDatabase>b__1>d.MoveNext() in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Server\Smuggler\Migration\Migrator.cs:line 260

To unsubscribe from this group and all its topics, send an email to ravendb+unsubscribe@googlegroups.com.

Grisha Kotler

unread,
Jan 16, 2018, 12:07:00 PM1/16/18
to rav...@googlegroups.com
All issues are fixed and will be in the next 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/


Bruno Lopes

unread,
Jan 16, 2018, 12:12:05 PM1/16/18
to ravendb
Thanks
Reply all
Reply to author
Forward
0 new messages