question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

backup: sqlite3 check in on_init can cause a hang at startup

See original GitHub issue

The call to listconfigs inside the db_sync hook can hang indefinitely in some circumstances. See https://github.com/ElementsProject/lightning/issues/4348#issuecomment-769449638

I think it would be good to move this check to a different hook. Or remove it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
m-schmoockcommented, Jan 30, 2021

Bet that’s why the CI often failed/timeout on the backup plugin lately. ( @gallizoltan ) Someone already some clues? I will try to reproduce / isolate this.

1reaction
laanwjcommented, Jan 29, 2021

Would be interesting to see if just moving the listconfigs call to a new thread is sufficient.

It would be possible to defer the check, but as I understand the nature of the check seems to be to want to fail quickly in the case of a wrong database kind.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python SQLite: database is locked - Stack Overflow
Ask the database shell to check itself: $ sqlite3 cache.db "pragma integrity_check;"; Backup the database $ sqlite3 cache.db ".backup cache.db.bak" ...
Read more >
How To Corrupt An SQLite Database File
The best approach to make reliable backup copies of an SQLite database is to make use of the backup API that is part...
Read more >
Command Line Shell For SQLite
On startup, the sqlite3 program will show a brief banner message then prompt you to enter SQL. Type in SQL statements (terminated by...
Read more >
Frequently Asked Questions - SQLite
Short answer: A column declared INTEGER PRIMARY KEY will autoincrement. Longer answer: If you declare a column of a table to be INTEGER ......
Read more >
Backup via file system backup software - SQLite Forum
Can I assume the backup software will always snapshot a ... Crash Consistent backups depend on the ability of the filesystem to "fix...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found