Skip to content

E11000 Duplicate key error Ccollection #189

Description

@dollebrekel

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions