Open whitslack opened 1 month ago
I was able to get my node to start by manually executing ALTER TABLE chain_events ADD spliced INTEGER DEFAULT 0;
on the Bookkeeper's database. Crisis averted. :relieved: Still, the migration ought to be corrected.
Issue and Steps to Reproduce
The following error message is emitted on
stderr
from thelightningd
process:The PostgreSQL server error log contains:
It looks like Bookkeeper is trying to access the column
spliced
in tablechain_events
before it attempts to alter the table to add the column to it. Because the initialSELECT
query fails, the subsequentALTER TABLE
statement in the same transaction is rejected. You need to roll back the failed transaction before you attempt to upgrade the schema.