-
Notifications
You must be signed in to change notification settings - Fork 21
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
sqlite in-memory database disappears and ledger crashes #354
Comments
This sounds this issue: knex/knex#1701 Note that to reproduce with current ledger you have to access |
Change the pool settings for Knex to prevent the database connection from being cleaned up. Fixes #354.
I tried the same (
|
Thanks for reporting. Currently, sqlite in-memory databases do not work very reliably with |
Description
When starting the ledger with an in-memory sqlite database, the database disappears after a few minutes. When the ledger tries to query a (non-existing) table, it crashes.
Steps to reproduce
Open terminal, switch into the root folder of the ledger repo and run
Wait a few minutes. Then, execute
curl http://localhost:3001
and the ledger will fail with:The problem might be that the connection to the in-memory database is released and, thus, sqlite removes the database. See here.
The text was updated successfully, but these errors were encountered: