LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2021, 02:52 PM   #31
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,355

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067

Maybe, something interesting with dhcp=dhcpcd

In /var/log/syslog
Code:
NetworkManager[3451]: <warn>  [1631043602.4068] dhcp-listener: dhcp-event: (pid 3489) unhandled DHCP event for interface wlan0
dhcpcd[3490]: ps_ctl_dispatch: cannot handle another client
Problems with NM/dhcpcd seems to be more or less recurrent ...

https://www.linuxquestions.org/quest...ks-4175632561/

https://www.linuxquestions.org/quest...er-4175576144/

Last edited by marav; 09-07-2021 at 02:56 PM.
 
Old 09-08-2021, 03:36 PM   #32
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
I got this same issue and in my case, before finding this thread, I went for option 2 ie setting "dhcp=dhclient" in /etc/NetworkManager/conf.d/00-dhcp-client.conf and it solved the issue for me.
 
Old 09-10-2021, 11:18 AM   #33
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 857

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
I am also bitten by this issue. Very annoying.
Will try one of the workarounds next time I sleep the PC.
 
Old 09-11-2021, 06:30 AM   #34
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
Morning,

I've recently installed slackware-current and also having this issue on the wlan interface when my Dell laptop wakes from sleep.

Quote:
Originally Posted by mcnalu View Post
I got this same issue and in my case, before finding this thread, I went for option 2 ie setting "dhcp=dhclient" in /etc/NetworkManager/conf.d/00-dhcp-client.conf and it solved the issue for me.
I've done with this option, at least partially because I'm familiar with dhclient from the past. It seems to have resolved the issue for me.

Cheers,
Steve
 
1 members found this post helpful.
Old 09-11-2021, 12:30 PM   #35
trollog
Member
 
Registered: Oct 2014
Posts: 151

Rep: Reputation: Disabled
Which Fix?

What I am wondering is:

Will there be an upstream fix for this, or is the config file tweak the solution that will
go into 15.0?

Which will be the final fix here?
 
Old 09-11-2021, 12:38 PM   #36
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,355

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067
Quote:
Originally Posted by trollog View Post
What I am wondering is:

Will there be an upstream fix for this, or is the config file tweak the solution that will
go into 15.0?

Which will be the final fix here?
https://gitlab.freedesktop.org/Netwo...r/-/issues/796
Code:
I would still first fix the dhcp-listener warnings. 
The simplest solution seems to use dhcp=internal in NetworkManager.conf. 
That is the default, and there are few reasons to choose anything else

Last edited by marav; 09-11-2021 at 12:40 PM.
 
2 members found this post helpful.
Old 09-11-2021, 01:52 PM   #37
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,355

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067
Ok, I got it

I read it 10 times without really seeing it ...
Code:
* The dhcpcd plugin now requires a minimum version of dhcpcd-9.3.3 with
  the --noconfigure option. Using an older version will cause dhcpcd to
  exit with a status code of 1.
https://gitlab.freedesktop.org/Netwo...b/1.32.10/NEWS

So,
Code:
--- 00-dhcp-client.conf 2021-09-11 20:50:47.337126759 +0200
+++ 00-dhcp-client.conf.new     2021-09-11 20:50:39.594224100 +0200
@@ -1,7 +1,7 @@
 [main]
 # Choose a DHCP client below. Upstream recommends internal, but results may vary.
 # dhcpcd is the DHCP client usually used by Slackware:
-dhcp=dhcpcd
+dhcp=dhcpcd --noconfigure
 # dhclient is the ISC reference DHCP client, part of the dhcp package:
 #dhcp=dhclient
 # This is a simple DHCP client that is built into NetworkManager:
Work like a charm after suspend/resume here

It would be great if @Pat can provide it with the next rebuilt ;-)

Last edited by marav; 09-11-2021 at 01:58 PM.
 
6 members found this post helpful.
Old 09-11-2021, 02:38 PM   #38
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451

Original Poster
Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Wow. "dhcp=dhcpcd --noconfigure" is working here as well, and there's no sign of any dhcp-related processes in "ps ax" on either side of resume.
 
Old 09-11-2021, 03:39 PM   #39
Loomx
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 184

Rep: Reputation: Disabled
Good find :-)

I'm wondering if it is better to add the "--noconfigure" option to /etc/dhcpcd.conf instead?
Otherwise every forum/wiki/blog post that gives a dhcpcd command line to run will trip over the same error.

I think the line to add would be:
Code:
env if_configured=false
I haven't tested it yet though
 
Old 09-11-2021, 10:58 PM   #40
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by ctrlaltca View Post
It seems like networkmanager doesn't kill the old dhcpcd while suspending, and after resume it tried to start a new client that fails since another instance of dhcpcd is already rinning.
Changing the dhcp client used by networkmanager in /etc/NetworkManager/conf.d/00-dhcp-client.conf could workaround this, but i suppose that there's a root cause that needs proper fixing here.
It's not really solved yet.

EDIT: i can confirm that setting "dhcp=internal" in /etc/NetworkManager/conf.d/00-dhcp-client.conf is a workaround for the problem
Same problem here. The workaround is working for me too so far.
 
Old 09-12-2021, 09:50 AM   #41
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,355

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067
From what we can see, NetworkManager Devs seems to know better than anyone else how to do dhcp ...
Code:
    /* Don't configure anything, we will do that instead.
     * This requires dhcpcd-9.3.3 or newer.
     * Older versions only had an option not to install a default route,
     * dhcpcd still added addresses and other routes so we no longer support that
     * as it doesn't fit how NetworkManager wants to work.
     */
https://github.com/NetworkManager/Ne...-dhcp-dhcpcd.c

And after the problems that many of us have encountered
It might not be a bad idea to switch permanently to dhcp=internal to get away from it all
 
Old 09-12-2021, 12:06 PM   #42
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 857

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Quote:
Originally Posted by chrisretusn View Post
Well glad to hear I'm not the lone stranger. Had this issue with my laptop that I hibernate. I tried the dhcp=internal setting, it does not work for me. I still have to reboot or:
Code:
/etc/rc.d/rc.networkmanager stop
killall -9 dhcpcd
/etc/rc.d/rc.networkmanager start
I confirm this workaround works as advertised in my case. Very annoying indeed. Thanks for providing us a way to get out of it.
 
Old 09-12-2021, 12:16 PM   #43
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by marav View Post
Ok, I got it

I read it 10 times without really seeing it ...
Code:
* The dhcpcd plugin now requires a minimum version of dhcpcd-9.3.3 with
  the --noconfigure option. Using an older version will cause dhcpcd to
  exit with a status code of 1.
https://gitlab.freedesktop.org/Netwo...b/1.32.10/NEWS
I too had seen it without actually seeing it. That's why we upgraded to dhcpcd-9.4.0, as the way I had read that statement was "we need at least 9.3.3 in order for this to work."

My impression was that NM would exec dhcpcd with the --noconfigure option on its own, given that it expects the option to be there. A reading of src/core/dhcp/nm-dhcp-dhcpcd.c in the NM source indicates that is indeed what should be happening, so it seems that we have a different problem.
 
1 members found this post helpful.
Old 09-12-2021, 08:04 PM   #44
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,355

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067
Quote:
Originally Posted by rworkman View Post
I too had seen it without actually seeing it. That's why we upgraded to dhcpcd-9.4.0, as the way I had read that statement was "we need at least 9.3.3 in order for this to work."

My impression was that NM would exec dhcpcd with the --noconfigure option on its own, given that it expects the option to be there. A reading of src/core/dhcp/nm-dhcp-dhcpcd.c in the NM source indicates that is indeed what should be happening, so it seems that we have a different problem.
This doesn't help for our problem, but according to NetworkManager 1.32.10 ./configure --help

--without-resolvconf
seems to be
--with-resolvconf=no

and
--enable-json-validation
doesn't seems to exist anymore

PS : I have no skill to determine or interpret whether it is good or not ...
 
Old 09-13-2021, 08:19 PM   #45
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,355

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067
Quote:
Originally Posted by pghvlaans View Post
Wow. "dhcp=dhcpcd --noconfigure" is working here as well, and there's no sign of any dhcp-related processes in "ps ax" on either side of resume.
Solved !
Quote:
Mon Sep 13 18:04:35 UTC 2021
...
n/NetworkManager-1.32.10-x86_64-2.txz: Rebuilt.
00-dhcp-client.conf: Add the --noconfigure option to dhcpcd, or else the
network won't return after suspend/resume.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
#WIFI IP Loss - #Ubuntu #Zesty fails to obtain #IP when logged to #Router via WIFI tarant8l Linux - Wireless Networking 1 10-05-2017 08:07 AM
Loss Of Network Connection After Power Loss etpoole60 Linux - Networking 4 11-02-2014 07:55 PM
Loss Of Network Connection After Power Loss etpoole60 Linux - Virtualization and Cloud 2 10-27-2014 03:14 PM
Network Connection Loss And USB Connection Loss. Novatian Linux - Desktop 1 11-07-2008 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration