Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db startup bug #92

Open
dangershony opened this issue Feb 10, 2022 · 1 comment
Open

db startup bug #92

dangershony opened this issue Feb 10, 2022 · 1 comment

Comments

@dangershony
Copy link
Member

I keep getting this intermittent error
need to investigate

fail: Blockcore.Indexer.Core.Storage.Mongo.MongoBuilder[0]
      TaskStarter-CirrusMongoBuilder
      System.ArgumentException: An item with the same key has already been added. Key: Blockcore.Indexer.Core.Storage.Mongo.Types.BlockTable
         at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
         at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
         at MongoDB.Bson.Serialization.BsonClassMap.RegisterClassMap(BsonClassMap classMap)
         at MongoDB.Bson.Serialization.BsonClassMap.RegisterClassMap[TClass](Action`1 classMapInitializer)
         at Blockcore.Indexer.Core.Storage.Mongo.MongoBuilder.OnExecute() in C:\Users\dan\Documents\GitHub\blockcore-indexer\src\Blockcore.Indexer.Core\Storage\Mongo\MongoBuilder.cs:line 44
         at Blockcore.Indexer.Cirrus.Storage.Mongo.CirrusMongoBuilder.OnExecute() in C:\Users\dan\Documents\GitHub\blockcore-indexer\src\Blockcore.Indexer.Cirrus\Storage\Mongo\CirrusMongoBuilder.cs:line 20
         at Blockcore.Indexer.Core.Sync.SyncTasks.TaskStarter.<>c__DisplayClass8_0.<<Run>b__0>d.MoveNext() in C:\Users\dan\Documents\GitHub\blockcore-indexer\src\Blockcore.Indexer.Core\Sync\SyncTasks\TaskStarter.cs:line 37
fail: Blockcore.Indexer.Core.Sync.SyncServer[0]
      Sync
      System.ArgumentException: An item with the same key has already been added. Key: Blockcore.Indexer.Core.Storage.Mongo.Types.BlockTable
         at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
         at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
         at MongoDB.Bson.Serialization.BsonClassMap.RegisterClassMap(BsonClassMap classMap)
         at MongoDB.Bson.Serialization.BsonClassMap.RegisterClassMap[TClass](Action`1 classMapInitializer)
         at Blockcore.Indexer.Core.Storage.Mongo.MongoBuilder.OnExecute() in C:\Users\dan\Documents\GitHub\blockcore-indexer\src\Blockcore.Indexer.Core\Storage\Mongo\MongoBuilder.cs:line 44
         at Blockcore.Indexer.Cirrus.Storage.Mongo.CirrusMongoBuilder.OnExecute() in C:\Users\dan\Documents\GitHub\blockcore-indexer\src\Blockcore.Indexer.Cirrus\Storage\Mongo\CirrusMongoBuilder.cs:line 20
         at Blockcore.Indexer.Core.Sync.SyncTasks.TaskStarter.<>c__DisplayClass8_0.<<Run>b__0>d.MoveNext() in C:\Users\dan\Documents\GitHub\blockcore-indexer\src\Blockcore.Indexer.Core\Sync\SyncTasks\TaskStarter.cs:line 37
@dangershony
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant