Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409687 - net-dns/bind - named fails to start: initializing DST: no engine
Summary: net-dns/bind - named fails to start: initializing DST: no engine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-25 19:40 UTC by eu9gu4
Modified: 2012-05-21 11:40 UTC (History)
3 users (show)

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


Attachments
result of emerge --info (emerge.info.txt,14.00 KB, text/plain)
2012-03-25 19:40 UTC, eu9gu4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eu9gu4 2012-03-25 19:40:45 UTC
Created attachment 306637 [details]
result of emerge --info

I updated today net-dns/bind from version 9.7.4_p1 to 9.8.1_p1.

Before the update named was fully functional, after the update it fails:

* Starting named ...
* Checking named configuration ...                              [ ok ]
* start-stop-daemon: failed to start `/usr/sbin/named'          [ !! ]
* ERROR: named failed to start

My /etc/bind/named.conf and /var/bind/pri zones files are fine (checked using named-checkconf and named-checkzones).

The configuration files are OK, so what could have generated this?

The log file /var/log/everything/current shows:

Mar 25 15:21:57 [named] starting BIND 9.8.1-P1 -u named
Mar 25 15:21:57 [named] built with '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--with-libtool' '--enable-threads' '--with-dlopen' '--with-dlz-filesystem' '--with-dlz-stub' '--without-dlz-postgres' '--without-dlz-mysql' '--with-dlz-bdb' '--without-dlz-ldap' '--without-dlz-odbc' '--with-openssl' '--with-idn' '--enable-ipv6' '--with-libxml2' '--with-gssapi' '--enable-rpz-nsip' '--enable-rpz-nsdname' '--with-pkcs11' '--enable-linux-caps' '--with-gost' '--with-randomdev=/dev/urandom' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=native -O2 -g0 -mno-3dnow -pipe -w -Wfatal-errors -I/usr/include/db4.8' 'LDFLAGS=-Wl,-O2 -Wl,--as-needed'
Mar 25 15:21:57 [named] adjusted limit on open files from 4096 to 1048576
Mar 25 15:21:57 [named] found 1 CPU, using 1 worker thread
Mar 25 15:21:57 [named] using up to 4096 sockets
Mar 25 15:21:57 [named] initializing DST: no engine
Mar 25 15:21:57 [named] exiting (due to fatal error)
Mar 25 15:21:57 [/etc/init.d/named] start-stop-daemon: failed to start `/usr/sbin/named'
Mar 25 15:21:57 [/etc/init.d/named] ERROR: named failed to start

Eugen
Comment 1 Richard Grenville 2012-03-26 01:45:55 UTC
Some Google searches revealed the problem may have something to do with pkcs11:

https://lists.isc.org/pipermail/bind-users/2010-June/080291.html
https://groups.google.com/forum/?fromgroups#!topic/comp.protocols.dns.bind/dVku09JUzww

You may try disabling the pkcs11 USE flag of bind.
Comment 2 eu9gu4 2012-03-26 23:54:28 UTC
(In reply to comment #1)

Besides disabling pkcs11 USE flag as you suggested, I also disabled a few others (see below). It did not help, same failure.

# eix net-dns/bind

[I] net-dns/bind
Installed versions:  9.8.1_p1(08:35:41 AM 26/03/12)(caps dlz idn ipv6 threads urandom -berkdb -doc -geoip -gost -gssapi -ldap -mysql -odbc -pkcs11 -postgres -rpz -sdb-ldap -selinux -ssl -xml)
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2012-05-16 23:00:19 UTC
Please attach a strace log in case it still fails with -pkcs11.
Comment 4 eu9gu4 2012-05-17 00:00:15 UTC
(In reply to comment #3)
> Please attach a strace log in case it still fails with -pkcs11.

I rebuilt bind and all its dependencies and everything is fine now!
Unless somebody else has the same issue, I would suggest closing this bug.
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2012-05-17 16:00:49 UTC
The PKCS11 useflag has been temporary removed as it seems to require OpenSSL to be patched first. So for now, I consider this bug to be fixed.
Comment 6 Zoltán Halassy 2012-05-21 09:00:01 UTC
There is a package, dev-libs/engine_pkcs11 , version 0.1.8 marked as stable, is this means that package is broken?
Comment 7 Christian Ruppert (idl0r) gentoo-dev 2012-05-21 11:40:53 UTC
(In reply to comment #6)
> There is a package, dev-libs/engine_pkcs11 , version 0.1.8 marked as stable,
> is this means that package is broken?

No. BIND is just using "it's own" pkcs11 engine. We could ask ISC if engine_pkcs11 would met their requirements though.