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

[BUG REPORT] database is locked #147

Closed
ezewer opened this issue May 10, 2022 · 1 comment
Closed

[BUG REPORT] database is locked #147

ezewer opened this issue May 10, 2022 · 1 comment

Comments

@ezewer
Copy link
Collaborator

ezewer commented May 10, 2022

An error occurred

WORKER:ERROR [2022-05-10T07:31:08.540Z] PROGRESS:SYNC:SET: SqliteError: database is locked
    at _runStm (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:13:11)
    at /home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:66:12
    at sqliteTransaction (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
    at Object.module.exports [as UPDATE_RECORD_OF] (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:69:10)
    at module.exports (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/index.js:18:31)
    at MessagePort.<anonymous> (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/node_modules/bfx-facs-db-better-sqlite/worker/worker-factory.js:61:22)

Debug info
Version 3.7.1
Commit Hash 6e2c58d
Commit Date 2022-05-03T01:43:11Z
Electron 13.6.9
Chrome 91.0.4472.164
Node.js 14.16.0
V8 9.1.269.40-electron.0
OS version Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022
OS release Linux x64 5.4.0-109-generic
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz x 8
RAM 15.52GB (2.24GB free)
App RAM limit 4095.75Mb (9.04MB used)
Main log
    at MessagePort.<anonymous> (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/node_
[2022-05-10 17:31:08.543] [error] WORKER:ERROR [2022-05-10T07:31:08.540Z] PROGRESS:SYNC:SET: SqliteError: database is locked
    at _runStm (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:13:11)
    at /home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:66:12
    at sqliteTransaction (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
    at Object.module.exports [as UPDATE_RECORD_OF] (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:69:10)
    at module.exports (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/index.js:18:31)
    at MessagePort.<anonymous> (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/node_modules/bfx-facs-db-better-sqlite/worker/worker-factory.js:61:22)
Worker errors
WORKER:ERROR [2022-05-10T07:31:08.540Z] PROGRESS:SYNC:SET: SqliteError: database is locked
    at _runStm (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:13:11)
    at /home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:66:12
    at sqliteTransaction (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/node_modules/better-sqlite3/lib/methods/transaction.js:65:24)
    at Object.module.exports [as UPDATE_RECORD_OF] (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/action-update-record-of.js:69:10)
    at module.exports (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/index.js:18:31)
    at MessagePort.<anonymous> (/home/ezequiel/Documents/report/BitfinexReport-3.7.1-x64-linux/resources/app/bfx-reports-framework/node_modules/bfx-facs-db-better-sqlite/worker/worker-factory.js:61:22)
    at MessagePort.[nodejs.internal.kHybridDispatch] (internal/event_target.js:354:41)
    at MessagePort.exports.emitMessage (internal/per_context/messageport.js:18:26)
Worker exceptions
    at /home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/a
    at /home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:2953:17
    at /home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:2955:19
    at wrapper (/home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:268:20)
    at replenish (/home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:435:29)
    at iterateeCallback (/home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:424:21)
    at /home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:321:20
    at /home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:2953:17
    at /home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:2955:19
    at wrapper (/home/ezequiel/Documents/report/BitfinexReport-3.5.0-x64-linux/resources/app/bfx-reports-framework/node_modules/async/dist/async.js:268:20)

The issue was opened from the electron app

@ZIMkaRU
Copy link
Member

ZIMkaRU commented May 10, 2022

That might be related to the issue of the SQLite driver WiseLibs/better-sqlite3#597

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

2 participants