You are not logged in.

#1 2014-06-06 19:41:10

swordfish
Member
Registered: 2012-01-14
Posts: 160

[solved] avahi-daemon.service doesn't work after messed up /etc/group

Hi there,

I've made a stupid mistake and merged /etc/group with /etc/group.pacnew without thinking - shame on me! By doing this, I deleted several entries in /etc/group like polkitd, gdm, usbmux etc. and - avahi. I reinstalled most of the packages in question, but now I still have a problem with avahi.

When I boot my machine, I get this message:

Jun 06 20:21:58 sushi systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Jun 06 20:21:58 sushi systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jun 06 20:21:58 sushi systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Jun 06 20:21:58 sushi systemd[1]: Unit avahi-daemon.service entered failed state.

And when I check it with systemctl I get this message:

# systemctl status avahi-daemon.service
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
   Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled)
   Active: failed (Result: exit-code) since Fr 2014-06-06 21:29:03 CEST; 11min ago
Main PID: 1389 (code=exited, status=255)

Jun 06 21:29:03 sushi systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jun 06 21:29:03 sushi systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Jun 06 21:29:03 sushi systemd[1]: Unit avahi-daemon.service entered failed state.
Jun 06 21:29:23 sushi systemd[1]: Unit avahi-daemon.service cannot be reloaded because it is inactive.

Any attempt to get avahi-daemon.service back to work fail (like 'systemctl start ... enable ... reload and so on)

So, any advice would be appreciated smile

Last edited by swordfish (2014-06-07 09:13:55)


Arch_x64 on Thinkpad Edge E520 (Intel Core i5, 4 GB RAM, 128 GB Crucial M4 SSD) + ITX-Desktop (Asrock H77M-ITX, Intel Core i3-2120T, 8GB RAM, 64 GB Samsung 830 SSD)

Offline

#2 2014-06-06 20:08:11

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] avahi-daemon.service doesn't work after messed up /etc/group

Do you still have the backup file (i.e. /etc/group-)?

This is what is in mine:

$  grep avahi /etc/group
avahi:x:84:

Last edited by loafer (2014-06-06 20:10:20)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2014-06-06 20:15:49

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [solved] avahi-daemon.service doesn't work after messed up /etc/group

from the install file install

post_install() {
	getent group avahi &>/dev/null || groupadd -r -g 84 avahi >/dev/null
	getent passwd avahi &>/dev/null || useradd -r -u 84 -g avahi -d / -s /bin/false -c avahi avahi >/dev/null
	true
}

Offline

#4 2014-06-07 09:13:17

swordfish
Member
Registered: 2012-01-14
Posts: 160

Re: [solved] avahi-daemon.service doesn't work after messed up /etc/group

Thanks guys!!! With the information from loqs I could solve the problem wink !!!


Arch_x64 on Thinkpad Edge E520 (Intel Core i5, 4 GB RAM, 128 GB Crucial M4 SSD) + ITX-Desktop (Asrock H77M-ITX, Intel Core i3-2120T, 8GB RAM, 64 GB Samsung 830 SSD)

Offline

Board footer

Powered by FluxBB