View previous topic :: View next topic |
Author |
Message |
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
Posted: Wed Nov 27, 2013 3:59 pm Post subject: openrc-12.4: services gone mad after update |
|
|
Hi, I've updated my gentoo and a few problems with services arised.
1) net.* services are not started automaticaly even though they are in default runlevel. However I can start them manualy. Well, most of them.
2) rc-service <anything> iprovide returns nothing
3) hostapd suddenly won't start, because wireless interface will not start because it sudenly requires wpa_supplicant which won't start because it doesn't have config file, since that interface has always worked in master mode.
4) dhcpd sudenly depends on net.eth1, which doesn't exist as it's called net.enp3s7 since udev-187 or something similar (like 1 year ago?)
Services that don't require network are started just like before upgrade
Code: | # rc-service dhcpd start
* ERROR: hostapd needs service(s) net.wlp3s5
* ERROR: lan-noudev needs service(s) net.eth1
* ERROR: cannot start dhcpd as hostapd would not start
# rc-service hostapd start
* ERROR: hostapd needs service(s) net.wlp3s5
# rc-service net.wlp3s5 start
* Bringing up interface wlp3s5
* Starting wpa_supplicant on wlp3s5 ...
* /etc/wpa_supplicant/wpa_supplicant.conf not found [ !! ]
* ERROR: net.wlp3s5 failed to start
# rc-service net.wlp3s5 iprovide
# rc-service net.enp2s0 iprovide
|
related use flags:
Code: | emerge -pv openrc
[ebuild R ] sys-apps/openrc-0.12.4 USE="ncurses netifrc pam unicode -debug -newnet (-prefix) (-selinux) -static-libs -tools" 0 kB
|
any ideas what might be broken?
edit: even net.lo doesn't start
Code: |
# rc-config show all
Status of init scripts in runlevel "boot"
alsasound [started]
bootmisc [started]
fsck [started]
hostname [started]
hwclock [started]
keymaps [started]
localmount [started]
loopback [started]
metalog [started]
modules [started]
mtab [started]
net.lo [stopped]
procfs [started]
root [started]
smartd [started]
swap [started]
swapfiles [started]
sysctl [started]
termencoding [started]
tmpfiles.setup [started]
urandom [started]
Status of init scripts in runlevel "default"
atftp [stopped]
avahi-daemon [started]
avahi-dnsconfd [stopped]
bluetooth [started]
consolefont [started]
dbus [started]
dhcpd [stopped]
distccd [started]
firewall [started]
local [started]
net.br0 [stopped]
net.enp2s0 [stopped]
net.enp3s7 [stopped]
net.vn0 [stopped]
netmount [started]
nfs [started]
ntpd [started]
sshd [started]
xdm [started]
Status of init scripts in runlevel "shutdown"
killprocs [stopped]
mount-ro [stopped]
savecache [stopped]
Status of init scripts in runlevel "sysinit"
devfs [started]
dmesg [started]
lvm [started]
sysfs [started]
tmpfiles.dev [started]
udev [started]
udev-mount [started]
| however:
Code: | # ifconfig
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.10.101 netmask 255.255.255.0 broadcast 10.0.10.255
inet6 fe80::de9c:52ff:fe07:2d7f prefixlen 64 scopeid 0x20<link>
ether xxx txqueuelen 1000 (Ethernet)
RX packets 1902 bytes 1581131 (1.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1921 bytes 258416 (252.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18
enp3s7: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether xxx txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 4 bytes 240 (240.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 240 (240.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s5: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether xxx txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
|
|
Back to top |
|
|
lexflex Guru
Joined: 05 Mar 2006 Posts: 363 Location: the Netherlands
|
Posted: Wed Nov 27, 2013 6:16 pm Post subject: |
|
|
Hi Szatox,
I had similar problems some time ago after upgrading to openrc- 12.4( i.e. net.lo and net.eth0 wouldn't start, but networking was present using ifconfig).
What does
Code: | /etc/init.d/net.lo start
| give ?
It appears net.lo is now provided by netifrc:
Although netifrc might already be installed, re-emerging helped in my case:
Code: | emerge --ask net-misc/netifrc
|
Alex. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
Posted: Thu Nov 28, 2013 9:51 am Post subject: |
|
|
Thanks for reply, unfortunately re-emerging netifrc didn't do the trick for me.
All net.* services can be started manualy and then work fine - except for wireless device which appears to have conflict on its own... The point is they don't start even though they are explicitly mentioned in boot (net.lo) and default (phisical interfaces and bridges) runlevels.
* Bringing up interface lo
* 127.0.0.1/8 ... [ ok ]
* Adding routes
* 127.0.0.0/8 via 127.0.0.1 ...
've also checked out my another computer with openrc-0.11.8. In 12.4 there is new service, loopback conflicting with net.lo. Disabling it still doesn't make net.* run automaticaly during boot though.
edit: I have noticed something. After restart there are 4 interfaces:
local loopback, up and running (even though loopback service is disabled, and net.lo is not started)
enp2s0, up and running, configured with external dhcp - net.enp2s0 is not started
enp3s7 up but not configured. It used to have static configuration used by local network. net.enp3s7 not started
wireless up but not configued, just like above
2 bridges are missing.
Grepping through logs points at dhcpcd which is a service on it's own now. Time to find out if it is what is messing up
edit: it's not. It does bring interfaces up, but after disabling it still no net.* iprovide returns net. Or anything. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
Posted: Sat Nov 30, 2013 12:16 pm Post subject: |
|
|
For all those who run into troubles with openrc:
Dependency cache sometimes gets out of sync. When things go wrong, use `rc-update --update` and check if it helped.
EOT. |
|
Back to top |
|
|
octavsly n00b
Joined: 22 Aug 2007 Posts: 23 Location: Eindhoven, HTC
|
Posted: Thu Aug 14, 2014 10:36 pm Post subject: |
|
|
szatox wrote: | For all those who run into troubles with openrc:
Dependency cache sometimes gets out of sync. When things go wrong, use `rc-update --update` and check if it helped.
EOT. |
Did the trick for me... but after searching for several hours why the net is not started |
|
Back to top |
|
|
cool-explosion n00b
Joined: 15 Aug 2014 Posts: 1
|
Posted: Fri Aug 15, 2014 11:28 pm Post subject: ERROR: netmount needs service(s) net |
|
|
Same problem with clean install from last stage, same solution:
rc-update --update
octavsly wrote: | szatox wrote: | For all those who run into troubles with openrc:
Dependency cache sometimes gets out of sync. When things go wrong, use `rc-update --update` and check if it helped.
EOT. |
Did the trick for me... but after searching for several hours why the net is not started |
|
|
Back to top |
|
|
|