Comments (4)
and builds seem to be failing as well because of it [2024-05-13T12:37:45Z ERROR serene::build] build run for package failed extremely fatally: error returned from database: (code: 5) database is locked: (code: 5) database is locked
from serene-aur.
I thought that the server is using the database correctly, with a database pool provided by the library I'm using (sqlx). So I did some research and came across what seems to be the same issue on the repo of the library: launchbadge/sqlx#451
So the problem seems to be caused by disk being too slow as far as I can tell, or something related to that. There are a couple of different fixes we could try. Sadly, I can't reproduce the issue on my end, I currently don't have any slow-enough hard drives lying around, so you'll have to test them.
The first thing we can try is whether setting the SQLite journaling mode to WAL is enough. I've pushed a fix onto main
which enables that, as it should be enabled anyways for all connections as it offers more performance. So it would be great if you could pull the new image and test whether that already fixes the issues on your setup.
If that doesn't work (which may very well be as adding and building packages are mostly write operations, which are still not possible to run in parallel even with WAL), we'll probably have to resort to something more drastic, limiting the amount of connections to 1
. That would then probably do the trick, but is not really desirable as it may impact performance quite a bit.
from serene-aur.
I threw a bunch of packages at it again and it seems to be fixed or at least not as bad (0 failures so far and 0 jobs stuck on working
). Adding WAL was a good idea either way.
In theory launchbadge/sqlx#459 should fix this completely without affecting read performance but there doesn't seem to be any interest in implementing it any time soon.
from serene-aur.
Okay that's great, I'll close this then for the time being.
If the error appears again, please reopen this issue, and we can consider using two pools or simply limit the connections to 1.
from serene-aur.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serene-aur.