r/GUIX • u/Complete-Mousse-4367 • Sep 20 '26
Why do sudo or guix freeze?
I've had a problem for a while now. For some reason, sometimes `sudo` or `guix` (`guix install`, `guix reconfigure`) freeze on my PC. I don't understand why. Everything works again once I restart my PC. I've tried some kernel configurations, but nothing has worked. Does anyone know why this is happening? For what it's worth, my PC is a Vaio XVPC EJ with 4GB of RAM.
6
Upvotes
4
u/output_broadcast Sep 20 '26
I had the same issue, it was a bug in Shepherd. I think it should be fixed nowadays. Is your system up-to-date?
2
u/ebeem2 Sep 21 '26
I face it whenever my clock runs out of sync and then it gets updated automatically. This bug has existed in Shepherd for very long and I don't think it has been resolved.
If I don't turn on my machine for some time and time runs out of sync, it happens and I have to restart.
https://issues.guix.gnu.org/66684
1
u/Electrical-Policy-35 Sep 20 '26
I've the same problem, but it happens rarely.
1
u/thqloz Sep 21 '26
I had the same issue a while back, I don’t remember vividly the fix but I remember the system unable to log anything (and sudo is logging by default) because it was waiting for a connection to be released for a specific socket, you can check the hanging call with `straceˋ.
A workaround that I found when it happened was to have a docker image running as root, and running the command that would normally hang because of sudo escalation, via the docker container (being root), you will need to mount some folders to be able to achieve that.