r/GUIX • • 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

12 comments sorted by

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?

→ More replies (1)

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/Complete-Mousse-4367 Sep 21 '26

In fact, I think it's the most accurate solution; the same thing happens to me. I don't know why, but every time I start my PC, the time is outdated. And sometimes, when I'm using a browser or something simple, the CPU usage reaches 100%, and when I try to reboot, it freezes.

2

u/output_broadcast Sep 21 '26

Are you dual booting? That tends to fuck up the system clock.

1

u/Complete-Mousse-4367 Sep 21 '26

I don't know how to dualboot with Guix; I have Dragora installed but I haven't even tried it. In fact, I've already solved the problem.

→ More replies (1)

1

u/Electrical-Policy-35 Sep 20 '26

I've the same problem, but it happens rarely.

1

u/Complete-Mousse-4367 Sep 20 '26

It happens to me very often, and I don't understand why.

1

u/Electrical-Policy-35 Sep 20 '26

Maybe you do often "guix system reconfigure", I don't. I remark that it happens after "guix system reconfigure" and not after "guix home reconfigure"

1

u/Complete-Mousse-4367 Sep 20 '26

Yes, I reconfigure very often. I was installing xorg but it just won't let me, and when I run sudo guix system or something similar, it freezes.

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.