You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lightnind crashes after pulling the latest master (89ff46f).
The error is sqlite3_close: unable to close due to unfinalized statements or unfinished backups.
This also happens with a completely new sqlite database: I made a backup of the current sqlite db and removed it, started lightningd again with --port 0.
Yes, this is the command I use to start lightningd: ./lightningd/lightningd --network bitcoin --log-level debug --alias [hidden] --log-file /home/bitcoin/lightning.log --daemon
There is no additional information in the log, the last line is just Listening on 'lightning-rpc'
It seems some of the recent code rearrangement around db close-fork-db reopen process for --daemon failed.
Without --daemon I suspect highly it will succeed to start, so if you need to keep your node up then try running without --daemon in the meantime. We will need to investigate this further, please wait.
To follow-up on @Rav3nPL's comment, if you start a new node with the daemon flag, like below, it fails with this error still. You have to start without --daemon one time. Then after the first successful run, you can use daemon.
Easy to reproduce with the following as of commit 69cdfba:
Activity
ZmnSCPxj commentedon Apr 25, 2018
You are using
--daemon?kirtixs commentedon Apr 25, 2018
Yes, this is the command I use to start lightningd:
./lightningd/lightningd --network bitcoin --log-level debug --alias [hidden] --log-file /home/bitcoin/lightning.log --daemonThere is no additional information in the log, the last line is just
Listening on 'lightning-rpc'ZmnSCPxj commentedon Apr 25, 2018
It seems some of the recent code rearrangement around db close-fork-db reopen process for
--daemonfailed.Without
--daemonI suspect highly it will succeed to start, so if you need to keep your node up then try running without--daemonin the meantime. We will need to investigate this further, please wait.kirtixs commentedon Apr 25, 2018
Thanks, that works
9735dev commentedon Apr 25, 2018
Starting without
--daemongets me past this crash too.Here are the last debug log entries before the crash at startup that I see:
[-]sqlite crash[/-][+]sqlite crash when `--daemon` flag used[/+]wallet: free sql statement in wallet_onchaind_channels.
Rav3nPL commentedon Apr 26, 2018
It still exists, if you start fresh with --daemon.
If you start w/o --daemon and close, then --daemon works fine.
9735dev commentedon Apr 27, 2018
To follow-up on @Rav3nPL's comment, if you start a new node with the daemon flag, like below, it fails with this error still. You have to start without
--daemonone time. Then after the first successful run, you can use daemon.Easy to reproduce with the following as of commit 69cdfba:
This first start problem appears to be fixed by #1430 commit 6308c1f.
common: detect "sync error" from lnd.
common: detect "sync error" from lnd.
common: detect "sync error" from lnd.
common: detect "sync error" from lnd.