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

SQLite tracking issue #2

Open
kpcyrd opened this issue Apr 20, 2020 · 3 comments
Open

SQLite tracking issue #2

kpcyrd opened this issue Apr 20, 2020 · 3 comments

Comments

@kpcyrd
Copy link
Owner

kpcyrd commented Apr 20, 2020

To avoid having difficult to configure external dependencies we've decided to use sqlite to track the rebuilderd state. We had some starting issues with sqlite locking up. It got better but still isn't fully resolved. The python ecosystems seems to have this figured out.

The error shows up as:

[2020-04-16T02:42:53Z ERROR r2d2] database is locked

or

[2020-04-20T11:34:08Z ERROR actix_http::response] Internal Server Error: DatabaseError(__Unknown, "database is locked")
[2020-04-20T11:34:08Z INFO  actix_web::middleware::logger] 127.0.0.1:45710 "POST /api/v0/build/ping HTTP/1.1" 500 18 "-" "-" 0.251571

There has been some prior discussion in diesel-rs/diesel#2365

@SantiagoTorres
Copy link
Sponsor Contributor

I'm having this issue I think. Is there a way to figure out what could be wrong/how to unlock the db?

Jun 02 19:56:02 tsel docker[1248333]: [2022-06-02T19:56:02Z ERROR actix_http::response] Internal Server Error: Error { err: database is locked }

@kpcyrd
Copy link
Owner Author

kpcyrd commented Jun 2, 2022

This still happens if one operation locks up the database for a very long time. One operation that can take a long time with many builds/packages is the garbage collection of old builds, I've created #131 for this.

@SantiagoTorres
Copy link
Sponsor Contributor

ah, now I realize it's not a permanent lockup. Things are working now :) thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants