Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openrc-12.4: services gone mad after update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3131

PostPosted: Wed Nov 27, 2013 3:59 pm    Post subject: openrc-12.4: services gone mad after update Reply with quote

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
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 363
Location: the Netherlands

PostPosted: Wed Nov 27, 2013 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3131

PostPosted: Thu Nov 28, 2013 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3131

PostPosted: Sat Nov 30, 2013 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
octavsly
n00b
n00b


Joined: 22 Aug 2007
Posts: 23
Location: Eindhoven, HTC

PostPosted: Thu Aug 14, 2014 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
cool-explosion
n00b
n00b


Joined: 15 Aug 2014
Posts: 1

PostPosted: Fri Aug 15, 2014 11:28 pm    Post subject: ERROR: netmount needs service(s) net Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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