-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
nixos: losing network after "big" nixos-rebuild switch #198267
Comments
Maybe this is another instance of #182449? |
X-ref: #180175 |
Next time this happens, try #195777 (comment), as it should narrow down the issue compared to the |
I think the issue here (which I just ran face-first into) is that dhcpcd does not assign addresses to bridges by default, and Specifically:
I think the solution is probably to emit
|
Upon further testing, this does not work reliably; to actually get it to work you sometimes need to
Update: I've been doing a lot of big updates, which means lots of testing this, which means I can now say this doesn't work reliably either. Explicitly telling dhcpcd about the bridge with |
Describe the bug
Running
sudo nixos-rebuild switch
on a "big" nixpkgs upgrade (e.g. from ac20a86 to c132d08) leaves my server without networking connectivity. When in this state, I can get the network back up withsudo systemctl restart network-setup
.Steps To Reproduce
Steps to reproduce the behavior:
sudo nixos-rebuild switch
with "big" nixpkgs update (see above).systemctl status dhcpcd
saysno valid interfaces found
. (Normally it's clear that it finds an interface and obtains an IP address.)Expected behavior
Doing
nixos-rebuild switch
shouldn't take down network interfaces and leaving them without IP address and require manually runningsudo systemctl restart network-setup
to fix it.Additional context
I'm using an ethernet bridge on my server, if that matters:
Notify maintainers
Metadata
NixOS 22.05
The text was updated successfully, but these errors were encountered: