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

E11000 Duplicate key error Ccollection #189

Open
dollebrekel opened this issue Mar 25, 2021 · 0 comments
Open

E11000 Duplicate key error Ccollection #189

dollebrekel opened this issue Mar 25, 2021 · 0 comments

Comments

@dollebrekel
Copy link

Expected Behavior

That block.js get fully synced

Actual Behavior

Stopped at block 202

Steps to Reproduce the Problem

  1. sudo node block.js

Specifications

  • Version: Master
  • Platform: Linux Ubuntu 18.04
  • Subsystem:

Additional notes:
I tried other versions of Linux with clean install no success
Tried to drop index in mongodb no success

Thu, 25 Mar 2021 21:03:20 GMT Block Sync Started
Thu, 25 Mar 2021 21:03:20 GMT Confirming Blocks (202 to 429411)
Thu, 25 Mar 2021 21:03:20 GMT Confirming block 202/429411...
Thu, 25 Mar 2021 21:03:20 GMT Block 202 doesn't exist...
Thu, 25 Mar 2021 21:03:21 GMT DB Height: 201, RPC Height: 429411, Clean Start: (YES)
Thu, 25 Mar 2021 21:03:21 GMT Sync Started!
{ BulkWriteError: E11000 duplicate key error collection: apiserver.carverMovements index: sequence_1 dup key: { : 648 }
at /home/apiserver/blockex/node_modules/mongodb/lib/bulk/unordered.js:535:15
at handleCallback (/home/apiserver/blockex/node_modules/mongodb/lib/utils.js:128:55)
at resultHandler (/home/apiserver/blockex/node_modules/mongodb/lib/bulk/unordered.js:456:5)
at /home/apiserver/blockex/node_modules/mongodb-core/lib/connection/pool.js:541:18
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
name: 'BulkWriteError',
message: 'E11000 duplicate key error collection: apiserver.carverMovements index: sequence_1 dup key: { : 648 }',
driver: true,
code: 11000,
index: 0,
errmsg: 'E11000 duplicate key error collection: apiserver.carverMovements index: sequence_1 dup key: { : 648 }',
getOperation: [Function],
toJSON: [Function],
toString: [Function],
result:
BulkWriteResult {
ok: [Getter],
nInserted: [Getter],
nUpserted: [Getter],
nMatched: [Getter],
nModified: [Getter],
nRemoved: [Getter],
getInsertedIds: [Function],
getUpsertedIds: [Function],
getUpsertedIdAt: [Function],
getRawResponse: [Function],
hasWriteErrors: [Function],
getWriteErrorCount: [Function],
getWriteErrorAt: [Function],
getWriteErrors: [Function],
getLastOp: [Function],
getWriteConcernError: [Function],
toJSON: [Function],
toString: [Function],
isOk: [Function] } }
Thu, 25 Mar 2021 21:03:21 GMT *** Cron Exception!

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