Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NetworkManager inactive [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 230

PostPosted: Fri Jan 10, 2025 12:04 pm    Post subject: NetworkManager inactive [Solved] Reply with quote

Hello forum,

I read quite a few threads relating to the inactive NetworkManager issue, but none of them was helpful, so I am back asking for some help on how to resolve this issue. The strange thing I find is that on many other Linux distros I tried, all these connection issues do not appear, and I am up and running without a glitch. But, with Gentoo, at least this time, it seems harder than I thought, coming from previous succesfull installations on other machines.

I am using NetworkManager with iwd as a backend, following the Gentoo wiki.

Here are some logs that were asked in those threads, which I am posting as a starting point:

rc-upate show https://dpaste.com/E7RRN25TY
ifconfig https://dpaste.com/BHNKJLZCC
nmcli con show https://dpaste.com/CPLRRBREL
ip a https://dpaste.com/BP5P2ZKD3.

For any further infor needed, please ask and I will provide it.

Thank you in advance for any input and support.


Last edited by enrico68 on Fri Jan 10, 2025 3:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3846
Location: Rasi, Finland

PostPosted: Fri Jan 10, 2025 12:52 pm    Post subject: Reply with quote

Hi.
I have one box which sometime shows the same behavior as yours. Restarting networkmanager fixes the issue.
The issue however seems to occur after newly booted system.

I also noticed that I have loads of dhcpcd zombie processes:
Code:
M710q ~ # pgrep dhcpcd | wc -l
68

I have replaced the wifi-card, but the same behavior continues...
I've recompiled dhcpcd with "more relaxed" optimization, but that didn't change anything.
Strange thing is, that I have more or less the same settings on my other boxes, and those work flawlessly, even my coreboot flashed Chromebox.

I guess I could try to compile networkmanager with USE="-dhcpcd dhclient"...

Do you also have dhcpcd enabled with networkmanager? Do you get zombified processes? Does your problem only occur after boot?
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 230

PostPosted: Fri Jan 10, 2025 2:23 pm    Post subject: Reply with quote

Hello Zucca,

no, I did not enable dhcpcd ,only NetworkManager and iwd. Like I said, for some weird reason, I tried with other distributions and this issue does not occur....it might be something related to my kernel config, which I set up following the wiki...
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 230

PostPosted: Fri Jan 10, 2025 2:57 pm    Post subject: Reply with quote

I am adding two more files, as they could be beneficial to understand what is going on:

rc-status boot default https://dpaste.com/9MF6UL3ZY

kernel config. https://dpaste.com/2CMSFYLGV
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3846
Location: Rasi, Finland

PostPosted: Fri Jan 10, 2025 3:16 pm    Post subject: Reply with quote

Please paste the output of
Code:
emerge --info networkmanager

_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 230

PostPosted: Fri Jan 10, 2025 3:31 pm    Post subject: Reply with quote

I managed to connect to the network, which makes me extremely happy!!

Here is how I did it: I deleted the NetworkManager service, then I added the dhcpcd service to the default runlevel, all processes done while chrooted using the Gentoo LiveCD, and rebooted into Gentoo.

Once logged in, I ran
Code:
rc-service dhcpcd stop
then
Code:
rc-service dhcpcd restart
then
Code:
dhcpcd wlan0
then I ran
Code:
rc-service iwd stop
then
Code:
rc-service iwd restart

and finally I could run the command iwctl and connect to my router. Of course, I deleted the /etc/iwd/main.conf, as I am using iwd not as standalone, but together with dhcp, which renders that main.conf file useless.

I explained my steps hoping that my solution may be of some help to those who experience the same issues with NetworkManager being inactive... :wink:
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 230

PostPosted: Fri Jan 10, 2025 3:35 pm    Post subject: Reply with quote

Zucca wrote:
Please paste the output of
Code:
emerge --info networkmanager


Thank you Zucca for trying to help me....much appreciated! :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum