Artix Linux Forum

Init systems => runit => Topic started by: The_K123 on 28 November 2023, 02:05:07

Title: [SOLVED] networkmanager not working
Post by: The_K123 on 28 November 2023, 02:05:07
Hello, Artix newbie here.
I have been trying to get networkmanager working on my new runit Artix install, yet no matter what I try, it is still missing.
When I ping google.com, I get an error that states "ping: google.com: Temporary failure in name resolution"
Could you people explain what I am doing wrong?
Title: Re: networkmanager not working
Post by: gripped on 28 November 2023, 03:27:20
Try ping 1.1.1.1
Code: [Select]
❯ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=56 time=6.48 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=56 time=6.95 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=56 time=5.74 ms

If you get replies as above it's a problem with DNS.

What is the output of
Code: [Select]
cat /etc/resolv.conf
Title: Re: networkmanager not working
Post by: The_K123 on 28 November 2023, 04:53:39
Sorry for the late reply, but I inputted the commands that you told me.
When I input "ping 1.1.1.1", the error is "ping: connect: Network is unreachable".
When I do the cat command, it says "# Resolver configuration file. #See resolv.conf(5) for details"
Title: Re: networkmanager not working
Post by: gripped on 28 November 2023, 11:13:30
That was the the first thing to check.

As you have have no network connection at all you need to give more detail.
What type of connection, wired or wifi ?
Quote
yet no matter what I try, it is still missing
What have you tried ? Show the output.
Title: Re: networkmanager not working
Post by: The_K123 on 28 November 2023, 23:54:16
I am using a wired connection.
I have tried things like trying to reinstall networkmanager from the live installation media.
Title: Re: networkmanager not working
Post by: gripped on 29 November 2023, 00:29:40
You used the plural of thing yet only mentioned one thing you tried.





Title: Re: networkmanager not working
Post by: The_K123 on 29 November 2023, 07:33:13
Other things include trying to re-add the networkmanager service into the runit service directory, and launching the service manually.



I think it would be easier to redo the install at this point.
Title: Re: networkmanager not working
Post by: Ambie on 29 November 2023, 10:04:12
I think it would be easier to redo the install at this point.

Redo install is always easier. Don't you want to know the reasons of malfunction?

Did you try to increase verbosity of runit service? I am not an expert in runit or networkmanager but I guess there's gonna be a way to see why networkmanager doesn't connect. Did you try to connect other ways? Did you check your ethernet card status? Did you look in your dmesg?
Title: Re: networkmanager not working
Post by: gripped on 29 November 2023, 13:50:51
What is the output of
Code: [Select]
ip link show
Title: Re: networkmanager not working
Post by: The_K123 on 29 November 2023, 22:15:03
The output of the command is
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group DEFAULT qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisk noop state DOWN mode DEFAULT group DEFAULT qlen 1000
     link/ether 54:e1:ad:bb:4b:d7 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisk noop state DOWN mode DEFAULT group DEFAULT qlen 1000
     link/ether 44:03:2c:a2:67:2d brd ff:ff:ff:ff:ff:ff
Title: Re: networkmanager not working
Post by: gripped on 30 November 2023, 01:55:09
Well your device is there then.
I don't use networkmanager and consider it overkill for a wired connection.
But in theory it should just work with a wired connection I think?

You mentioned " launching the service manually". What I would be trying is stopping the service and then running networkmanager directly in a terminal to see the output. But before that I'd have a look in the log files under /var/log as if it really has been running then there should be some errors / information in there. /var/log/daemon.log /var/log/syslog.log.

What is the output of
Code: [Select]
sudo dhcpcd eth0
(preferably with networkmanager service stopped as before)

Title: Re: networkmanager not working
Post by: The_K123 on 08 December 2023, 05:29:36
Sorry for the (very) late reply, but I was able to fix the issue by reinstalling Artix. I probably messed something up and/or forgot to do something in the previous install. Thanks a lot either way though.