Skip to main content
Topic: Network problems after installing runit and removing openrc (Read 4631 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Network problems after installing runit and removing openrc

Personally, I've always found NetworkManager to be a giant pain that mysteriously breaks. I just use dhcpcd and the wpa_supplicant hook.

When I boot now and run ifconfig I only get lo
When I enable eth0 I only get inet6 (ipv6 dns and addressing)
When I used ifcfg eth0 add 192.168.1.1 (router's ip)
If I use the ip that is given by the router it works and inet4 begins to communicate.
I have installed dhcpd maybe I haven't been able to get the service to start and run properly yet

NetworkManager is out of the window and once I figure out how to do this it will be out of the window for my openrc artix as well.


Re: Network problems after installing runit and removing openrc

Reply #1
I remembered this is related to NetworkManager using /etc/machine-id.
Using regular dhcpcd (/etc/runit/sv/dhcpcd), I got a normal IPv4 connection.

Try the solution given here.
now only the dinit guy in artix


Re: Network problems after installing runit and removing openrc

Reply #3
I remembered this is related to NetworkManager using /etc/machine-id.
Using regular dhcpcd (/etc/runit/sv/dhcpcd), I got a normal IPv4 connection.

Try the solution given here.

Code: [Select]
[artix@mack ~]$ sudo dbus-uuidgen  >| /etc/machine-id
bash: /etc/machine-id: Permission denied
[artix@mack ~]$ sudo dbus-uuidgen  >| /var/lib/dbus/machine-id
bash: /var/lib/dbus/machine-id: Permission denied

The only warning I get now on the boot screen is about lvm device not found and having to fall back lvmetad


 

Re: Network problems after installing runit and removing openrc

Reply #4
could this be a problem?  Why would a gremlins pkg be of lower number than stable?
Code: [Select]
1 galaxy-gremlins/dnscrypt-proxy-runit 20180330-1 (runit-galaxy) [installed: 20180406-1]
    runit service scripts for dnscrypt-proxy
2 galaxy/dnscrypt-proxy-runit 20180406-1 (runit-galaxy) [installed]
    runit service scripts for dnscrypt-proxy


Re: Network problems after installing runit and removing openrc

Reply #6
Code: [Select]
[artix@mack ~]$ sudo dbus-uuidgen  >| /etc/machine-id
bash: /etc/machine-id: Permission denied
[artix@mack ~]$ sudo dbus-uuidgen  >| /var/lib/dbus/machine-id
bash: /var/lib/dbus/machine-id: Permission denied

The only warning I get now on the boot screen is about lvm device not found and having to fall back lvmetad



Permission is denied because you're only using sudo to generate the dbus-uuid and you're trying to pass it to /etc/machine-id directly as your own user. You need to login as root (just su and running the command again should be enough).

could this be a problem?  Why would a gremlins pkg be of lower number than stable?
Code: [Select]
1 galaxy-gremlins/dnscrypt-proxy-runit 20180330-1 (runit-galaxy) [installed: 20180406-1]
    runit service scripts for dnscrypt-proxy
2 galaxy/dnscrypt-proxy-runit 20180406-1 (runit-galaxy) [installed]
    runit service scripts for dnscrypt-proxy


Huh? Jenkins must've skipped some moves.
Package in [galaxy-gremlins] removed.
now only the dinit guy in artix


Re: Network problems after installing runit and removing openrc

Reply #8
I am still facing problems, I have exhausted all possiblilities that I know and can think about.
The problem seems to be dns related and I have tried removing and installing pkgs relating to dns or resolv.conf
Some network branches do not seem to resolve correctly, for example on the mirrorlist I get the following errors:

Code: [Select]
:: Synchronizing package databases...
error: failed retrieving file 'gremlins.db' from mirror.clarkson.edu :
error: failed retrieving file 'gremlins.db' from artix.wheaton.edu :
error: failed retrieving file 'gremlins.db' from mirror.strits.dk :
error: failed retrieving file 'gremlins.db' from www.uex.dk :
error: failed retrieving file 'gremlins.db' from mirror1.artixlinux.org :
 gremlins is up to date                 0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'system.db' from mirror.clarkson.edu :
error: failed retrieving file 'system.db' from artix.wheaton.edu :
error: failed retrieving file 'system.db' from mirror.strits.dk :
error: failed retrieving file 'system.db' from www.uex.dk :
error: failed retrieving file 'system.db' from mirror1.artixlinux.org :
 system is up to date                   0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'world.db' from mirror.clarkson.edu :
error: failed retrieving file 'world.db' from artix.wheaton.edu :
error: failed retrieving file 'world.db' from mirror.strits.dk :
error: failed retrieving file 'world.db' from www.uex.dk :
error: failed retrieving file 'world.db' from mirror1.artixlinux.org :
 world is up to date                    0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'galaxy-gremlins.db' from mirror.clarkson.edu :
error: failed retrieving file 'galaxy-gremlins.db' from artix.wheaton.edu :
error: failed retrieving file 'galaxy-gremlins.db' from mirror.strits.dk :
error: failed retrieving file 'galaxy-gremlins.db' from www.uex.dk :
error: failed retrieving file 'galaxy-gremlins.db' from mirror1.artixlinux.org :
 galaxy-gremlins is up to date          0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'galaxy.db' from mirror.clarkson.edu :
error: failed retrieving file 'galaxy.db' from artix.wheaton.edu :
error: failed retrieving file 'galaxy.db' from mirror.strits.dk :
error: failed retrieving file 'galaxy.db' from www.uex.dk :
error: failed retrieving file 'galaxy.db' from mirror1.artixlinux.org :
 galaxy is up to date                   0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'extra.db' from archlinux.beccacervello.it :
error: failed retrieving file 'extra.db' from archlinux.mirror.pkern.at :
error: failed retrieving file 'extra.db' from mirrors.uni-plovdiv.net :
 extra is up to date
error: failed retrieving file 'community-testing.db' from archlinux.beccacervello.it :
error: failed retrieving file 'community-testing.db' from archlinux.mirror.pkern.at :
error: failed retrieving file 'community-testing.db' from mirrors.uni-plovdiv.net :
 community-testing is up to date
error: failed retrieving file 'community.db' from archlinux.beccacervello.it :
error: failed retrieving file 'community.db' from archlinux.mirror.pkern.at :
error: failed retrieving file 'community.db' from mirrors.uni-plovdiv.net :
 community is up to date

I have by shifting the ones that work to the bottom effectively created the list that has problems, I can just switch the order making the one that works on top and get no errors, but that is not the issue.  It doesn't have to do with http or https, I get good hits and bad ones with both.
Browsing some sites is the same, more than half I have no access to.  My resolve.conf was custom made, I reverted to the isp's/router's standard and there is no difference.  So the issue is internal.  On the same machine all other installations including artix-openrc do not have any problems.

Re: Network problems after installing runit and removing openrc

Reply #9
I am still facing problems, I have exhausted all possiblilities that I know and can think about.
The problem seems to be dns related and I have tried removing and installing pkgs relating to dns or resolv.conf
Some network branches do not seem to resolve correctly, for example on the mirrorlist I get the following errors:

Code: [Select]
:: Synchronizing package databases...
error: failed retrieving file 'gremlins.db' from mirror.clarkson.edu :
error: failed retrieving file 'gremlins.db' from artix.wheaton.edu :
error: failed retrieving file 'gremlins.db' from mirror.strits.dk :
error: failed retrieving file 'gremlins.db' from www.uex.dk :
error: failed retrieving file 'gremlins.db' from mirror1.artixlinux.org :
 gremlins is up to date                 0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'system.db' from mirror.clarkson.edu :
error: failed retrieving file 'system.db' from artix.wheaton.edu :
error: failed retrieving file 'system.db' from mirror.strits.dk :
error: failed retrieving file 'system.db' from www.uex.dk :
error: failed retrieving file 'system.db' from mirror1.artixlinux.org :
 system is up to date                   0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'world.db' from mirror.clarkson.edu :
error: failed retrieving file 'world.db' from artix.wheaton.edu :
error: failed retrieving file 'world.db' from mirror.strits.dk :
error: failed retrieving file 'world.db' from www.uex.dk :
error: failed retrieving file 'world.db' from mirror1.artixlinux.org :
 world is up to date                    0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'galaxy-gremlins.db' from mirror.clarkson.edu :
error: failed retrieving file 'galaxy-gremlins.db' from artix.wheaton.edu :
error: failed retrieving file 'galaxy-gremlins.db' from mirror.strits.dk :
error: failed retrieving file 'galaxy-gremlins.db' from www.uex.dk :
error: failed retrieving file 'galaxy-gremlins.db' from mirror1.artixlinux.org :
 galaxy-gremlins is up to date          0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'galaxy.db' from mirror.clarkson.edu :
error: failed retrieving file 'galaxy.db' from artix.wheaton.edu :
error: failed retrieving file 'galaxy.db' from mirror.strits.dk :
error: failed retrieving file 'galaxy.db' from www.uex.dk :
error: failed retrieving file 'galaxy.db' from mirror1.artixlinux.org :
 galaxy is up to date                   0.0   B  0.00B/s 00:00 [----------------------------------]   0%
error: failed retrieving file 'extra.db' from archlinux.beccacervello.it :
error: failed retrieving file 'extra.db' from archlinux.mirror.pkern.at :
error: failed retrieving file 'extra.db' from mirrors.uni-plovdiv.net :
 extra is up to date
error: failed retrieving file 'community-testing.db' from archlinux.beccacervello.it :
error: failed retrieving file 'community-testing.db' from archlinux.mirror.pkern.at :
error: failed retrieving file 'community-testing.db' from mirrors.uni-plovdiv.net :
 community-testing is up to date
error: failed retrieving file 'community.db' from archlinux.beccacervello.it :
error: failed retrieving file 'community.db' from archlinux.mirror.pkern.at :
error: failed retrieving file 'community.db' from mirrors.uni-plovdiv.net :
 community is up to date

I have by shifting the ones that work to the bottom effectively created the list that has problems, I can just switch the order making the one that works on top and get no errors, but that is not the issue.  It doesn't have to do with http or https, I get good hits and bad ones with both.
Browsing some sites is the same, more than half I have no access to.  My resolve.conf was custom made, I reverted to the isp's/router's standard and there is no difference.  So the issue is internal.  On the same machine all other installations including artix-openrc do not have any problems.


1. Have you generated /etc/machine-id? I've got no response from you after this post aside from.. a like.
2. Have you enabled the dbus service for runit?
3. Have you tried wicd/connman?

I can reproduce this with NetworkManager, but this was caused by an empty/invalid /etc/machine-id.
now only the dinit guy in artix

Re: Network problems after installing runit and removing openrc

Reply #10
1  yes no difference
2 yes  dbus-daemon and dbus-launch are running
3 neither seem to help but while trying to get this to work I got this error

Code: [Select]
connman-gtk

(connman-gtk:16164): Gtk-WARNING **: 18:06:24.450: Locale not supported by C library.
Using the fallback 'C' locale.

** (connman-gtk:16164): ERROR **: 18:06:24.499: failed to connect to system dbus: Could not connect: No such file or directory
Trace/breakpoint trap

Re: Network problems after installing runit and removing openrc

Reply #11
out of frustration I did something wild (as in wildcard)

Code: [Select]
$ sudo ln -s /etc/runit/sv/* /run/runit/service/

The problem went away, let's see what happens at reboot!
Well it seems as there were some that are problematic, like the ttys beyond 1-6
and a few other things.  Now I am going backwards, disabling services till I get to the one that was causing the problem

Would you recommend such practice to anyone having problems?

Is this normal or is there an error?
Code: [Select]
$ ls  /run/runit/service/dbus
 /run/runit/service/dbus -> /etc/runit/dbus
$  sv status dbus
fail: dbus: unable to change to service directory: file does not exist


Re: Network problems after installing runit and removing openrc

Reply #12
The symlink working seems to imply to me that for whatever reason the original symlink you did for enabling the service didn't work properly. Perhaps you typo'd the directory name somewhere and didn't realize it?

Re: Network problems after installing runit and removing openrc

Reply #13
Ok, but now, if there was a typing error, I have too many services linked
Why isn't sv status working or producing an error, like dbus which is essential, but for many services it doesn't work

Re: Network problems after installing runit and removing openrc

Reply #14
What exactly is sv status returning for you? It should at least tell you if something is running or not. For example, something like this.

Code: [Select]
# sv status dbus  
run: dbus: (pid 648) 332775s