-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 database is busy -- warning or error? #6656
Comments
warning: ignoring untrusted substituter 'https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store' |
I have to agree. Currently, for me, it's:
Which, again, duplicates "error", and "(ignored)" doesn't really help in my opinion. |
Related: #7998 |
The specific rendering issue would be fixed by #7865 |
IMO this shouldn't be a warning or an error, but a (verbose) notice: waiting for lock on build cache. |
The frequency of this message has been greatly reduced since However, the message prefix issue has not been solved. It seems that the Line 248 in de3df30
We have more instances where we're logging an |
Avoid the confusing error message "warning: error: ..." when SQLite is busy. Instead, just print "warning: ..." as the message. Fixes NixOS#6656
Describe the bug
In Nix 2.3 you might see a
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy
when the database is busy. But in Nix >=2.8 (and possibly earlier?) you get a more confusing message:I've been asked about this more than once at $dayjob: "Is this message a warning or an error?". I'm pretty sure it's just a warning, and if that's correct, we should probably remove the
error:
part from that message.Steps To Reproduce
Expected behavior
I expect messages to be either warning or error, not both.
The text was updated successfully, but these errors were encountered: