You are not logged in.

#1 2023-02-18 02:56:51

odror
Member
Registered: 2015-03-17
Posts: 100

[solved] Lost network connection after upgrading to systemd-253

Hi

I lost network connection after upgrading to systemd-253
I use systemd-networkd for network connection.

When typing the 'ip r'  command I get empty response. The issue is resolved after downgrading back to systemd-252.5

I am not an expert on systemd or networking. Any ideas how to debug or fix the issue.

I have the following files in /etc/systemd/network

20-bridge.network:

[NetDev]
Name=br0
Kind=bridge

bind.network:

[Match]
Name=en*
[Network]
Bridge=br0 

bridge.netdev:

[NetDev]
Name=br0
Kind=bridge

I also get  the following error in journalctl:

Feb 17 18:40:49 i7-9800x-arch kernel: br0: port 1(eno1) entered blocking state
Feb 17 18:40:49 i7-9800x-arch kernel: br0: port 1(eno1) entered disabled state
Feb 17 18:40:49 i7-9800x-arch kernel: device eno1 entered promiscuous mode
Feb 17 18:40:49 i7-9800x-arch systemd-networkd[2253]: br0: Link UP

I do not get this error when reverting back to systemd-252.5




Any Ideas how to debug or fix the issue

Last edited by odror (2023-02-18 18:08:46)

Offline

#2 2023-02-18 06:38:15

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: [solved] Lost network connection after upgrading to systemd-253

Please use "code" tags, https://bbs.archlinux.org/help.php#bbcode
Edit your post in this regard.

Also please post your complete system journal for a 253 boot: eg.

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

for the previous one.

Sanity check:

I am not an expert on systemd or networking.

Then do you actually mean to have the bridge device there?

Offline

#3 2023-02-18 15:49:54

odror
Member
Registered: 2015-03-17
Posts: 100

Re: [solved] Lost network connection after upgrading to systemd-253

With systemd-253 :

$  sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st
curl: (6) Could not resolve host: 0x0.st

With systemd-252.5 :

$  sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st
http://0x0.st/Hs-H.txt

I need the Bridge network for my VMs

Offline

#4 2023-02-18 16:02:06

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: [solved] Lost network connection after upgrading to systemd-253

The plan was to boot 253, reboot (w/ 252) and then post the journal for the (previous) 253 boot.
You can also just access an older boot (Increase the digit after "-b", eg. "-2") w/ 253.

Offline

#5 2023-02-18 17:48:46

odror
Member
Registered: 2015-03-17
Posts: 100

Re: [solved] Lost network connection after upgrading to systemd-253

I rebooted to 253 then rebooted back to 252.5:

$ sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st
http://0x0.st/Hs-k.txt
$ sudo journalctl -b -0 | curl -F 'file=@-' 0x0.st
http://0x0.st/Hs-n.txt

If I go back to a period before the initial installation of 253 I get:

$ sudo journalctl -b -5 | curl -F 'file=@-' 0x0.st
http://0x0.st/Hsor.txt

I am curios: What are you looking for in the journalctl. It sounds like as if there is  a new security setup that needs to be done or disabled for 253, or possibly a new way of network setup for 253. I am just surprised that I did not find anything about that when I searched. I have the same issue in 2 computers. So it is not a hardware specific issue.

NB: for the prior post  instead of rebooting I usd the comand:

$ sudo systemctl restart systemd-networkd

Offline

#6 2023-02-18 17:56:32

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [solved] Lost network connection after upgrading to systemd-253

systemd-253

Feb 18 09:21:07 i7-9800x-arch systemd-networkd[2427]: /etc/systemd/network/20-oz-bridge.network:5: An address '192.168.0.1' is specified without prefix length. Assuming the prefix length is 32.Please specify the prefix length explicitly.

systemd-252

Feb 18 09:24:55 i7-9800x-arch systemd-networkd[2187]: /etc/systemd/network/20-oz-bridge.network:5: An address '192.168.0.1' is specified without prefix length. The behavior of parsing addresses without prefix length will be changed in the future release. Please specify prefix length explicitly.

usually you'd want it as 192.168.0.1/24 (implies route to 192.168.0.x) but if not specified it picks /32 (no route)

Last edited by frostschutz (2023-02-18 18:00:12)

Offline

#7 2023-02-18 18:07:34

odror
Member
Registered: 2015-03-17
Posts: 100

Re: [solved] Lost network connection after upgrading to systemd-253

Yes that fixed the issue. Thank you

Offline

#8 2023-02-18 18:11:27

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: [solved] Lost network connection after upgrading to systemd-253

Edit: fuck.

Last edited by seth (2023-02-18 18:12:09)

Offline

#9 2023-02-19 00:40:17

HCF
Member
Registered: 2016-04-10
Posts: 29

Re: [solved] Lost network connection after upgrading to systemd-253

I have run into what looks like a similar issue. All of my addresses are set as /24, however.

Upon upgrading to 253:
- NFS shares do not auto mount (though can be manually fixed via 'mount -a' after boot)
- VPN ceases to work fully (I can connect to my devices via KDEConnect, all other network access stops functioning)

This is immediately fixed when downgrading to 252-5.

I am unable to find anything suspicious in journalctl.


I will continue to investigate, but so far I got nothing.



EDIT: I also run a bridged interface for my VMs, so maybe there is a breaking change with bridge setups?

Last edited by HCF (2023-02-19 00:42:06)

Offline

#10 2023-02-19 07:21:08

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: [solved] Lost network connection after upgrading to systemd-253

Do you have the 1st warning from #6 in your system journal?
If not (and you can't solve it yourself), try w/o the bridge, open a new thread and post the entire system journal and your findings there.

Offline

#11 2023-02-19 08:45:09

HCF
Member
Registered: 2016-04-10
Posts: 29

Re: [solved] Lost network connection after upgrading to systemd-253

I do not have that warning.

I have switched my network udev rules over to systemd link files, in the hope that this will fix things. The VLAN/bridge rule(s) are the only 'exotic' part of my config.

I run weekly system upgrades, so will let you know how I go next weekend once systemd is upgraded again. Will open a new thread if required.

Offline

#12 2023-02-25 00:03:03

HCF
Member
Registered: 2016-04-10
Posts: 29

Re: [solved] Lost network connection after upgrading to systemd-253

Upgrading broke things again.

For the record, systemd v253 changes the way wait-online behaves.

Deprecations and incompatible changes:

systemd-networkd-wait-online exits successfully when all interfaces
      are ready or unmanaged. Previously, if neither '--any' nor
      '--interface=' options were used, at least one interface had to be in
      configured state. This change allows the case where systemd-networkd
      is enabled, but no interfaces are configured, to be handled
      gracefully. It may occur in particular when a different network
      manager is also enabled and used.

Explicitly configuring systemd-networkd-wait-online with all of my interfaces completely fixed the issue I was experiencing.

Last edited by HCF (2023-02-25 01:26:37)

Offline

Board footer

Powered by FluxBB