Bug 1188949 - dhclient unable to obtain an IP address
Summary: dhclient unable to obtain an IP address
Status: RESOLVED WORKSFORME
: 1188736 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Network (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jonathan Kang
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-31 15:45 UTC by Vladislav Milenin
Modified: 2023-06-15 02:02 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
max: needinfo? (vladislavmil)


Attachments
NetworkManager logs, inxi-Fxz output, video and photo with error demonstration (8.13 MB, application/zip)
2021-07-31 15:45 UTC, Vladislav Milenin
Details
journalctl -b -u NetworkManager (249.66 KB, text/plain)
2021-08-11 19:37 UTC, Vladislav Milenin
Details
Logs of journalctl and output of nmcli (108.77 KB, application/zip)
2021-08-13 19:12 UTC, Vladislav Milenin
Details
NetworkManager logs from a third-party repository (2.26 MB, text/plain)
2021-08-20 15:08 UTC, Vladislav Milenin
Details
journalctl -b -u NetworkManager from a third-party repository (2.66 MB, text/plain)
2021-08-26 17:22 UTC, Vladislav Milenin
Details
Logs of journalctl (449.65 KB, text/plain)
2021-08-28 11:48 UTC, Vladislav Milenin
Details
Logs of dhcp=dhclient (124.20 KB, application/zip)
2021-08-31 18:57 UTC, Vladislav Milenin
Details
NetworkManager logs (439.50 KB, application/zip)
2021-09-02 20:42 UTC, Vladislav Milenin
Details
Logs NM of JonathanKang braches GNOME Factory (141.84 KB, application/zip)
2021-09-08 16:02 UTC, Vladislav Milenin
Details
Error command (34.69 KB, image/png)
2021-09-14 22:42 UTC, Vladislav Milenin
Details
dhcp4.pcapng file (24 bytes, application/octet-stream)
2021-09-15 20:43 UTC, Vladislav Milenin
Details
dhcp4.pcapng file without firewall (24 bytes, application/octet-stream)
2021-09-15 21:06 UTC, Vladislav Milenin
Details
dhcp4.pcapng file (11.24 KB, application/octet-stream)
2021-09-18 13:51 UTC, Vladislav Milenin
Details
dhcp4.pcapng correct (20.37 KB, application/octet-stream)
2021-09-21 18:18 UTC, Vladislav Milenin
Details
dhcp4 reloaded (13.31 KB, application/octet-stream)
2021-09-26 21:08 UTC, Vladislav Milenin
Details
dhclient log (1.20 KB, text/plain)
2021-11-24 18:41 UTC, Vladislav Milenin
Details
Journalctl log when network is down (30.48 KB, text/plain)
2022-12-07 07:39 UTC, Raija Ruuska
Details
journalctl computer startup log after network failure (8.67 KB, text/plain)
2022-12-07 07:45 UTC, Raija Ruuska
Details
No such file or directory.txt (8.66 KB, text/plain)
2022-12-07 07:46 UTC, Raija Ruuska
Details
information about my computer (3.09 KB, text/plain)
2022-12-07 07:50 UTC, Raija Ruuska
Details
journalctl log when the error occurred (31.22 KB, text/plain)
2022-12-13 04:06 UTC, Raija Ruuska
Details
journalctl log after reboot (432.23 KB, text/plain)
2022-12-13 04:10 UTC, Raija Ruuska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladislav Milenin 2021-07-31 15:45:54 UTC
Created attachment 851456 [details]
NetworkManager logs, inxi-Fxz output, video and photo with error demonstration

After installation, the wired connection works correctly. The next day, it stops connecting. There is a network connection that lasts indefinitely. Creating new connections does not lead to any result, as does trying to reconnect to an existing connection. It only helps to roll back the system to the backup created immediately after installation. The bug manifests itself on all DE and the next day after installation. During installation, the system configures the wired connection itself and the installation takes place without any errors. The problem manifests itself in openSUSE Leap and Tumbleweed, the wired connection works correctly on other distributions. I tried to install the r8168 driver, and add r8169 to the blacklist, but this does not help. Installing a third-party custom kernel also does not fix the problem. IPv4, IPv6, DNS and the default route disappear from the connection settings. I looked at the Network Manager configs, but there is nothing suspicious there, because of which the problem could manifest itself.
Comment 1 Jonathan Kang 2021-08-09 03:09:49 UTC
The logs indicate that it's trying to get a dynamic IP via dhclient but didn't
get one till you manually turn off the connection. Can you confirm DHCP is
properly configured?

BTW, add the following to /etc/NetworkManager/NetworkManager.conf

> [logging]
> level=trace

restart NetworkManager and reproduce this again. This turns of more verbose
logging in NetworkManager.
Comment 2 Vladislav Milenin 2021-08-11 19:37:15 UTC
Created attachment 851677 [details]
journalctl -b -u NetworkManager

Here is the NetworkManager log for today. It was not possible to connect the first time, but it turned out the second time. Sometimes it is possible to randomly establish a connection. The DHCP must be configured correctly. Before that, I worked on Linux Mint for a year, I never had such a problem.
Comment 3 Jonathan Kang 2021-08-12 02:55:53 UTC
(In reply to Vladislav Milenin from comment #2)
> Created attachment 851677 [details]
> journalctl -b -u NetworkManager
> 
> Here is the NetworkManager log for today. It was not possible to connect the
> first time, but it turned out the second time. Sometimes it is possible to
> randomly establish a connection. The DHCP must be configured correctly.
> Before that, I worked on Linux Mint for a year, I never had such a problem.

Do you mind uploading the content of "journalctl -b" instead of journal only from
NetworkManager?

You mentioned creating a new connection doesn't help either. Could you show the
output of "nmcli connection show $newly-created-connection-name" as well?

Thanks.
Comment 4 Vladislav Milenin 2021-08-13 19:12:55 UTC
Created attachment 851769 [details]
Logs of journalctl and output of nmcli

Yes, creating a new connection does not help, as does reconnecting to an existing one.
Comment 5 Jonathan Kang 2021-08-18 03:47:41 UTC
(In reply to Vladislav Milenin from comment #4)
> Created attachment 851769 [details]
> Logs of journalctl and output of nmcli
> 
> Yes, creating a new connection does not help, as does reconnecting to an
> existing one.

It looks like the system never got an ip address through dhcp. But there is
no detailed log messages in the default NetworkManager logs. I've enabled
verbose log messages in this build[0] of NetworkManager.

Can you install this rpm and attach logs here?

*[0] https://build.opensuse.org/package/show/home:JonathanKang:branches:GNOME:Factory/NetworkManager
Comment 6 Vladislav Milenin 2021-08-20 15:08:19 UTC
Created attachment 851959 [details]
NetworkManager logs from a third-party repository

Today I managed to connect to the Internet on the second attempt. Sometimes this happens, but I have not found any pattern. This happens purely by chance.
Comment 7 Jonathan Kang 2021-08-23 05:54:16 UTC
(In reply to Vladislav Milenin from comment #6)
> Created attachment 851959 [details]
> NetworkManager logs from a third-party repository
> 
> Today I managed to connect to the Internet on the second attempt. Sometimes
> this happens, but I have not found any pattern. This happens purely by
> chance.

It looks like you didn't install NetworkManager from the provided repo in
comment#5.

BTW, as a workaround, you may try to change
> dhcp=dhclient
to
> dhcp=internal
in /etc/NetworkManager/NetworkManager.conf.
Comment 8 Vladislav Milenin 2021-08-26 17:22:33 UTC
Created attachment 852086 [details]
journalctl -b -u NetworkManager from a third-party repository

Yes, I noticed that I installed this package incorrectly. I installed it for the second time, but this time correctly. Even in the config, NetworkManager replaced dhcp=dhclient to dhcp=internal. I noticed a very strange behavior of the network. The network was connected to the Internet normally for two days, but this morning it refused to connect again. I had to use the phone as a USB modem. In the afternoon, I turned it on again and the network was already connected normally. The strange thing is that I noticed that if you connect the Internet via your phone as a USB modem, then after disconnecting it from the computer, the network sometimes connects correctly for some time.
Comment 9 Jonathan Kang 2021-08-27 02:01:58 UTC
(In reply to Vladislav Milenin from comment #8)
> Created attachment 852086 [details]
> journalctl -b -u NetworkManager from a third-party repository
> 
> Yes, I noticed that I installed this package incorrectly. I installed it for
> the second time, but this time correctly. Even in the config, NetworkManager
> replaced dhcp=dhclient to dhcp=internal. I noticed a very strange behavior
> of the network. The network was connected to the Internet normally for two
> days, but this morning it refused to connect again. I had to use the phone
> as a USB modem. In the afternoon, I turned it on again and the network was
> already connected normally. The strange thing is that I noticed that if you
> connect the Internet via your phone as a USB modem, then after disconnecting
> it from the computer, the network sometimes connects correctly for some time.

The logs indicates that during the phase of DHCPDISCOVER, the ethernet link was
disconnected somehow and your system cannot get DHCPOFFER from the dhcp server.

But without the whole "journalctl -b" for the system, I'm unable to tell exactly
why the link was disconnected and no carrier was available for the ethernet
interface. Could you please attach the output of "journalctl -b" here?
Comment 10 Vladislav Milenin 2021-08-28 11:48:13 UTC
Created attachment 852115 [details]
Logs of journalctl

There have been no connection failures since the last time
Comment 11 Vladislav Milenin 2021-08-31 18:57:42 UTC
Created attachment 852201 [details]
Logs of dhcp=dhclient

After replacing dhcp=dhclient to dhcp=internal, the Internet was connected correctly for these few days. But it was worth changing these values back, as the same problem reappeared. In a non-working state, I took the logs again and returned them back to dhcp=internal, since it works better with it.
Comment 12 Jonathan Kang 2021-09-01 03:04:10 UTC
(In reply to Vladislav Milenin from comment #11)
> Created attachment 852201 [details]
> Logs of dhcp=dhclient
> 
> After replacing dhcp=dhclient to dhcp=internal, the Internet was connected
> correctly for these few days. But it was worth changing these values back,
> as the same problem reappeared. In a non-working state, I took the logs
> again and returned them back to dhcp=internal, since it works better with it.

Can you install NetworkManager from the repo mentioned in comment#5 and provide
logs again? More verbose messages are needed to debug dhclient.

Thanks.
Comment 13 Vladislav Milenin 2021-09-02 20:42:04 UTC
Created attachment 852275 [details]
NetworkManager logs

I am attaching the logs and a screen from which you can see that NetworkManager is installed from the repository you need, to which it changed, after installing from the .ymp package from comment#5.
Comment 14 Vladislav Milenin 2021-09-04 19:27:25 UTC
(In reply to Jonathan Kang from comment #12)
> (In reply to Vladislav Milenin from comment #11)
> > Created attachment 852201 [details]
> > Logs of dhcp=dhclient
> > 
> > After replacing dhcp=dhclient to dhcp=internal, the Internet was connected
> > correctly for these few days. But it was worth changing these values back,
> > as the same problem reappeared. In a non-working state, I took the logs
> > again and returned them back to dhcp=internal, since it works better with it.
> 
> Can you install NetworkManager from the repo mentioned in comment#5 and
> provide
> logs again? More verbose messages are needed to debug dhclient.
> 
> Thanks.

I conducted additional testing. It seems that changing the parameter in the NM config to dhcp=internal solves the problem, because after that the Internet began to connect normally. But I still did not understand why such an error is obtained with the parameter dhcp=dhclient. You asked to install NM from comment#5, which I did. YaST notified about the correct installation, then restarted the computer and took the logs. But you write that NM is still installed from the standard openSUSE repositories. I checked again and left a screenshot of YaST in comment#13, where it is clear that NM is installed from the GNOME repository:Factory, which was added after installing the package.
Comment 15 Jonathan Kang 2021-09-06 06:18:03 UTC
(In reply to Vladislav Milenin from comment #14)
> (In reply to Jonathan Kang from comment #12)
> > (In reply to Vladislav Milenin from comment #11)
> > > Created attachment 852201 [details]
> > > Logs of dhcp=dhclient
> > > 
> > > After replacing dhcp=dhclient to dhcp=internal, the Internet was connected
> > > correctly for these few days. But it was worth changing these values back,
> > > as the same problem reappeared. In a non-working state, I took the logs
> > > again and returned them back to dhcp=internal, since it works better with it.
> > 
> > Can you install NetworkManager from the repo mentioned in comment#5 and
> > provide
> > logs again? More verbose messages are needed to debug dhclient.
> > 
> > Thanks.
> 
> I conducted additional testing. It seems that changing the parameter in the
> NM config to dhcp=internal solves the problem, because after that the
> Internet began to connect normally.

I suspect that it's a dhclient issue, so I enabled verbose in the package
provided in comment#5.

> But I still did not understand why such
> an error is obtained with the parameter dhcp=dhclient. You asked to install
> NM from comment#5, which I did. YaST notified about the correct
> installation, then restarted the computer and took the logs. But you write
> that NM is still installed from the standard openSUSE repositories. I
> checked again and left a screenshot of YaST in comment#13, where it is clear
> that NM is installed from the GNOME repository:Factory, which was added
> after installing the package.

You should be installing NetworkManager from home:JonathanKang:braches:GNOME:Factory
instead of GNOME:Factory.
Comment 16 Vladislav Milenin 2021-09-08 16:02:13 UTC
Created attachment 852384 [details]
Logs NM of JonathanKang braches GNOME Factory

I changed the NM repository to home:Jonathan Kang:branches:GNOME:Factory and took the logs again.
Comment 17 Jonathan Kang 2021-09-10 03:21:59 UTC
(In reply to Vladislav Milenin from comment #16)
> Created attachment 852384 [details]
> Logs NM of JonathanKang braches GNOME Factory
> 
> I changed the NM repository to home:Jonathan Kang:branches:GNOME:Factory and
> took the logs again.

dhclient never receives an DHCPACK after sending DHCPREQUEST message. But I have
no idea exactly why. I guess you're using a router, so it won't be possible to
get dhcp related logs from the dhcp server side.
Comment 18 Vladislav Milenin 2021-09-10 22:48:28 UTC
(In reply to Jonathan Kang from comment #17)
> (In reply to Vladislav Milenin from comment #16)
> > Created attachment 852384 [details]
> > Logs NM of JonathanKang braches GNOME Factory
> > 
> > I changed the NM repository to home:Jonathan Kang:branches:GNOME:Factory and
> > took the logs again.
> 
> dhclient never receives an DHCPACK after sending DHCPREQUEST message. But I
> have
> no idea exactly why. I guess you're using a router, so it won't be possible
> to
> get dhcp related logs from the dhcp server side.

Yes, I use a Zyxel keenetic lite III router. The router was configured by the master once, during installation. For all the time of operation, not a single device had any connection errors via a wired connection and Wi-Fi.
Comment 19 Jonathan Kang 2021-09-13 07:28:34 UTC
Hi Reinhard

I guess you're the maintainer of dhclient. In this bug, NetworkManager spawned
dhclient to get an ip from dhcp server. But after the client send DHCPREQUEST,
it never got an DHCPACK reply. Do you have any idea about what could go wrong
here?

> сен 08 18:26:56 localhost dhclient[1047]: Internet Systems Consortium DHCP Client 4.4.2-P1
> сен 08 18:26:56 localhost dhclient[1047]: Copyright 2004-2021 Internet Systems Consortium.
> сен 08 18:26:56 localhost dhclient[1047]: All rights reserved.
> сен 08 18:26:56 localhost dhclient[1047]: For info, please visit https://www.isc.org/software/dhcp/
> сен 08 18:26:56 localhost dhclient[1047]: 
> сен 08 18:26:56 localhost dhclient[1047]: Listening on LPF/enp2s0/70:8b:cd:9e:5b:b2
> сен 08 18:26:56 localhost dhclient[1047]: Sending on   LPF/enp2s0/70:8b:cd:9e:5b:b2
> сен 08 18:26:56 localhost dhclient[1047]: Sending on   Socket/fallback
> сен 08 18:26:56 localhost dhclient[1047]: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 5 (xid=0x1b7bdecb)
> сен 08 18:26:56 localhost dhclient[1047]: DHCPOFFER of 192.168.1.43 from 192.168.1.1
> сен 08 18:27:01 localhost dhclient[1047]: DHCPREQUEST for 192.168.1.43 on enp2s0 to 255.255.255.255 port 67  (xid=0x1b7bdecb)
> сен 08 18:27:05 localhost dhclient[1047]: DHCPREQUEST for 192.168.1.43 on enp2s0 to 255.255.255.255 port 67  (xid=0x1b7bdecb)
> сен 08 18:27:11 localhost dhclient[1047]: DHCPREQUEST for 192.168.1.43 on enp2s0 to 255.255.255.255 port 67  (xid=0x1b7bdecb)

Complete version of these logs are in comment#16.
Comment 20 Reinhard Max 2021-09-13 13:53:16 UTC
(In reply to Jonathan Kang from comment #19)

> I guess you're the maintainer of dhclient.

yes, I am the maintainer of the dhcp package, but not a deep expert in DHCP.

> Do you have any idea about what could go wrong here?

I discussed this with Marius, but we couldn't find a possible reason within dhclient that would explain this. To narrow this further down we want to see if the missing DHCPACK packages are not being sent by the router, being filtered by the kernel, or being silently ignored by dhclient, because it thinks they are invalid.

For that, please disable your firewall (if it is active) and change some settings:

# sysctl -w net.ipv4.conf.all.log_martians=1
# sysctl -w sysctl -w net.ipv4.conf.all.rp_filter=0

Then record all DHCP packages over at least one occurance of dhclient sending a request and seemingly getting no ack:

# tcpdump -W /tmp/dhcp4.pcapng -s 65535 -Uvnfi any 'port 67 or port 68'

Interrupt tcpdump with Ctrl-C when done and upload /tmp/dhcp4.pcapng as an attachment.
Comment 21 Vladislav Milenin 2021-09-13 21:03:10 UTC
(In reply to Reinhard Max from comment #20)
> (In reply to Jonathan Kang from comment #19)
> 
> > I guess you're the maintainer of dhclient.
> 
> yes, I am the maintainer of the dhcp package, but not a deep expert in DHCP.
> 
> > Do you have any idea about what could go wrong here?
> 
> I discussed this with Marius, but we couldn't find a possible reason within
> dhclient that would explain this. To narrow this further down we want to see
> if the missing DHCPACK packages are not being sent by the router, being
> filtered by the kernel, or being silently ignored by dhclient, because it
> thinks they are invalid.
> 
> For that, please disable your firewall (if it is active) and change some
> settings:
> 
> # sysctl -w net.ipv4.conf.all.log_martians=1
> # sysctl -w sysctl -w net.ipv4.conf.all.rp_filter=0
> 
> Then record all DHCP packages over at least one occurance of dhclient
> sending a request and seemingly getting no ack:
> 
> # tcpdump -W /tmp/dhcp4.pcapng -s 65535 -Uvnfi any 'port 67 or port 68'
> 
> Interrupt tcpdump with Ctrl-C when done and upload /tmp/dhcp4.pcapng as an
> attachment.

I have a few questions. I need to use NetworkManager from the openSUSE repositories or from the home repository:Jonathan Kang:branches:GNOME:Factory. If it is from the openSUSE repositories, is it in working condition or when the Internet stops connecting?
Comment 22 Jonathan Kang 2021-09-14 00:50:29 UTC
(In reply to Vladislav Milenin from comment #21)
> (In reply to Reinhard Max from comment #20)
> > (In reply to Jonathan Kang from comment #19)
> > 
> > > I guess you're the maintainer of dhclient.
> > 
> > yes, I am the maintainer of the dhcp package, but not a deep expert in DHCP.
> > 
> > > Do you have any idea about what could go wrong here?
> > 
> > I discussed this with Marius, but we couldn't find a possible reason within
> > dhclient that would explain this. To narrow this further down we want to see
> > if the missing DHCPACK packages are not being sent by the router, being
> > filtered by the kernel, or being silently ignored by dhclient, because it
> > thinks they are invalid.
> > 
> > For that, please disable your firewall (if it is active) and change some
> > settings:
> > 
> > # sysctl -w net.ipv4.conf.all.log_martians=1
> > # sysctl -w sysctl -w net.ipv4.conf.all.rp_filter=0
> > 
> > Then record all DHCP packages over at least one occurance of dhclient
> > sending a request and seemingly getting no ack:
> > 
> > # tcpdump -W /tmp/dhcp4.pcapng -s 65535 -Uvnfi any 'port 67 or port 68'
> > 
> > Interrupt tcpdump with Ctrl-C when done and upload /tmp/dhcp4.pcapng as an
> > attachment.
> 
> I have a few questions. I need to use NetworkManager from the openSUSE
> repositories or from the home repository:Jonathan
> Kang:branches:GNOME:Factory.

Either is okay. 

> If it is from the openSUSE repositories, is it
> in working condition or when the Internet stops connecting?

This hasn't be fixed. So it's not in proper working condition. We want a bit
more information from your system for further debug this issue.

Thanks.
Comment 23 Reinhard Max 2021-09-14 07:55:17 UTC
(In reply to Vladislav Milenin from comment #21)
> If it is from the openSUSE repositories, is it
> in working condition or when the Internet stops connecting?

We need at least a package dump taken while the problem shows on your system, but if you can also take a sample while things are working, that would be even better.
Comment 24 Vladislav Milenin 2021-09-14 22:42:48 UTC
Created attachment 852512 [details]
Error command

For some reason, the last command from comment#20 does not work. I attached a screen with an error.
Comment 25 Reinhard Max 2021-09-15 06:48:49 UTC
Whoops, sorry, I made some typos and copy&paste errors when posting the commands.
Here we go again:

# sysctl -w net.ipv4.conf.all.log_martians=1
# sysctl -w net.ipv4.conf.all.rp_filter=0
# tcpdump -w /tmp/dhcp4.pcapng -s 65535 -Uvnfi any 'port 67 or port 68'
Comment 26 Vladislav Milenin 2021-09-15 20:43:09 UTC
Created attachment 852544 [details]
dhcp4.pcapng file

This time everything turned out correctly.
Comment 27 Vladislav Milenin 2021-09-15 21:06:48 UTC
Created attachment 852545 [details]
dhcp4.pcapng file without firewall

I'm very sorry, I forgot to disable the firewall. Here is the new file where I disabled the firewall.
Comment 28 Jonathan Kang 2021-09-16 02:28:17 UTC
(In reply to Vladislav Milenin from comment #27)
> Created attachment 852545 [details]
> dhcp4.pcapng file without firewall
> 
> I'm very sorry, I forgot to disable the firewall. Here is the new file where
> I disabled the firewall.

There two are empty file without any package inside. You need to reproduce this
issue with tcpdump command running.
Comment 29 Vladislav Milenin 2021-09-18 13:51:46 UTC
Created attachment 852630 [details]
dhcp4.pcapng file

This time it should work out correctly.
Comment 30 Vladislav Milenin 2021-09-21 18:18:53 UTC
Created attachment 852675 [details]
dhcp4.pcapng correct

Another dhcp 4. pcapng file, this time not empty.
Comment 31 Vladislav Milenin 2021-09-25 00:03:14 UTC
Did the last dhcp 4.pcapng file that I threw off give any information about the problem?
Comment 32 Reinhard Max 2021-09-25 07:11:02 UTC
It just shows that the kernel does not receive any ACK packages at this point in time, and so the DHCP client keeps retrying and retrying. It would be good if you could take another capture of the working situation, taken during a network restart to enforce DHCP re-negotiation.
Comment 33 Vladislav Milenin 2021-09-26 21:08:30 UTC
Created attachment 852755 [details]
dhcp4 reloaded

It should have turned out correctly.
Comment 34 Vladislav Milenin 2021-09-29 17:19:29 UTC
Is there any result from the last attached file?
Comment 35 Reinhard Max 2021-09-29 17:27:09 UTC
It contains no ACK packets either, so there is nothing new to learn from it.
Comment 36 Vladislav Milenin 2021-09-29 21:51:14 UTC
(In reply to Reinhard Max from comment #35)
> It contains no ACK packets either, so there is nothing new to learn from it.

It turns out that as a solution to the problem it is worth using the dhcp = internal parameter from comment#7, since it was not possible to establish the reason for the incorrect operation of the dhcp = dhclient parameter?
Comment 37 Jonathan Kang 2021-10-09 01:27:16 UTC
(In reply to Vladislav Milenin from comment #36)
> (In reply to Reinhard Max from comment #35)
> > It contains no ACK packets either, so there is nothing new to learn from it.
> 
> It turns out that as a solution to the problem it is worth using the dhcp =
> internal parameter from comment#7, since it was not possible to establish
> the reason for the incorrect operation of the dhcp = dhclient parameter?

Yes, you can use "dhcp=internal" as a solution/workaround.
Comment 38 Vladislav Milenin 2021-10-10 19:56:20 UTC
(In reply to Jonathan Kang from comment #37)
> (In reply to Vladislav Milenin from comment #36)
> > (In reply to Reinhard Max from comment #35)
> > > It contains no ACK packets either, so there is nothing new to learn from it.
> > 
> > It turns out that as a solution to the problem it is worth using the dhcp =
> > internal parameter from comment#7, since it was not possible to establish
> > the reason for the incorrect operation of the dhcp = dhclient parameter?
> 
> Yes, you can use "dhcp=internal" as a solution/workaround.

What then to do with an open bug?  I think it shouldn't be closed if new details or ideas appear in the future.
Comment 39 Jonathan Kang 2021-10-11 01:27:15 UTC
(In reply to Vladislav Milenin from comment #38)
> 
> What then to do with an open bug?  I think it shouldn't be closed if new
> details or ideas appear in the future.

This should be kept open until further progress is made and it's fixed.
Comment 40 Jonathan Kang 2021-11-24 03:50:59 UTC
@Vladislav

Can you try to disable the wired connection and then run "dhclient -v -d eth0"?
Please report back whether you can get an IP address.
Comment 41 Vladislav Milenin 2021-11-24 18:41:12 UTC
Created attachment 854023 [details]
dhclient log

When executing the command "dhclient -v -d eth0" nothing happens and "Device "eth0" does not exist." is output. My network is called enp2s0, as the system automatically named it during installation. In the command, I changed "eth0" to "enp2s0" and it was executed correctly.
Comment 42 Jonathan Kang 2021-11-25 01:39:37 UTC
(In reply to Vladislav Milenin from comment #41)
> Created attachment 854023 [details]
> dhclient log
> 
> When executing the command "dhclient -v -d eth0" nothing happens and "Device
> "eth0" does not exist." is output. My network is called enp2s0, as the
> system automatically named it during installation. In the command, I changed
> "eth0" to "enp2s0" and it was executed correctly.

Yep. Use your ethernet interface name instead.

The log shows that dhclient still cannot get an reply from DHCP server. It didn't
even get an DHCPOFFER this time.
Comment 43 Vladislav Milenin 2021-11-26 23:49:48 UTC
(In reply to Jonathan Kang from comment #42)
> (In reply to Vladislav Milenin from comment #41)
> > Created attachment 854023 [details]
> > dhclient log
> > 
> > When executing the command "dhclient -v -d eth0" nothing happens and "Device
> > "eth0" does not exist." is output. My network is called enp2s0, as the
> > system automatically named it during installation. In the command, I changed
> > "eth0" to "enp2s0" and it was executed correctly.
> 
> Yep. Use your ethernet interface name instead.
> 
> The log shows that dhclient still cannot get an reply from DHCP server. It
> didn't
> even get an DHCPOFFER this time.

I've run out of ideas what it could be. Most likely, this is a unique bug on my configuration, which cannot be reproduced by anyone else. At the moment, as a solution, I use the dhcp=internal parameter from comment#7 and it works fine all the time.
Comment 44 Jonathan Kang 2022-09-08 07:03:09 UTC
*** Bug 1188736 has been marked as a duplicate of this bug. ***
Comment 45 Raija Ruuska 2022-12-05 16:35:38 UTC
(In reply to Vladislav Milenin from comment #43)
> (In reply to Jonathan Kang from comment #42)
> > (In reply to Vladislav Milenin from comment #41)
> > > Created attachment 854023 [details]
> > > dhclient log
> > > 
> > > When executing the command "dhclient -v -d eth0" nothing happens and "Device
> > > "eth0" does not exist." is output. My network is called enp2s0, as the
> > > system automatically named it during installation. In the command, I changed
> > > "eth0" to "enp2s0" and it was executed correctly.
> > 
> > Yep. Use your ethernet interface name instead.
> > 
> > The log shows that dhclient still cannot get an reply from DHCP server. It
> > didn't
> > even get an DHCPOFFER this time.
> 
> I've run out of ideas what it could be. Most likely, this is a unique bug on
> my configuration, which cannot be reproduced by anyone else. At the moment,
> as a solution, I use the dhcp=internal parameter from comment#7 and it works
> fine all the time.

I have a brand new mini PC ASUS ExpertCenter PN52 and I have the same problem. The network disconnects every few days. I have not noticed the same error in another mini PC (Intel® NUC Kit NUC8i7BEH). Both computers have the same software Tumbleweed 20221202.
Comment 46 Raija Ruuska 2022-12-05 17:23:35 UTC
I have a brand new mini PC ASUS ExpertCenter PN52 and I have the same problem. The network disconnects every few days. I have not noticed the same error in another mini PC (Intel® NUC Kit NUC8i7BEH). Both computers have the same software Tumbleweed 20221202.
Comment 47 Raija Ruuska 2022-12-07 07:35:34 UTC
I have spent my time researching this problem, even though I am only a 65 year old retired female engineer.
I noticed that journalctl had a lot of 'localhost.localdomain nscd[949]: 949 checking for monitored file `/etc/services': No such file or directory' log (see No such file or directory.txt).
I copied the services file: cp /usr/etc/services /etc/ and it seems that the network connection stays on now (see the end of No such file or directory.txt)

The failure is on in log file: failure.txt
Startup of PN52 in log file: startup.txt

p.s. I'll let you know if/when the network connection fails again.
Comment 48 Raija Ruuska 2022-12-07 07:39:19 UTC
Created attachment 863376 [details]
Journalctl log when network is down
Comment 49 Raija Ruuska 2022-12-07 07:45:37 UTC
Created attachment 863377 [details]
journalctl computer startup log after network failure
Comment 50 Raija Ruuska 2022-12-07 07:46:50 UTC
Created attachment 863378 [details]
No such file or directory.txt
Comment 51 Raija Ruuska 2022-12-07 07:50:24 UTC
Created attachment 863379 [details]
information about my computer
Comment 52 Raija Ruuska 2022-12-13 04:02:23 UTC
The error came again. For a few days the network connection worked ok.
The connection can be revived at least this way:
1. close the computer and disconnect the LAN cable.
2. start the computer
3. when it is running, then connect the LAN cable

Operating System: openSUSE Tumbleweed 20221211
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-1-default (64-bit)
Graphics Platform: X11
Processors: 16 x AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: MINIPC PN52

p.s. does anyone read my writings and logs, or am I collecting information in vain?
Comment 53 Raija Ruuska 2022-12-13 04:06:05 UTC
Created attachment 863480 [details]
journalctl log when the error occurred
Comment 54 Raija Ruuska 2022-12-13 04:10:01 UTC
Created attachment 863481 [details]
journalctl log after reboot
Comment 55 Reinhard Max 2022-12-16 20:24:34 UTC
Raija, thanks for your efforts! The logs you provided are appreciated.

But your issue seems to have a different reason than Vladislav's, although the symptoms might look similar at first sight.

Both systems have network cards that are run by the r8169 driver, but in your case the kernel reports an error and stack trace about the driver when the network goes down (starting with "NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out"), whereas in Vladislav's case no kernel errors happen, but DHCP-ACK packets are missing.

I'll have another look at this next week and then maybe open a separate bug report for your issue.

BTW, r8169 has quite a history of being unstable in various ways, I also had huge problems with it on a rented server a few years ago where I found no working solution and ended up using an Intel network card instead. Of course this doesn't help if the network chip is on-board and the board has no slot for an add-on network card.
Comment 56 Vladislav Milenin 2023-01-24 11:26:45 UTC
On New Year's Eve, I bought a new SSD drive and reinstalled the system. It has been working fine for more than two weeks and the bug has not appeared again.
Comment 57 Raija Ruuska 2023-02-06 19:04:44 UTC
FYI, I disabled the Powerline-Ethernet-Kit, and the problem has not occurred anymore. So apparently the fault was in the cooperation between that device and the ASUS PN52?

https://www.amazon.com/Zyxel-PLA-401-Powerline-Ethernet-Kit/dp/B008J4ART8
Comment 58 Jonathan Kang 2023-06-15 02:02:05 UTC
NetworkManager in Tumbleweed defaults to use its internal dhcp client instead of dhclient for some time. This issue is dhclient specific, and it's difficult to reproduce as well. So closing this as RESOLVED WORKSFORME.

Feel free to re-open if this can still be reproduced in your system.