Importing failure - "An item with the same key has already been added: 'Raven-Ignore-Versioning'"

124 views
Skip to first unread message

Media Lab

unread,
Mar 6, 2017, 2:59:35 PM3/6/17
to RavenDB - 2nd generation document database
I exported the live database and tried to import it into a staging database. If I don't check off "Disable versioning during import" it tells me I have to check it off. If I check it, it throws

System.ArgumentException: An item with the same key has already been added: 'Raven-Ignore-Versioning'
   at Raven.Json.Linq.DictionaryWithParentSnapshot.Add(String key, RavenJToken value)
   at Raven.Abstractions.Smuggler.SmugglerDatabaseApiBase.<ImportDocuments>d__50.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.SmugglerDatabaseApiBase.<>c__DisplayClass34_0.<<ImportData>b__2>d.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.SmugglerDatabaseApiBase.<RunSingleImportAsync>d__35.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.SmugglerDatabaseApiBase.<ImportData>d__34.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.SmugglerDatabaseApiBase.<ImportData>d__32.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.Server.Controllers.StudioTasksController.<>c__DisplayClass5_0.<<ImportDatabase>b__0>d.MoveNext()

This happens from the command line as well as studio.

Am I missing something simple here?

Grisha Kotler

unread,
Mar 6, 2017, 3:10:50 PM3/6/17
to rav...@googlegroups.com
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,
Mar 6, 2017, 3:12:37 PM3/6/17
to RavenDB - 2nd generation document database

Grisha Kotler

unread,
Mar 6, 2017, 4:39:17 PM3/6/17
to rav...@googlegroups.com
Is it an old export?

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,
Mar 6, 2017, 4:46:50 PM3/6/17
to RavenDB - 2nd generation document database
Nope, exported immediately before import.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Grisha Kotler

unread,
Mar 6, 2017, 4:49:11 PM3/6/17
to rav...@googlegroups.com
Can you send us the export file?

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.

Grisha Kotler

unread,
Mar 6, 2017, 9:57:42 PM3/6/17
to rav...@googlegroups.com
The issue is 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/


Media Lab

unread,
Mar 7, 2017, 7:58:24 AM3/7/17
to RavenDB - 2nd generation document database
Awesome, thanks for figuring that out. Due to workload I wasn't able to export the data for you yesterday (needed time to strip out client sensitive data) so I'm glad you were able to deduce what was going on.

Is there anything I can do to manually fix it for the interim until the next build is out?

Oren Eini (Ayende Rahien)

unread,
Mar 7, 2017, 10:20:47 AM3/7/17
to ravendb
Build will be out tomorrow

Hibernating Rhinos Ltd  

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

--

Media Lab

unread,
Mar 10, 2017, 8:38:45 AM3/10/17
to RavenDB - 2nd generation document database
I have upgraded to 35191 but am still unable to smuggle or export/import my database. I get the same error.

Done with reading transformers, total: 3
Exporting Documents
Streaming documents from 00000000-0000-0000-0000-000000000000, batch size 16384
Got Exception during smuggler export. Exception: An item with the same key has already been added: 'Raven-Ignore-Versioning'.
Done with reading documents, total: 64, lastEtag: 01000000-0000-06E1-0000-0000000000E4
An item with the same key has already been added: 'Raven-Ignore-Versioning'

We are desperately trying to move our production database to a newer, more robust server (as we become more & more reliant on Raven). Is there anything I can do manually to remove this key from somewhere?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Media Lab

unread,
Mar 10, 2017, 1:19:50 PM3/10/17
to RavenDB - 2nd generation document database
And now this is happening on multiple databases, not just one.

Oren Eini (Ayende Rahien)

unread,
Mar 10, 2017, 4:02:00 PM3/10/17
to ravendb
How are you doing the export?

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, Mar 10, 2017 at 8:19 PM, Media Lab <ml.se...@medialabinc.com> wrote:
And now this is happening on multiple databases, not just one.

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

Media Lab

unread,
Mar 13, 2017, 9:12:38 AM3/13/17
to RavenDB - 2nd generation document database
Exporting from Studio or Smuggler, same thing happens.

To get up & running, we just copied the files over & attached to them on the new server, but of course that means the problems come across with them too.

I can send the db to you if you would like. What email?


On Friday, March 10, 2017 at 4:02:00 PM UTC-5, Oren Eini wrote:
How are you doing the export?

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, Mar 10, 2017 at 8:19 PM, Media Lab <ml.se...@medialabinc.com> wrote:
And now this is happening on multiple databases, not just one.

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

Grisha Kotler

unread,
Mar 13, 2017, 9:43:26 AM3/13/17
to rav...@googlegroups.com
Please send it 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/


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

Media Lab

unread,
Mar 16, 2017, 2:54:14 PM3/16/17
to RavenDB - 2nd generation document database
Is there anything else I can do with this? We are still dead in the water as of now, unable to successfully import an exported database, and are stuck on a server that is having issues.

Grisha Kotler

unread,
Mar 16, 2017, 6:15:40 PM3/16/17
to rav...@googlegroups.com
This shouldn't happen in the latest build (3.5.3 build 35191).
Can you send us the exported database?

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 16 March 2017 at 20:54, Media Lab <ml.se...@medialabinc.com> wrote:
Is there anything else I can do with this? We are still dead in the water as of now, unable to successfully import an exported database, and are stuck on a server that is having issues.

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

Media Lab

unread,
Mar 21, 2017, 7:51:00 AM3/21/17
to RavenDB - 2nd generation document database
Through the magic of whatever it is inside computers that decides when things work or not, we're now able to export / import with no issues.

I applied the latest updates again just to make sure, and since then, everything seems to be working fine.
Reply all
Reply to author
Forward
0 new messages