Skip to content

Collector: ON CONFLICT DO UPDATE command cannot affect row a second time #179

@rootedbox

Description

@rootedbox

The collector got stuck in an endless loop on block 7549547.. only thing I could do was insert a record in the block table manually for 7549547 so that it would keep going.

05-09 19:18 [INFO]: collectBlock: begin transaction for block 7549547
05-09 19:18 [ERROR]: ON CONFLICT DO UPDATE command cannot affect row a second time
QueryFailedError: ON CONFLICT DO UPDATE command cannot affect row a second time
at QueryFailedError.TypeORMError [as constructor] (/home/kuser/app/fcd/src/error/TypeORMError.ts:7:9)
at new QueryFailedError (/home/kuser/app/fcd/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner. (/home/kuser/app/fcd/src/driver/postgres/PostgresQueryRunner.ts:263:19)
at step (/home/kuser/app/fcd/node_modules/typeorm/node_modules/tslib/tslib.js:143:27)
at Object.throw (/home/kuser/app/fcd/node_modules/typeorm/node_modules/tslib/tslib.js:124:57)
at rejected (/home/kuser/app/fcd/node_modules/typeorm/node_modules/tslib/tslib.js:115:69)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)

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