[Nut-upsuser] upsd does not strt up

Zoltan farkas zoly at daxtechnologies.com
Fri May 18 14:18:18 UTC 2007


yes IPv6 was enabled,

So I recompiled without ipv6 and now it works.

thanks

here is the output with ipv6 enabled(latest revision):

# truss ./upsd -DDD
execve("upsd", 0x08047180, 0x0804718C)  argc = 2
resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
getcwd("/usr/local/ups/sbin", 1018)             = 0
resolvepath("/usr/local/ups/sbin/upsd", "/usr/local/ups/sbin/upsd", 
1023) = 24
sysconfig(_CONFIG_PAGESIZE)                     = 4096
xstat(2, "/usr/local/ups/sbin/upsd", 0x08046F38) = 0
open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFB0000
xstat(2, "/usr/sfw/lib/libssl.so.0.9.8", 0x08046708) = 0
resolvepath("/usr/sfw/lib/libssl.so.0.9.8", 
"/usr/sfw/lib/libssl.so.0.9.8", 1023) = 28
open("/usr/sfw/lib/libssl.so.0.9.8", O_RDONLY)  = 3
mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) 
= 0xFEFA0000
mmap(0x00010000, 331776, PROT_NONE, 
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEF40000
mmap(0xFEF40000, 249788, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEF40000
mmap(0xFEF8D000, 12549, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 249856) = 0xFEF8D000
munmap(0xFEF7D000, 65536)                       = 0
memcntl(0xFEF40000, 43984, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/sfw/lib/libcrypto.so.0.9.8", 0x08046708) = 0
resolvepath("/usr/sfw/lib/libcrypto.so.0.9.8", 
"/usr/sfw/lib/libcrypto.so.0.9.8", 1023) = 31
open("/usr/sfw/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
mmap(0xFEFA0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) 
= 0xFEFA0000
mmap(0x00010000, 1372160, PROT_NONE, 
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEDE0000
mmap(0xFEDE0000, 1200291, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEDE0000
mmap(0xFEF16000, 92337, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1204224) = 0xFEF16000
mmap(0xFEF2D000, 7296, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEF2D000
munmap(0xFEF06000, 65536)                       = 0
memcntl(0xFEDE0000, 253580, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/sfw/lib/libsocket.so.1", 0x08046708) Err#2 ENOENT
xstat(2, "/lib/libsocket.so.1", 0x08046708)     = 0
resolvepath("/lib/libsocket.so.1", "/lib/libsocket.so.1", 1023) = 19
open("/lib/libsocket.so.1", O_RDONLY)           = 3
mmap(0xFEFA0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) 
= 0xFEFA0000
mmap(0x00010000, 118784, PROT_NONE, 
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEDC0000
mmap(0xFEDC0000, 46826, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEDC0000
mmap(0xFEDDC000, 2669, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 49152) = 0xFEDDC000
munmap(0xFEDCC000, 65536)                       = 0
memcntl(0xFEDC0000, 14060, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/sfw/lib/libnsl.so.1", 0x08046708) Err#2 ENOENT
xstat(2, "/lib/libnsl.so.1", 0x08046708)        = 0
resolvepath("/lib/libnsl.so.1", "/lib/libnsl.so.1", 1023) = 16
open("/lib/libnsl.so.1", O_RDONLY)              = 3
mmap(0xFEFA0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) 
= 0xFEFA0000
mmap(0x00010000, 684032, PROT_NONE, 
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED10000
mmap(0xFED10000, 571153, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFED10000
mmap(0xFEDAC000, 20429, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 573440) = 0xFEDAC000
mmap(0xFEDB1000, 22400, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEDB1000
munmap(0xFED9C000, 65536)                       = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFED00000
memcntl(0xFED10000, 100736, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/sfw/lib/libc.so.1", 0x08046708)  Err#2 ENOENT
xstat(2, "/lib/libc.so.1", 0x08046708)          = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY)                = 3
mmap(0xFEFA0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) 
= 0xFEFA0000
mmap(0x00010000, 954368, PROT_NONE, 
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC10000
mmap(0xFEC10000, 916327, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEC10000
mmap(0xFECF0000, 27222, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 917504) = 0xFECF0000
mmap(0xFECF7000, 5560, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFECF7000
memcntl(0xFEC10000, 187748, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/sfw/lib/libc.so.1", 0x08046708)  Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libc.so.1", 0x08046708)  Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libsocket.so.1", 0x08046708) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libnsl.so.1", 0x08046708) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libssl_extra.so.0.9.8", 0x080464A8) Err#2 ENOENT
xstat(2, "/lib/libssl_extra.so.0.9.8", 0x080464A8) Err#2 ENOENT
xstat(2, "/usr/lib/libssl_extra.so.0.9.8", 0x080464A8) Err#2 ENOENT
open("/usr/lib/locale/en_US.ISO8859-15/LC_MESSAGES/SUNW_OST_SGS.mo", 
O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/en_US.ISO8859-15/LC_MESSAGES/SUNW_OST_OSLIB.mo", 
O_RDONLY) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libcrypto_extra.so.0.9.8", 0x080464A8) Err#2 ENOENT
xstat(2, "/lib/libcrypto_extra.so.0.9.8", 0x080464A8) Err#2 ENOENT
xstat(2, "/usr/lib/libcrypto_extra.so.0.9.8", 0x080464A8) Err#2 ENOENT
munmap(0xFEFA0000, 4096)                        = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEFA0000
getcontext(0x08046CF0)
getrlimit(RLIMIT_STACK, 0x08046CE8)             = 0
getpid()                                        = 382 [380]
lwp_private(0, 1, 0xFEFA2000)                   = 0x000001C3
setustack(0xFEFA2060)
sigfillset(0xFECF7258)                          = 0
sysi86(SI86FPSTART, 0xFECF7BE8, 0x0000133F, 0x00001F80) = 0x00000001
brk(0x0806E3D8)                                 = 0
brk(0x080703D8)                                 = 0
ioctl(1, TCGETA, 0x0804622C)                    = 0
fstat64(1, 0x08046190)                          = 0
Network UPS Tools upsd 2.1.0
write(1, " N e t w o r k   U P S  ".., 29)      = 29
sysconfig(_CONFIG_PAGESIZE)                     = 4096
sigaction(SIGPIPE, 0x080470B0, 0x00000000)      = 0
sigaction(SIGINT, 0x080470B0, 0x00000000)       = 0
sigaction(SIGQUIT, 0x080470B0, 0x00000000)      = 0
sigaction(SIGTERM, 0x080470B0, 0x00000000)      = 0
sigaction(SIGHUP, 0x080470B0, 0x00000000)       = 0
fxstat(2, -1, 0x08047058)                       Err#9 EBADF
open("/dev/conslog", O_WRONLY)                  = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
fxstat(2, 3, 0x08047058)                        = 0
getuid()                                        = 0 [0]
getpid()                                        = 382 [380]
open("/proc/382/psinfo", O_RDONLY)              = 4
read(4, "\0\0\00201\0\0\0 ~01\0\0".., 336)      = 336
close(4)                                        = 0
mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEBF0000
getuid()                                        = 0 [0]
getuid()                                        = 0 [0]
open64("/var/run/name_service_door", O_RDONLY)  = 4
fcntl(4, F_SETFD, 0x00000001)                   = 0
door_info(4, 0xFECF156C)                        = 0
door_call(4, 0x08046EC8)                        = 0
xstat(2, "/usr/local/ups/etc/upsd.conf", 0x08046B00) = 0
open("/usr/local/ups/etc/upsd.conf", O_RDONLY)  = 5
fstat64(5, 0x08046A70)                          = 0
brk(0x080703D8)                                 = 0
brk(0x080723D8)                                 = 0
fstat64(5, 0x080469A0)                          = 0
ioctl(5, TCGETA, 0x08046A3C)                    Err#25 ENOTTY
read(5, " #   N e t w o r k   U P".., 8192)     = 1401
fstat64(2, 0x08045790)                          = 0
listen_add: added 127.0.0.1:3493write(2, " l i s t e n _ a d d :  ".., 
32)     = 32

write(2, "\n", 1)                               = 1
fxstat(2, 3, 0x08045CC8)                        = 0
time()                                          = 1179496473
brk(0x080723D8)                                 = 0
brk(0x080763D8)                                 = 0
open("/usr/share/lib/zoneinfo/US/Eastern", O_RDONLY) = 6
fstat64(6, 0x080459B0)                          = 0
read(6, " T Z i f\0\0\0\0\0\0\0\0".., 1267)     = 1267
close(6)                                        = 0
getpid()                                        = 382 [380]
putmsg(3, 0x08046688, 0x08046694, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 6
door_info(6, 0x08045AE0)                        = 0
getpid()                                        = 382 [380]
door_call(6, 0x08045B18)                        = 0
close(6)                                        = 0
listen_add: added 192.168.1.8:3493write(2, " l i s t e n _ a d d :  ".., 
34)   = 34

write(2, "\n", 1)                               = 1
fxstat(2, 3, 0x08045CC8)                        = 0
time()                                          = 1179496473
getpid()                                        = 382 [380]
putmsg(3, 0x08046688, 0x08046694, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 6
door_info(6, 0x08045AE0)                        = 0
getpid()                                        = 382 [380]
door_call(6, 0x08045B18)                        = 0
close(6)                                        = 0
read(5, 0x0806F62C, 8192)                       = 0
llseek(5, 0, SEEK_CUR)                          = 1401
close(5)                                        = 0
setuptcp: try to bind to 127.0.0.1 port 3493write(2, " s e t u p t c p 
:   t r".., 44)  = 44

write(2, "\n", 1)                               = 1
fxstat(2, 3, 0x08046208)                        = 0
time()                                          = 1179496473
getpid()                                        = 382 [380]
putmsg(3, 0x08046BC8, 0x08046BD4, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 5
door_info(5, 0x08046020)                        = 0
getpid()                                        = 382 [380]
door_call(5, 0x08046058)                        = 0
close(5)                                        = 0
open("/etc/netconfig", O_RDONLY)                = 5
fstat64(5, 0x080468C0)                          = 0
fstat64(5, 0x080467F0)                          = 0
ioctl(5, TCGETA, 0x0804688C)                    Err#25 ENOTTY
read(5, " #   C D D L   H E A D E".., 8192)     = 2150
read(5, 0x0806F62C, 8192)                       = 0
llseek(5, 0, SEEK_CUR)                          = 2150
llseek(5, 0, SEEK_SET)                          = 0
read(5, " #   C D D L   H E A D E".., 8192)     = 2150
read(5, 0x0806F62C, 8192)                       = 0
llseek(5, 0, SEEK_CUR)                          = 2150
close(5)                                        = 0
open("/dev/udp", O_RDONLY)                      = 5
ioctl(5, SIOCGLIFNUM, 0x08046DA4)               = 0
close(5)                                        = 0
brk(0x080763D8)                                 = 0
brk(0x080783D8)                                 = 0
brk(0x080783D8)                                 = 0
brk(0x0807A3D8)                                 = 0
open("/etc/default/nss", O_RDONLY)              = 5
fstat64(5, 0x08046C80)                          = 0
brk(0x0807A3D8)                                 = 0
brk(0x0807C3D8)                                 = 0
fstat64(5, 0x08046BB0)                          = 0
ioctl(5, TCGETA, 0x08046C4C)                    Err#25 ENOTTY
read(5, " #   i d e n t\t " @ ( #".., 8192)     = 2052
read(5, 0x08078A2C, 8192)                       = 0
llseek(5, 0, SEEK_CUR)                          = 2052
close(5)                                        = 0
not listening on 127.0.0.1 port 3493write(2, " n o t   l i s t e n i 
n".., 36) = 36

write(2, "\n", 1)                               = 1
fxstat(2, 3, 0x080461E8)                        = 0
time()                                          = 1179496473
getpid()                                        = 382 [380]
putmsg(3, 0x08046BA8, 0x08046BB4, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 5
door_info(5, 0x08046000)                        = 0
getpid()                                        = 382 [380]
door_call(5, 0x08046038)                        = 0
close(5)                                        = 0
_exit(1)


Charles Lepple wrote:
> On 5/14/07, Zoltan Farkas <zoly at daxtechnologies.com> wrote:
>> Here is the truss output:
>>
>> # truss ./upsd
>
> Can you try this again with "-DDD"? It's hard to match the system
> calls to source code, and I'm not very familiar with Solaris or truss
> anymore.
>
> I forget, is IPv6 enabled in the NUT ./configure script?
>




More information about the Nut-upsuser mailing list