I've been in the process of migrating from TheHive3 to TheHive4. Everything is stood up, and now we are shooting to migrate our data form TheHive3. However, we keep receiving this error:
[warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (1) [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (2) [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (3) [info] [Prepare database] [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (4) [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (5) [error] Migration failed org.thp.scalligraph.models.DatabaseException: Violation of database schema at org.thp.scalligraph.janus.JanusDatabase$$anonfun$1.applyOrElse(JanusDatabase.scala:207) at org.thp.scalligraph.janus.JanusDatabase$$anonfun$1.applyOrElse(JanusDatabase.scala:205) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38) at scala.util.Failure.recoverWith(Try.scala:236) at org.thp.scalligraph.janus.JanusDatabase.tryTransaction(JanusDatabase.scala:205) at org.thp.scalligraph.models.BaseDatabase.$anonfun$createSchemaFrom$1(Database.scala:205) at scala.util.Success.flatMap(Try.scala:251) at org.thp.scalligraph.models.BaseDatabase.createSchemaFrom(Database.scala:204) at org.thp.thehive.migration.th4.Output.startMigration(Output.scala:239) at org.thp.thehive.migration.MigrationOps.migrate(MigrationOps.scala:392) Caused by: org.janusgraph.core.SchemaViolationException: Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue] at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.addProperty(StandardJanusGraphTx.java:817) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.addProperty(StandardJanusGraphTx.java:745) at org.janusgraph.graphdb.vertices.AbstractVertex.property(AbstractVertex.java:152) at org.janusgraph.core.JanusGraphVertex.property(JanusGraphVertex.java:72) at org.janusgraph.core.JanusGraphVertex.property(JanusGraphVertex.java:33) at org.thp.scalligraph.models.BaseDatabase.$anonfun$setSingleProperty$1(Database.scala:330) at scala.Option.foreach(Option.scala:407) at org.thp.scalligraph.models.BaseDatabase.setSingleProperty(Database.scala:330) at org.thp.scalligraph.janus.JanusDatabase.createVertex(JanusDatabase.scala:543) at org.thp.scalligraph.models.InitialValue.create(Schema.scala:14) [info] Stage: Prepare database ImpactStatus: 0/0 Organisation: 0/1 Profile: 0/0 ResolutionStatus: 0/0
Being completely new to the world of Cassandra, I was hoping that somebody may some ideas on how to fix this! Thank you in advance for any help you can provide!
I've been in the process of migrating from TheHive3 to TheHive4. Everything is stood up, and now we are shooting to migrate our data form TheHive3. However, we keep receiving this error:
[warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (1) [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (2) [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (3) [info] [Prepare database] [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (4) [warn] An error occurs (Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue]), retrying (5) [error] Migration failed org.thp.scalligraph.models.DatabaseException: Violation of database schema at org.thp.scalligraph.janus.JanusDatabase$$anonfun$1.applyOrElse(JanusDatabase.scala:207) at org.thp.scalligraph.janus.JanusDatabase$$anonfun$1.applyOrElse(JanusDatabase.scala:205) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38) at scala.util.Failure.recoverWith(Try.scala:236) at org.thp.scalligraph.janus.JanusDatabase.tryTransaction(JanusDatabase.scala:205) at org.thp.scalligraph.models.BaseDatabase.$anonfun$createSchemaFrom$1(Database.scala:205) at scala.util.Success.flatMap(Try.scala:251) at org.thp.scalligraph.models.BaseDatabase.createSchemaFrom(Database.scala:204) at org.thp.thehive.migration.th4.Output.startMigration(Output.scala:239) at org.thp.thehive.migration.MigrationOps.migrate(MigrationOps.scala:392) Caused by: org.janusgraph.core.SchemaViolationException: Adding this property for key [_label] and value [ResolutionStatus] violates a uniqueness constraint [ResolutionstatusValue] at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.addProperty(StandardJanusGraphTx.java:817) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.addProperty(StandardJanusGraphTx.java:745) at org.janusgraph.graphdb.vertices.AbstractVertex.property(AbstractVertex.java:152) at org.janusgraph.core.JanusGraphVertex.property(JanusGraphVertex.java:72) at org.janusgraph.core.JanusGraphVertex.property(JanusGraphVertex.java:33) at org.thp.scalligraph.models.BaseDatabase.$anonfun$setSingleProperty$1(Database.scala:330) at scala.Option.foreach(Option.scala:407) at org.thp.scalligraph.models.BaseDatabase.setSingleProperty(Database.scala:330) at org.thp.scalligraph.janus.JanusDatabase.createVertex(JanusDatabase.scala:543) at org.thp.scalligraph.models.InitialValue.create(Schema.scala:14) [info] Stage: Prepare database ImpactStatus: 0/0 Organisation: 0/1 Profile: 0/0 ResolutionStatus: 0/0
Being completely new to the world of Cassandra, I was hoping that somebody may some ideas on how to fix this! Thank you in advance for any help you can provide!