Skip to content
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

bug: handle "sqlite3.OperationalError: database is locked" error #4652

Open
terriko opened this issue Dec 24, 2024 · 0 comments
Open

bug: handle "sqlite3.OperationalError: database is locked" error #4652

terriko opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@terriko
Copy link
Contributor

terriko commented Dec 24, 2024

Our test suite has been sometimes throwing the following error:

sqlite3.OperationalError: database is locked

I think some of our immediate problem can be fixed with improving our test design as I described in #4651 but I'd also like to have this error caught and handled appropriately. It may make sense to have this be a "back off and retry" loop but since the database updates can take 10-20 minutes (maybe even longer if you're talking NVD API on a slow internet connection?) we might also consider just failing more gracefully and directing people to the documentation on running concurrent scans. Or spitting out an actual error message before we enter the retry loop?

@terriko terriko added the bug Something isn't working label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant