firefly
firefly copied to clipboard
Database is locked
From Discord thread "Database is locked": https://discord.com/channels/905194001349627914/997135847797305484
Sometimes when running with the sqlite database, an HTTP request will be met with {"error":"FF10116: Database insert failed: database is locked"}
. This seems to happen most frequently with the tokens E2E tests, although it's not necessarily specific to tokens. Might just be an issue with too many concurrent database routines on the sqlite database.
Reopening as this has still been seen lately.
This appears to have been a side-effect of config having been moved and no longer picking up defaults. sqlite was being configured with concurrency of "0" (unlimited connections) instead of "1".
Fixed by https://github.com/hyperledger/firefly-common/pull/30 and no longer seen after bringing this into mainline (as part of PR https://github.com/hyperledger/firefly/pull/960).