[bug] systemd armv7h No name resolution after first upgrade

Problems with packages? Post here, using [tags] of the package name.

[bug] systemd armv7h No name resolution after first upgrade

Postby tchelovek » Mon Sep 13, 2021 4:07 am

I actually reported this problem 5 years ago (https://archlinuxarm.org/forum/viewtopic.php?f=57&t=9620) but since the nothing seems to have changed :-(

Installing arch linux arm on an odroid-c1 afresh following the instructions at (https://archlinuxarm.org/platforms/armv7/amlogic/odroid-c1) results in a perfectly working machine, until...

#pacman -Syyuu

which updates the following packages:

Packages (40) audit-3.0.4-1 ca-certificates-mozilla-3.70-1 cryptsetup-2.4.0-1
curl-7.78.0-1 device-mapper-2.03.13-1 diffutils-3.8-1
e2fsprogs-1.46.4-1 glib2-2.68.4-1 gnupg-2.2.29-1 gzip-1.11-1
iana-etc-20210728-1 iproute2-5.14.0-1 iputils-20210722-1
jitterentropy-3.2.0-1 krb5-1.19.2-1 less-1:590-1
libarchive-3.5.2-1 libcap-2.56-1 libcap-ng-0.8.2-3
libedit-20210714_3.1-1 libgcrypt-1.9.4-1 libidn2-2.3.2-1
libldap-2.4.59-2 libnghttp2-1.44.0-1 libseccomp-2.5.2-1
libxcrypt-4.4.25-1 libxml2-2.9.12-2
linux-firmware-20210818.c46b8c3-1 mkinitcpio-30-2
mpfr-4.1.0.p13-1 openssh-8.7p1-1 openssl-1.1.1.l-1
pacman-6.0.1-1 rng-tools-6.14-1 systemd-249.4-1
systemd-libs-249.4-1 systemd-sysvcompat-249.4-1 tzdata-2021a-2
util-linux-2.37.2-1 util-linux-libs-2.37.2-1

Total Download Size: 203.33 MiB
Total Installed Size: 822.49 MiB
Net Upgrade Size: 25.32 MiB

A second run updates

Packages (1) netctl-1.26-1

Total Download Size: 0.04 MiB
Total Installed Size: 0.09 MiB

After reboot, no internet connection seems to be possible. In fact sites can be accessed by their ip addresses, but not their names.

After digging through google the umpteenth time, I stumbled on a post at (https://archlinuxarm.org/forum/viewtopic.php?t=13614) (2 years old) which stated that turning off systemd-resolved solved the issue.

Doing the same I immediately (without reboot) have name resolution back.

So, why does systemd-resolved inhibit name resolution instead of providing it ?

Why does a severe issue like this go on for years without remedy ?

The whole process is reproduceable every time with the few steps given above. If anybody is willing to tackle the thing, I will happily try any suggestion to help solve it.

addenda:

1.) After adding a second NIC (wlan0) the functionality is broken again.

Interestingly enough it is restored by starting and stopping systemd-resolved once more. My present kludge is a cron job doing just that. But that is surely not the way that is intended...

2.) A helpful source of information on systemd-resolved's workings might be (https://moss.sh/name-resolution-issue-systemd-resolved/)

3.) I just repeated the above steps for a RaspberryPi B+ following (https://archlinuxarm.org/platforms/armv6/raspberry-pi) and executing pacman -Syyuu afterwards, there is no flaw to be seen. Apart from the different architecture there should be no difference in configuration / number of packages. So what is going wrong here ?

4.) The only difference I can see so far, is that /etc/resolv.conf contains an ip6 nameserver for the RaspberryPi while the odroid-c1 one does not. They are both links to /run/systemd/resolve/resolv.conf.

5.) Since I lack the deeper knowledge of systemd-networkd and its ways, I now went the brute force way.

After the basic installation I executed pacman -S <package> one by one (there weren't so many offered), and the winner is: systemd.

The version installed is 248.3-2, the version to upgrade to is 249.4-1.

The same procedure carried out on a RaspberryPi B+ ends up with the same systemd package at version 249.4-1, yet everything works fine. The difference being architecture (armv7 vs armv6), so that could mean _all_ armv7 devices (50 from 11 vendors) should have this bug, if it's not an upstream bug which would affect all installations.

Why this could go unfixed for 5 years is over my head.

I suggest, that somebody knowledgeable picks up from here.
ODROID C1 ( armv7h ), Raspberry Pi 2B+ ( armv7h ), 2 x Raspberry Pi B+ ( armv6h ), Raspberry Pi4 (armv7l)
tchelovek
 
Posts: 17
Joined: Sat Mar 07, 2015 1:33 pm
Location: Yes

Return to Packages

Who is online

Users browsing this forum: No registered users and 12 guests