[Pdns-users] newbie pdns crashing on startup

Augie Schwer augie.schwer at gmail.com
Tue Mar 17 22:50:31 UTC 2009


Is it trying to setgid to "pdns" but the pdns user/group do not exist?  --Augie

2009/3/17 Dave Corsello <davecorsello at gmail.com>:
> Ask Bjørn Hansen wrote:
>
> Sometimes in situations like this it can be helpful to run strace (or your
> platforms equivalent).  On linux something like:
>
> strace -o /tmp/pdns.trace -f /usr/bin/pdns
>
> will generate list of system calls in /tmp/pdns.trace -- it might give a
> hint as to what the process gets stuck on.
>
>
>  - ask
>
>
> Thanks a lot, Ask.  I don't know what to look for in the trace output, so
> for what it's worth, here's a listing of all the calls that have a return
> code of "-1":
>
> 5386  open("/etc/libmap.conf", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> 5386  access("/lib/libstdc++.so.6", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  readlink("/etc/malloc.conf", 0xbfbfe557, 1024) = -1 ENOENT (No such
> file or directory)
> 5386  mkdir("/var/run/", 0700)          = -1 EEXIST (File exists)
> 5386  ioctl(5, TIOCGETA, 0xbfbfe578)    = -1 ENOTTY (Inappropriate ioctl for
> device)
> 5386  access("/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/compat/nss_compat.so.1", F_OK) = -1 ENOENT (No such
> file or directory)
> 5386  access("/usr/local/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such
> file or directory)
> 5386  access("/usr/local/lib/mysql/nss_compat.so.1", F_OK) = -1 ENOENT (No
> such file or directory)
> 5386  access("/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/lib/nss_nis.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_nis.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/compat/nss_nis.so.1", F_OK) = -1 ENOENT (No such file
> or directory)
> 5386  access("/usr/local/lib/nss_nis.so.1", F_OK) = -1 ENOENT (No such file
> or directory)
> 5386  access("/usr/local/lib/mysql/nss_nis.so.1", F_OK) = -1 ENOENT (No such
> file or directory)
> 5386  access("/lib/nss_nis.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_nis.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/compat/nss_files.so.1", F_OK) = -1 ENOENT (No such
> file or directory)
> 5386  access("/usr/local/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such
> file or directory)
> 5386  access("/usr/local/lib/mysql/nss_files.so.1", F_OK) = -1 ENOENT (No
> such file or directory)
> 5386  access("/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/lib/nss_dns.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_dns.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/compat/nss_dns.so.1", F_OK) = -1 ENOENT (No such file
> or directory)
> 5386  access("/usr/local/lib/nss_dns.so.1", F_OK) = -1 ENOENT (No such file
> or directory)
> 5386  access("/usr/local/lib/mysql/nss_dns.so.1", F_OK) = -1 ENOENT (No such
> file or directory)
> 5386  access("/lib/nss_dns.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  access("/usr/lib/nss_dns.so.1", F_OK) = -1 ENOENT (No such file or
> directory)
> 5386  ioctl(5, TIOCGETA, 0xbfbfe578)    = -1 ENOTTY (Inappropriate ioctl for
> device)
>
> The call that seems to be interrupted mid-stream is this one:
>
> 5386  setgid(0x3eans1
>
> Thanks,
> Dave
>
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>



-- 
Augie Schwer    -    Augie at Schwer.us    -    http://schwer.us
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072


More information about the Pdns-users mailing list