Find the answer to your Linux question:
Results 1 to 2 of 2
Hi there, I am trying to create a BIND server using Open SUSE 12.1 64bit. I have followed the prompts through the yast2 DNS Server config created my DNS Zone. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    18

    OpenSUSE BIND / Named Error on Service Startup


    Hi there,
    I am trying to create a BIND server using Open SUSE 12.1 64bit. I have followed the prompts through the yast2 DNS Server config created my DNS Zone.

    I get the Error "Error occured while starting named Error."


    When I tail /var/log/messages i get the error:

    sdb.c.219: REQUIRE(methods->lookup != ((void * )0)) failed
    exiting (due to assertion failure)
    Starting name server BIND ..failed
    named.service: control process exited. code=exited status=1
    Unit name.service entered failed state.

    I have done an online software update in yast2 and I am using bind-9.8.3P2-4.17.1.X86_64


    iptables and selinux are disabled.

    Has anyone came across this issue?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Mar 2012
    Posts
    18
    Oh this was swell ..

    So even with apparmor disabled on the system I found a policy in /etc/apparmor.d/

    usr.sbin.named

    I moved this file to /tmp and restarted the machine. No difference.

    I even installed apparmor and switched it to complain mode, no difference and I even added named to enforce mode no difference.

    Aug 12 09:47:42 srv01 named[6397]: starting BIND 9.8.3-P2 -t /var/lib/named -u named
    Aug 12 09:47:42 srv01 named[6397]: built with '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--localstatedir=/var' '--libdir=/usr/lib64' '--includedir=/usr/include/bind' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-openssl' '--enable-threads' '--with-libtool' '--enable-runidn' '--with-libxml2' '--with-dlz-mysql' '--with-dlz-ldap' 'CFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DNO_VERSION_DATE -fno-strict-aliasing' 'LDFLAGS=-L/usr/lib64'
    Aug 12 09:47:42 srv01 named[6397]: ----------------------------------------------------
    Aug 12 09:47:42 srv01 named[6397]: BIND 9 is maintained by Internet Systems Consortium,
    Aug 12 09:47:42 srv01 named[6397]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
    Aug 12 09:47:42 srv01 named[6397]: corporation. Support and training for BIND 9 are
    Aug 12 09:47:42 srv01 named[6397]:
    Aug 12 09:47:42 srv01 named[6397]: ----------------------------------------------------
    Aug 12 09:47:42 srv01 named[6397]: adjusted limit on open files from 4096 to 1048576
    Aug 12 09:47:42 srv01 named[6397]: found 2 CPUs, using 2 worker threads
    Aug 12 09:47:42 srv01 named[6397]: using up to 4096 sockets
    Aug 12 09:47:42 srv01 named[6397]: sdb.c:219: REQUIRE(methods->lookup != ((void *)0)) failed
    Aug 12 09:47:42 srv01 named[6397]: exiting (due to assertion failure)
    Aug 12 09:47:42 srv01 named[6336]: Starting name server BIND ..failed
    Aug 12 09:47:42 srv01 systemd[1]: named.service: control process exited, code=exited status=1
    Aug 12 09:47:42 srv01 systemd[1]: Unit named.service entered failed state.

    I ran an strace on /usr/sbin/named

    and saw it was whinging about some shared libraries:

    mainly in particular:

    open("/usr/lib64/x86_64/liblwres.so.80", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/usr/lib64/x86_64", 0x7fff616fb920) = -1 ENOENT (No such file or directory)


    loaded up yast and installed these packages: bind-devel and bind9-lwresd.

    Service named restart: and we have a win:

    Aug 12 09:58:08 srv01 named[6897]: starting BIND 9.8.3-P2 -t /var/lib/named -u named
    Aug 12 09:58:08 srv01 named[6897]: built with '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--localstatedir=/var' '--libdir=/usr/lib64' '--includedir=/usr/include/bind' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-openssl' '--enable-threads' '--with-libtool' '--enable-runidn' '--with-libxml2' '--with-dlz-mysql' '--with-dlz-ldap' 'CFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DNO_VERSION_DATE -fno-strict-aliasing' 'LDFLAGS=-L/usr/lib64'
    Aug 12 09:58:08 srv01 named[6897]: ----------------------------------------------------
    Aug 12 09:58:08 srv01 named[6897]: BIND 9 is maintained by Internet Systems Consortium,
    Aug 12 09:58:08 srv01 named[6897]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
    Aug 12 09:58:08 srv01 named[6897]: corporation. Support and training for BIND 9 are
    Aug 12 09:58:08 srv01 named[6897]:
    Aug 12 09:58:08 srv01 named[6897]: ----------------------------------------------------
    Aug 12 09:58:08 srv01 named[6897]: adjusted limit on open files from 4096 to 1048576
    Aug 12 09:58:08 srv01 named[6897]: found 2 CPUs, using 2 worker threads
    Aug 12 09:58:08 srv01 named[6897]: using up to 4096 sockets
    Aug 12 09:58:08 srv01 named[6897]: loading configuration from '/etc/named.conf'
    Aug 12 09:58:08 srv01 named[6897]: using default UDP/IPv4 port range: [1024, 65535]
    Aug 12 09:58:08 srv01 named[6897]: using default UDP/IPv6 port range: [1024, 65535]
    Aug 12 09:58:08 srv01 named[6897]: listening on IPv4 interface lo, 127.0.0.1#53

    Hope this helps someone..

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •