Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471662 - net-dns/avahi - avahi-daemon: Failed to create server: No suitable network protocol available
Summary: net-dns/avahi - avahi-daemon: Failed to create server: No suitable network pr...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 472462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-29 07:58 UTC by Hiroshi Takenaka
Modified: 2013-06-07 11:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (20130528_emerge-info.log,4.25 KB, text/x-log)
2013-05-29 07:58 UTC, Hiroshi Takenaka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroshi Takenaka 2013-05-29 07:58:32 UTC
Created attachment 349526 [details]
emerge --info

After emerging --update @world, avahi-dnsconfd cannot start as avahi-daemon would not start as the following.

$ sudo /etc/init.d/avahi-dnsconfd start
パスワード:
 * Starting avahi-daemon ...                                             [ !! ]
 * ERROR: avahi-daemon failed to start
 * ERROR: cannot start avahi-dnsconfd as avahi-daemon would not start

/var/log/messages gives the following.
------
May 29 16:29:28 Gentoo-PC sudo:     hiro : TTY=pts/3 ; PWD=/etc/avahi ; USER=ro
ot ; COMMAND=/etc/init.d/avahi-dnsconfd start
May 29 16:29:28 Gentoo-PC sudo: pam_unix(sudo:session): session opened for user
 root by hiro(uid=0)
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: Found user 'avahi' (UID 103) and
 group 'avahi' (GID 103).
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: Successfully dropped root privil
eges.
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: avahi-daemon 0.6.31 starting up.
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: Successfully called chroot().
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: Successfully dropped remaining c
apabilities.
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: Loading service file /services/sftp-ssh.service.
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: Loading service file /services/ssh.service.
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: SO_REUSEPORT failed: Protocol not available
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: Failed to create server: No suitable network protocol available
May 29 16:29:29 Gentoo-PC avahi-daemon[15239]: avahi-daemon 0.6.31 exiting.
May 29 16:29:29 Gentoo-PC /etc/init.d/avahi-daemon[15228]: ERROR: avahi-daemon failed to start
May 29 16:29:29 Gentoo-PC /etc/init.d/avahi-dnsconfd[15227]: ERROR: cannot start avahi-dnsconfd as avahi-daemon would not start

emerge --info is attached.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-29 15:38:12 UTC
Please post your `emerge -vpq net-dns/avahi' output in a comment.
Comment 2 Hiroshi Takenaka 2013-05-30 06:03:41 UTC
Avahi-daemon has recoverd after I updated the kernel to 3.9.3-gentoo.
Thank you, any way.
Comment 3 Hiroshi Takenaka 2013-05-31 08:03:48 UTC
Once I was able to start avahi on kernel-3.9.3.
However, I've chaged the kernel to 3.8.13 because of the Bug 47180.
On kernel-3.8.13 avahi-daemon won't start again.


`emerge -pqv net-dns/avahi` gives:
------
[ebuild     U ] net-dns/avahi-0.6.31-r2 [0.6.31-r1] USE="dbus gdbm introspection -autoipd -bookmarks -doc -gtk -gtk3 -howl-compat -ipv6 -mdnsresponder-compat -mono -python -qt4 {-test} -utils" PYTHON_TARGETS="python2_7%* -python2_5% -python2_6%" 
-----
so I have updated net-dns/avahi.


After the update,
`sudo /etc/init.d/avahi-dnsconfd restart` gives the followings:

/var/log/messages
-----
May 31 16:51:48 Gentoo-PC sudo:     hiro : TTY=pts/1 ; PWD=/home/hiro/ドキュメ
ント/Gentoo_bugzilla ; USER=root ; COMMAND=/etc/init.d/avahi-dnsconfd restart
May 31 16:51:48 Gentoo-PC sudo: pam_unix(sudo:session): session opened for user
 root by hiro(uid=0)
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Found user 'avahi' (UID 103) and
 group 'avahi' (GID 103).
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Successfully dropped root privil
eges.
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: avahi-daemon 0.6.31 starting up.
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Successfully called chroot().
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Successfully dropped remaining c
apabilities.
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Loading service file /services/sftp-ssh.service.
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Loading service file /services/ssh.service.
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: SO_REUSEPORT failed: Protocol not available
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Failed to create server: No suitable network protocol available
May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: avahi-daemon 0.6.31 exiting.
May 31 16:51:51 Gentoo-PC /etc/init.d/avahi-daemon[15681]: ERROR: avahi-daemon failed to start
May 31 16:51:51 Gentoo-PC /etc/init.d/avahi-dnsconfd[15522]: ERROR: cannot start avahi-dnsconfd as avahi-daemon would not start
May 31 16:51:51 Gentoo-PC kernel: [ 4763.630013] avahi-dnsconfd (15522) used greatest stack depth: 5568 bytes left
May 31 16:51:51 Gentoo-PC sudo: pam_unix(sudo:session): session closed for user root

dmesg
-----
[ 2165.443590] exo-helper-1 (3093) used greatest stack depth: 5776 bytes left
[ 2258.905705] avahi-daemon (3123) used greatest stack depth: 5680 bytes left
[ 4763.630013] avahi-dnsconfd (15522) used greatest stack depth: 5568 bytes left
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 13:35:53 UTC
*** Bug 472462 has been marked as a duplicate of this bug. ***
Comment 5 Anthony Basile gentoo-dev 2013-06-06 20:35:03 UTC
(In reply to Hiroshi Takenaka from comment #3)

> May 31 16:51:51 Gentoo-PC avahi-daemon[15692]: Failed to create server: No
> suitable network protocol available

This sounds like an ipv4 vs ipv6 mismatch but I don't think it is.  I wonder if this is an x32 bug.

Hiroshi, can you give me more information about your networking?  Do you have ivp4/6?  Can you turn off ipv6 and see if this fixes the problem?  Just do 

    echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

Also can you post your 3.8.13 vs your 3.9.3 kernel configs.  In the mean time, I'm going to have to build an x32 system.
Comment 6 Hiroshi Takenaka 2013-06-07 08:38:39 UTC
Anthony,

This bug has been solved by the advice from Azamat in Bug 472462.

My gentoo runs on VMware Workstation
and I'm not using ipv6 because VMware doesn't support ipv6 yet.

Regards,
Comment 7 Anthony Basile gentoo-dev 2013-06-07 11:40:22 UTC
Thanks for the report.  Its good to know that there is some break in kernel api between 3.8 and 3.9 that cases this issue.  However, there is nothing to be done for avahi.