GRE tunnels break after nixos-rebuild switch #34

Open
opened 2024-02-06 17:39:18 +08:00 by sb10q · 4 comments
Owner
setting up tmpfiles
reloading the following units: dbus.service, firewall.service, reload-systemd-vconsole-setup.service
restarting the following units: dhcpcd.service, network-addresses-alt0.service, network-addresses-enp4s0.service, network-addresses-enp5s0f1.service, network-addresses-henet0.service, network-addresses-vlan0.service, network-addresses-wlp6s0.service, nginx.service, nix-daemon.service, rt-server.service, sshd.service, systemd-journald.service
A dependency job for network-addresses-alt0.service failed. See 'journalctl -xe' for details.
starting the following units: acme-fixperms.service, acme-lockfiles.service, afws.service, alt0-netdev.service, apcupsd.service, audit.service, avahi-daemon.socket, bind.service, cups-browsed.service, cups.socket, custom-network-setup.service, dhparams-init.service, dnsmasq.service, dovecot2.service, fail2ban.service, gitea.service, hedgedoc.service, henet0-netdev.service, hostapd.service, hydra-evaluator.service, hydra-init.service, hydra-notify.service, hydra-queue-runner.service, hydra-send-stats.service, hydra-server.service, kmod-static-nodes.service, logrotate-checkconf.service, matterbridge.service, mattermost.service, mount-pstore.service, mysql.service, network-setup.service, nscd.service, opendkim.service, phpfpm-flarum.service, phpfpm-nextcloud.service, phpfpm-roundcube.service, postfix-setup.service, postfix.service, postgresql.service, redis-rspamd.service, resolvconf.service, rspamd.service, rt-fetchmail.service, strongswan-swanctl.service, systemd-binfmt.service, systemd-modules-load.service, systemd-oomd.socket, systemd-sysctl.service, systemd-timesyncd.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-vconsole-setup.service, uwsgi.service, vlan0-netdev.service, zfs-mount.service, zfs-share.service, zfs-zed.service
warning: error(s) occurred while switching to the new configuration

Corresponding errors in journal:

Feb 06 17:33:49 nixbld systemd[1]: network-addresses-alt0.service: Bound to unit sys-subsystem-net-devices-alt0.device, but unit isn't active.
Feb 06 17:33:49 nixbld systemd[1]: Dependency failed for Address configuration of alt0.
Feb 06 17:33:49 nixbld systemd[1]: network-addresses-alt0.service: Job network-addresses-alt0.service/start failed with result 'dependency'.
Feb 06 17:35:25 nixbld systemd[1]: Dependency failed for Address configuration of alt0.
Feb 06 17:35:25 nixbld systemd[1]: network-addresses-alt0.service: Job network-addresses-alt0.service/start failed with result 'dependency'.

Workaround:

root@nixbld ~ # udevadm trigger
[wait few seconds]
root@nixbld ~# systemctl start network-addresses-alt0.service
``` setting up tmpfiles reloading the following units: dbus.service, firewall.service, reload-systemd-vconsole-setup.service restarting the following units: dhcpcd.service, network-addresses-alt0.service, network-addresses-enp4s0.service, network-addresses-enp5s0f1.service, network-addresses-henet0.service, network-addresses-vlan0.service, network-addresses-wlp6s0.service, nginx.service, nix-daemon.service, rt-server.service, sshd.service, systemd-journald.service A dependency job for network-addresses-alt0.service failed. See 'journalctl -xe' for details. starting the following units: acme-fixperms.service, acme-lockfiles.service, afws.service, alt0-netdev.service, apcupsd.service, audit.service, avahi-daemon.socket, bind.service, cups-browsed.service, cups.socket, custom-network-setup.service, dhparams-init.service, dnsmasq.service, dovecot2.service, fail2ban.service, gitea.service, hedgedoc.service, henet0-netdev.service, hostapd.service, hydra-evaluator.service, hydra-init.service, hydra-notify.service, hydra-queue-runner.service, hydra-send-stats.service, hydra-server.service, kmod-static-nodes.service, logrotate-checkconf.service, matterbridge.service, mattermost.service, mount-pstore.service, mysql.service, network-setup.service, nscd.service, opendkim.service, phpfpm-flarum.service, phpfpm-nextcloud.service, phpfpm-roundcube.service, postfix-setup.service, postfix.service, postgresql.service, redis-rspamd.service, resolvconf.service, rspamd.service, rt-fetchmail.service, strongswan-swanctl.service, systemd-binfmt.service, systemd-modules-load.service, systemd-oomd.socket, systemd-sysctl.service, systemd-timesyncd.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-vconsole-setup.service, uwsgi.service, vlan0-netdev.service, zfs-mount.service, zfs-share.service, zfs-zed.service warning: error(s) occurred while switching to the new configuration ``` Corresponding errors in journal: ``` Feb 06 17:33:49 nixbld systemd[1]: network-addresses-alt0.service: Bound to unit sys-subsystem-net-devices-alt0.device, but unit isn't active. Feb 06 17:33:49 nixbld systemd[1]: Dependency failed for Address configuration of alt0. Feb 06 17:33:49 nixbld systemd[1]: network-addresses-alt0.service: Job network-addresses-alt0.service/start failed with result 'dependency'. Feb 06 17:35:25 nixbld systemd[1]: Dependency failed for Address configuration of alt0. Feb 06 17:35:25 nixbld systemd[1]: network-addresses-alt0.service: Job network-addresses-alt0.service/start failed with result 'dependency'. ``` Workaround: ``` root@nixbld ~ # udevadm trigger [wait few seconds] root@nixbld ~# systemctl start network-addresses-alt0.service ```
sb10q closed this issue 2024-10-30 17:42:30 +08:00
Author
Owner

Needs to be fixed upstream nixpkgs and this workaround removed.

Needs to be fixed upstream nixpkgs and this workaround removed.
sb10q reopened this issue 2024-10-30 17:42:45 +08:00
esavkin was assigned by sb10q 2024-10-30 17:42:51 +08:00
Owner
for tracking: https://github.com/NixOS/nixpkgs/pull/352523
Author
Owner

Your fix doesn't even work or isn't complete.

reloading the following units: dbus.service, firewall.service, reload-systemd-vconsole-setup.service
restarting the following units: dhcpcd.service, network-addresses-alt0.service, network-addresses-enp11s0.service, network-addresses-enp4s0.service, network-addresses-enp5s0f1.service, network-addresses-henet0.service, network-addresses-trump0.service, network-addresses-vlan0.service, network-addresses-wlp6s0.service, nginx.service, nix-daemon.service, rt-server.service, sshd.service, systemd-journald.service
A dependency job for network-addresses-alt0.service failed. See 'journalctl -xe' for details.
A dependency job for network-addresses-trump0.service failed. See 'journalctl -xe' for details.
Your fix doesn't even work or isn't complete. ``` reloading the following units: dbus.service, firewall.service, reload-systemd-vconsole-setup.service restarting the following units: dhcpcd.service, network-addresses-alt0.service, network-addresses-enp11s0.service, network-addresses-enp4s0.service, network-addresses-enp5s0f1.service, network-addresses-henet0.service, network-addresses-trump0.service, network-addresses-vlan0.service, network-addresses-wlp6s0.service, nginx.service, nix-daemon.service, rt-server.service, sshd.service, systemd-journald.service A dependency job for network-addresses-alt0.service failed. See 'journalctl -xe' for details. A dependency job for network-addresses-trump0.service failed. See 'journalctl -xe' for details. ```
Author
Owner

This isn't very surprising considering that you failed to provide an explanation for why udevadm trigger is required.

This isn't very surprising considering that you failed to provide an explanation for why ``udevadm trigger`` is required.
sb10q changed title from altnet connection breaks after nixos-rebuild switch to GRE tunnels break after nixos-rebuild switch 2024-11-16 11:56:29 +08:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/it-infra#34
No description provided.