NetworkManager and audio not working after update [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

NetworkManager and audio not working after update [Solved]

Postby barondem » Sun Mar 16, 2014 20:55

Hi! I updated today my sabayon laptop and after rebooting I had a bitter surprise: networking and audio don't work anymore; by checking systemd with systemadm I found that NetworkManager and alsa units (with some other ones) failed to start, so I have no sound and no networking (network widget doesn't appear and I cannot use neither Ethernet connection)... If I try to start it I get this error:
Code: Select all
NetworkManager:
dev-laptop federico # systemctl status NetworkManager.service -l
NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib64/systemd/system/NetworkManager.service; enabled)
   Active: failed (Result: exit-code) since dom 2014-03-16 18:39:38 CET; 29s ago
  Process: 4209 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=1/FAILURE)
 Main PID: 4209 (code=exited, status=1/FAILURE)

mar 16 18:39:38 dev-laptop.homenetwork systemd[1]: Starting Network Manager...
mar 16 18:39:38 dev-laptop.homenetwork NetworkManager[4209]: <info> NetworkManager (version 0.9.8.8) is starting...
mar 16 18:39:38 dev-laptop.homenetwork NetworkManager[4209]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
mar 16 18:39:38 dev-laptop.homenetwork NetworkManager[4209]: <info> WEXT support is enabled
mar 16 18:39:38 dev-laptop.homenetwork NetworkManager[4209]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
mar 16 18:39:38 dev-laptop.homenetwork NetworkManager[4209]: <error> [1394991578.794046] [main.c:547] main(): failed to initialize settings storage: Could not load plugin 'ifnet': /usr/lib64/NetworkManager/libnm-settings-plugin-ifnet.so: impossibile aprire il file oggetto condiviso: File o directory non esistente
mar 16 18:39:38 dev-laptop.homenetwork systemd[1]: NetworkManager.service: main process exited, code=exited, status=1/FAILURE
mar 16 18:39:38 dev-laptop.homenetwork systemd[1]: Failed to start Network Manager.
mar 16 18:39:38 dev-laptop.homenetwork systemd[1]: Unit NetworkManager.service entered failed state.

dev-laptop federico # journalctl -xn
-- Logs begin at mer 2013-09-04 12:51:10 CEST, end at dom 2014-03-16 20:50:01 CET. --
mar 16 20:46:46 dev-laptop.homenetwork NetworkManager[4818]: <info> NetworkManager (version 0.9.8.8) is starting...
mar 16 20:46:46 dev-laptop.homenetwork NetworkManager[4818]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
mar 16 20:46:46 dev-laptop.homenetwork NetworkManager[4818]: <info> WEXT support is enabled
mar 16 20:46:46 dev-laptop.homenetwork NetworkManager[4818]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
mar 16 20:46:46 dev-laptop.homenetwork NetworkManager[4818]: <error> [1394999206.637062] [main.c:547] main(): failed to initialize settings storage: Could not load plugin 'ifnet':
mar 16 20:46:46 dev-laptop.homenetwork NetworkManager[4818]: <info> exiting (error)
mar 16 20:46:46 dev-laptop.homenetwork systemd[1]: NetworkManager.service: main process exited, code=exited, status=1/FAILURE
mar 16 20:46:46 dev-laptop.homenetwork systemd[1]: Failed to start Network Manager.
-- Subject: Unit NetworkManager.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit NetworkManager.service has failed.
--
-- The result is failed.
mar 16 20:46:46 dev-laptop.homenetwork systemd[1]: Unit NetworkManager.service entered failed state.
mar 16 20:50:01 dev-laptop.homenetwork cron[4831]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)

ALSA:
dev-laptop federico # systemctl status alsa-state.service -l
alsa-state.service - Manage Sound Card State (restore and store)
   Loaded: loaded (/usr/lib64/systemd/system/alsa-state.service; static)
   Active: inactive (dead)
           start condition failed at dom 2014-03-16 20:43:52 CET; 3s ago
           ConditionPathExists=/etc/alsa/state-daemon.conf was not met

The updates were some general updates (about one hundred) and a manual kernel update (from 3.12 to 3.13); I also removed some old, unmanteined stuff (init, openrc, xf86-something, some plugin for openrc etc.).
As far as I've understood the problem seems correlated to some broken link to some NetworkManager's file (or simply to some missing file).
What can I do to fix this?
Last edited by barondem on Sat Mar 22, 2014 21:26, edited 1 time in total.
barondem
Baby Hen
 
Posts: 14
Joined: Wed Sep 04, 2013 14:11

Re: NetworkManager and audio not working after update

Postby pinkytoes » Mon Mar 17, 2014 20:07

not sure if...
this post
might help you. did the update steamroller any changes
that you made to blacklist.conf to unbreak your wifi?
Sabayon GNOME (64bit Steam) on acer v5 571p (also e1-572p)
pinkytoes
Simple Hen
 
Posts: 56
Joined: Sun Mar 02, 2014 20:06

Re: NetworkManager and audio not working after update

Postby imaginasys » Tue Mar 18, 2014 4:53

Check also these :

https://forum.sabayon.org/viewtopic.php?f=52&t=31486

https://bugs.sabayon.org/show_bug.cgi?id=4621

I just took off the [ifnet] section from /etc/NetworkManager/NetworkManager.conf at the end.

Regards,
Bernard :mrgreen:
imaginasys
Simple Hen
 
Posts: 51
Joined: Sat Nov 23, 2013 6:59

Re: NetworkManager and audio not working after update

Postby barondem » Tue Mar 18, 2014 22:18

imaginasys's was solution was the right one (although I had already corrected the issue by myself) and as I see I'm not the only one who's experiencing this problem... I also saw a bug report has been already submitted, so I shouldn't submit another one, should I?
Finally, is the deletion of "ifnet" plugin just a temporary workaround or is it a good and correct solution (that maybe could be applied automatically by the system, or which it could at least suggest in the "to be changed" configuration files section in rigo) that should not cause side effects?
barondem
Baby Hen
 
Posts: 14
Joined: Wed Sep 04, 2013 14:11

Re: NetworkManager and audio not working after update

Postby barondem » Tue Mar 18, 2014 23:29

Has anyone got any idea for the audio? I looked for some workaround but they didn't work...
EDIT: I don't know if actually there was any problem, but however now alsa seems to be working correctly and I got audio again working by just playing a bit with the audio mixer... (It showed the volume to the maximum but the speaker was disabled while the headphones weren't o.O)
So, solved! :)
barondem
Baby Hen
 
Posts: 14
Joined: Wed Sep 04, 2013 14:11

Re: NetworkManager and audio not working after update [Solve

Postby soupdragon » Thu Mar 27, 2014 19:22

If i may add my own 2 cents.

On my machine this is apparently what occurred. Your milage may vary.

Network manager REALLY WANTS TO start dhcp-client if installed, or dhcpd as fallback. If dhcpcd.service is already started it will jealously tantrum and fail, since it can't, you know, do the managing. Because dhcpcd.service already grabbed the interface control.

(From that perspective it is a service conflict causing this problem, and could be fixed very simply in the released ISOs?)

Some workarounds i have seen around the web are somewhat arcane to say the least. Since dhcpcd.service is grabbing the interfaces beforehand and the two kids are not playing nice; we can disable it. That is all. =)

As root:
# systemctl stop dhcpcd.service
# systemctl disable dhcpcd.service
# systemctl restart NetworkManager.service

Then shown by:
# systemctl status NetworkManager.service -l

Main PID: 3237 (NetworkManager)
CGroup: /system.slice/NetworkManager.service
├─3237 /usr/sbin/NetworkManager --no-daemon
└─4923 /sbin/dhcpcd -B -K -L -G -c /usr/libexec/nm-dhcp-client.action


edit: I should also add, networkmanager.conf did not exist. This was a fresh USB to HDD install, then updated. I created /etc/NetworkManager/NetworkManager.conf, with only:
[main]
plugins=keyfile


And it works just fine. YMMV.

TL;DR
Since network manager itself wants to start dhcp-client (if installed) or dhcpcd as fallback. By all that is holy, dhcpcd.service ought not to be started before it, or in fact at all because it is dhcpcd.service is completely uneccessary in this situation and causes b0rkage.

Sorry if this oversteps thread etiquette. I notice this thread is marked solved, but I wanted to throw my 2 cents in. Thank you. =)
soupdragon
Baby Hen
 
Posts: 1
Joined: Thu Mar 27, 2014 18:31

Re: NetworkManager and audio not working after update [Solve

Postby donpine » Wed Apr 02, 2014 5:51

Thanks soupdragon! Info helped a lot.
donpine
Baby Hen
 
Posts: 6
Joined: Fri Jan 11, 2013 4:32
Location: Marshall, IL USA


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest