plugins icon indicating copy to clipboard operation
plugins copied to clipboard

summary: BDB0060 PANIC: fatal region error detected; run recovery

Open pabpas opened this issue 3 years ago • 4 comments
trafficstars

summary loaded and working properly. However, after some time the following message prints out in the log (info):

UNUSUAL plugin-summary.py: [PeerThread] cannot add item to database

and this in the terminal:

BDB0060 PANIC: fatal region error detected; run recovery

Besides the errors and eating 70% of CPU usage, the plugins works.

CLN 0.12.0 plugins 0f42425

pabpas avatar Sep 18 '22 08:09 pabpas

That sounds like the disk file used for persistence across restarts somehow got corrupted. We use shelve, and the error seems to suggest that BDB is being used as a backend. If you don't care about keeping the historical data (mostly uptime metrics I think) you can just remove the summary.dat file and restart the plugin to get things working again. Otherwise you can attempt to recover, but I couldn't find good.doca on how to do that yet.

cdecker avatar Sep 18 '22 10:09 cdecker

Where is summary.dat stored? I can't find it.

pabpas avatar Sep 18 '22 10:09 pabpas

In ~/.lightning/bitcoin most likely.

cdecker avatar Sep 18 '22 10:09 cdecker

Yes, it is there but the file is called summary.dat.db.

The issue has not happened since I reported it. I will keep an eye on it and will use your workaround in case it happens again.

Thank you!

pabpas avatar Sep 18 '22 10:09 pabpas

With the current version of the summary we no longer use the database, so this issue is gone and no longer reproducible!

vincenzopalazzo avatar Mar 07 '23 17:03 vincenzopalazzo