[Pdns-users] pdns-recursor on Solaris
Anatoliy Kushner
lamazavra at gmail.com
Wed Jul 2 13:59:44 UTC 2008
ns1:~> ps -ef | grep pdns
root 12297 1 8 19:53:12 ? 0:44
./setup/pdns-recursor-3.1.7/pdns_recursor
ns1:~> ./setup/pdns-recursor-3.1.7/rec_control ping
Fatal: Unable to receive message over control channel: Connection timed out
the same result.
what information will be useful for you ?
may be this , a very strange file name is used "/var/run//lsock.eaqdy" .... ?
ns1:~> truss ./setup/pdns-recursor-3.1.7/rec_control ping
execve("setup/pdns-recursor-3.1.7/rec_control", 0xFFBFFD6C,
0xFFBFFD78) argc = 2
resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
getcwd("/export/home/akushner", 985) = 0
resolvepath("/export/home/akushner/setup/pdns-recursor-3.1.7/rec_control",
"/export/home/akushner/setup/pdns-recursor-3.1.7/rec_control", 1023) =
59
stat("/export/home/akushner/setup/pdns-recursor-3.1.7/rec_control",
0xFFBFFB48) = 0
open("/var/ld/ld.config", O_RDONLY) = 3
fstat(3, 0xFFBFF5D0) = 0
mmap(0x00000000, 224, PROT_READ, MAP_SHARED, 3, 0) = 0xFF3A0000
close(3) = 0
stat("/lib/libresolv.so.2", 0xFFBFF600) = 0
resolvepath("/lib/libresolv.so.2", "/lib/libresolv.so.2", 1023) = 19
open("/lib/libresolv.so.2", O_RDONLY) = 3
mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3,
0) = 0xFF390000
mmap(0x00010000, 335872, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF330000
mmap(0xFF330000, 246301, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF330000
mmap(0xFF37E000, 10436, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 253952) = 0xFF37E000
munmap(0xFF36E000, 65536) = 0
memcntl(0xFF330000, 36308, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/lib/libsocket.so.1", 0xFFBFF600) = 0
resolvepath("/lib/libsocket.so.1", "/lib/libsocket.so.1", 1023) = 19
open("/lib/libsocket.so.1", O_RDONLY) = 3
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0xFF390000
mmap(0x00010000, 122880, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF300000
mmap(0xFF300000, 44594, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF300000
mmap(0xFF31C000, 4277, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 49152) = 0xFF31C000
munmap(0xFF30C000, 65536) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF2F0000
memcntl(0xFF300000, 14320, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/lib/libnsl.so.1", 0xFFBFF600) = 0
resolvepath("/lib/libnsl.so.1", "/lib/libnsl.so.1", 1023) = 16
open("/lib/libnsl.so.1", O_RDONLY) = 3
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0xFF390000
mmap(0x00010000, 729088, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF200000
mmap(0xFF200000, 594942, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF200000
mmap(0xFF2A2000, 33745, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 598016) = 0xFF2A2000
mmap(0xFF2AC000, 23232, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF2AC000
munmap(0xFF292000, 65536) = 0
memcntl(0xFF200000, 89508, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/lib/libstdc++.so.6", 0xFFBFF600) Err#2 ENOENT
stat("/usr/lib/libstdc++.so.6", 0xFFBFF600) Err#2 ENOENT
stat("/usr/ccs/lib/libstdc++.so.6", 0xFFBFF600) Err#2 ENOENT
stat("/usr/ucblib/libstdc++.so.6", 0xFFBFF600) Err#2 ENOENT
stat("/usr/openwin/lib/libstdc++.so.6", 0xFFBFF600) Err#2 ENOENT
stat("/usr/local/lib/libstdc++.so.6", 0xFFBFF600) = 0
resolvepath("/usr/local/lib/libstdc++.so.6",
"/usr/local/lib/libstdc++.so.6.0.3", 1023) = 33
open("/usr/local/lib/libstdc++.so.6", O_RDONLY) = 3
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0xFF390000
mmap(0x00010000, 991232, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF100000
mmap(0xFF100000, 776814, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF100000
mmap(0xFF1CC000, 150312, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 770048) = 0xFF1CC000
munmap(0xFF1BE000, 57344) = 0
memcntl(0xFF100000, 316968, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/lib/libm.so.2", 0xFFBFF600) = 0
resolvepath("/lib/libm.so.2", "/lib/libm.so.2", 1023) = 14
open("/lib/libm.so.2", O_RDONLY) = 3
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0xFF390000
mmap(0x00010000, 786432, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF000000
mmap(0xFF000000, 693647, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF000000
mmap(0xFF0B8000, 28592, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 688128) = 0xFF0B8000
munmap(0xFF0AA000, 57344) = 0
memcntl(0xFF000000, 33076, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/lib/libgcc_s.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/lib/libgcc_s.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/ccs/lib/libgcc_s.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/ucblib/libgcc_s.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/openwin/lib/libgcc_s.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/local/lib/libgcc_s.so.1", 0xFFBFF600) = 0
resolvepath("/usr/local/lib/libgcc_s.so.1",
"/usr/local/lib/libgcc_s.so.1", 1023) = 28
open("/usr/local/lib/libgcc_s.so.1", O_RDONLY) = 3
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0xFF390000
mmap(0x00010000, 106496, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF2D0000
mmap(0xFF2D0000, 34112, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF2D0000
mmap(0xFF2E8000, 3532, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 32768) = 0xFF2E8000
munmap(0xFF2DA000, 57344) = 0
memcntl(0xFF2D0000, 6536, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/lib/libc.so.1", 0xFFBFF600) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0xFF390000
mmap(0x00010000, 1015808, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEF00000
mmap(0xFEF00000, 909301, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEF00000
mmap(0xFEFEE000, 32017, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 909312) = 0xFEFEE000
mmap(0xFEFF6000, 5984, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEFF6000
munmap(0xFEFDE000, 65536) = 0
memcntl(0xFEF00000, 144128, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/usr/local/lib/libm.so.2", 0xFFBFF600) Err#2 ENOENT
stat("/usr/local/ssl/lib/libm.so.2", 0xFFBFF600) Err#2 ENOENT
stat("/usr/openwin/lib/libm.so.2", 0xFFBFF600) Err#2 ENOENT
stat("/usr/local/lib/libc.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/local/ssl/lib/libc.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/openwin/lib/libc.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/local/lib/libc.so.1", 0xFFBFF600) Err#2 ENOENT
stat("/usr/local/ssl/lib/libc.so.1", 0xFFBFF600) Err#2 ENOENT
munmap(0xFF390000, 8192) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF390000
getcontext(0xFFBFF838)
getrlimit(RLIMIT_STACK, 0xFFBFF818) = 0
getpid() = 12314 [12313]
setustack(0xFF392088)
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF2C0000
sigfillset(0xFEFF64D8) = 0
stat("/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1", 0xFFBFF290) = 0
resolvepath("/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1",
"/platform/sun4u-us3/lib/libc_psr.so.1", 1023) = 37
open("/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1", O_RDONLY) = 3
mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3,
0) = 0xFF0F0000
close(3) = 0
sysconfig(_CONFIG_STACK_PROT) = 7
sysconfig(_CONFIG_PAGESIZE) = 8192
brk(0x00036048) = 0
brk(0x0003A000) = 0
so_socket(PF_UNIX, SOCK_DGRAM, 0, "", SOV_XPG4_2) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, 0xFFBFFB1C, 4, SOV_DEFAULT) = 0
getpid() = 12314 [12313]
sysconfig(_CONFIG_MAXPID) = 30000
lstat64("/var/run//lsock.eaqdy", 0xFFBFF998) Err#2 ENOENT
open("/var/run//lsock.eaqdy", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
unlink("/var/run//lsock.eaqdy") = 0
bind(3, 0xFFBFFC4C, 110, SOV_XPG4_2) = 0
chmod("/var/run//lsock.eaqdy", 0666) = 0
connect(3, 0xFFBFFB60, 110, SOV_XPG4_2) = 0
send(3, " p i n g", 4, 0) = 4
pollsys(0xFFBFB9C0, 1, 0xFFBFBA48, 0x00000000) (sleeping...)
pollsys(0xFFBFB9C0, 1, 0xFFBFBA48, 0x00000000) = 0
close(3) = 0
unlink("/var/run//lsock.eaqdy") = 0
fstat64(2, 0xFFBFF850) = 0
Fatal: write(2, " F a t a l : ", 7) = 7
Unable to receive message over control channel: Connection timed
outwrite(2, " U n a b l e t o r e".., 68) = 68
write(2, "\n", 1) = 1
_exit(1)
2008/7/2 bert hubert <bert.hubert at netherlabs.nl>:
> On Wed, Jul 02, 2008 at 01:33:49PM +0600, Anatoliy Kushner wrote:
>> No , config is simple
>> cat /etc/powerdns/recursor.conf
>> setuid=named
>> quiet=no
>> local-address=x.x.x.x
>> local-port=53
>> chroot=/var/lib/powerdns
>> allow-from=0.0.0.0/0
>
> Very strange. Just for testing, can you take out the 'setuid'?
>
> Thanks.
>
>>
>> Just for test, but real users use this server
>>
>>
>> 2008/7/2 bert hubert <bert.hubert at netherlabs.nl>:
>> > On Wed, Jul 02, 2008 at 09:39:11AM +0600, Anatoliy Kushner wrote:
>> >> ./rec_control ping
>> >> Fatal: Unable to receive message over control channel: Connection timed out
>> >
>> > Do you run within a chroot?
>> >
>> > --
>> > http://www.PowerDNS.com Open source, database driven DNS Software
>> > http://netherlabs.nl Open and Closed source services
>> >
>>
>>
>> !DSPAM:486b2f6f295759218390928!
>
> --
> http://www.PowerDNS.com Open source, database driven DNS Software
> http://netherlabs.nl Open and Closed source services
>
More information about the Pdns-users
mailing list