[Nut-upsuser] upsd does not strt up

Zoltan Farkas zoly at daxtechnologies.com
Mon May 21 15:45:48 UTC 2007


Here is the output for revision 905

# truss ./upsd -DDD
execve("upsd", 0x08047DE8, 0x08047DF4)  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
xstat(2, "/usr/local/ups/sbin/upsd", 0x08047BA8) = 0
open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
sysconfig(_CONFIG_PAGESIZE)                     = 4096
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", 0x08047378) = 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", 0x08047378) = 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", 0x08047378) Err#2 ENOENT
xstat(2, "/lib/libsocket.so.1", 0x08047378)     = 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", 0x08047378) Err#2 ENOENT
xstat(2, "/lib/libnsl.so.1", 0x08047378)        = 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", 0x08047378)  Err#2 ENOENT
xstat(2, "/lib/libc.so.1", 0x08047378)          = 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", 0x08047378)  Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libc.so.1", 0x08047378)  Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libsocket.so.1", 0x08047378) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libnsl.so.1", 0x08047378) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libssl_extra.so.0.9.8", 0x08047118) Err#2 ENOENT
xstat(2, "/lib/libssl_extra.so.0.9.8", 0x08047118) Err#2 ENOENT
xstat(2, "/usr/lib/libssl_extra.so.0.9.8", 0x08047118) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libcrypto_extra.so.0.9.8", 0x08047118) Err#2 ENOENT
xstat(2, "/lib/libcrypto_extra.so.0.9.8", 0x08047118) Err#2 ENOENT
xstat(2, "/usr/lib/libcrypto_extra.so.0.9.8", 0x08047118) 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(0x08047960)
getrlimit(RLIMIT_STACK, 0x08047958)             = 0
getpid()                                        = 20729 [20728]
lwp_private(0, 1, 0xFEFA2000)                   = 0x000001C3
setustack(0xFEFA2060)
sigfillset(0xFECF7258)                          = 0
sysi86(SI86FPSTART, 0xFECF7BE8, 0x0000133F, 0x00001F80) = 0x00000001
brk(0x0806E478)                                 = 0
brk(0x08070478)                                 = 0
ioctl(1, TCGETA, 0x08046E8C)                    = 0
fstat64(1, 0x08046DF0)                          = 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, 0x08047D10, 0x00000000)      = 0
sigaction(SIGINT, 0x08047D10, 0x00000000)       = 0
sigaction(SIGQUIT, 0x08047D10, 0x00000000)      = 0
sigaction(SIGTERM, 0x08047D10, 0x00000000)      = 0
sigaction(SIGHUP, 0x08047D10, 0x00000000)       = 0
fxstat(2, -1, 0x08047CB8)                       Err#9 EBADF
open("/dev/conslog", O_WRONLY)                  = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
fxstat(2, 3, 0x08047CB8)                        = 0
getuid()                                        = 0 [0]
getpid()                                        = 20729 [20728]
open("/proc/20729/psinfo", O_RDONLY)            = 4
read(4, "\0\0\00201\0\0\0F9 P\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, 0x08047B28)                        = 0
xstat(2, "/usr/local/ups/etc/upsd.conf", 0x08047760) = 0
open("/usr/local/ups/etc/upsd.conf", O_RDONLY)  = 5
fstat64(5, 0x080476D0)                          = 0
brk(0x08070478)                                 = 0
brk(0x08072478)                                 = 0
fstat64(5, 0x08047600)                          = 0
ioctl(5, TCGETA, 0x0804769C)                    Err#25 ENOTTY
read(5, " #   N e t w o r k   U P".., 8192)     = 1401
fstat64(2, 0x080463F0)                          = 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, 0x08046928)                        = 0
time()                                          = 1179762084
brk(0x08072478)                                 = 0
brk(0x08076478)                                 = 0
open("/usr/share/lib/zoneinfo/US/Eastern", O_RDONLY) = 6
fstat64(6, 0x08046610)                          = 0
read(6, " T Z i f\0\0\0\0\0\0\0\0".., 1267)     = 1267
close(6)                                        = 0
getpid()                                        = 20729 [20728]
putmsg(3, 0x080472E8, 0x080472F4, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 6
door_info(6, 0x08046740)                        = 0
getpid()                                        = 20729 [20728]
door_call(6, 0x08046778)                        = 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, 0x08046928)                        = 0
time()                                          = 1179762084
getpid()                                        = 20729 [20728]
putmsg(3, 0x080472E8, 0x080472F4, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 6
door_info(6, 0x08046740)                        = 0
getpid()                                        = 20729 [20728]
door_call(6, 0x08046778)                        = 0
close(6)                                        = 0
read(5, 0x0806F6CC, 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, 0x08046E68)                        = 0
time()                                          = 1179762084
getpid()                                        = 20729 [20728]
putmsg(3, 0x08047828, 0x08047834, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 5
door_info(5, 0x08046C80)                        = 0
getpid()                                        = 20729 [20728]
door_call(5, 0x08046CB8)                        = 0
close(5)                                        = 0
open("/etc/netconfig", O_RDONLY)                = 5
fstat64(5, 0x08047520)                          = 0
fstat64(5, 0x08047450)                          = 0
ioctl(5, TCGETA, 0x080474EC)                    Err#25 ENOTTY
read(5, " #   C D D L   H E A D E".., 8192)     = 2150
read(5, 0x0806F6CC, 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, 0x0806F6CC, 8192)                       = 0
llseek(5, 0, SEEK_CUR)                          = 2150
close(5)                                        = 0
open("/dev/udp", O_RDONLY)                      = 5
ioctl(5, SIOCGLIFNUM, 0x08047A04)               = 0
close(5)                                        = 0
brk(0x08076478)                                 = 0
brk(0x08078478)                                 = 0
brk(0x08078478)                                 = 0
brk(0x0807A478)                                 = 0
open("/etc/default/nss", O_RDONLY)              = 5
fstat64(5, 0x080478E0)                          = 0
brk(0x0807A478)                                 = 0
brk(0x0807C478)                                 = 0
fstat64(5, 0x08047810)                          = 0
ioctl(5, TCGETA, 0x080478AC)                    Err#25 ENOTTY
read(5, " #   i d e n t\t " @ ( #".., 8192)     = 2052
read(5, 0x08078ACC, 8192)                       = 0
llseek(5, 0, SEEK_CUR)                          = 2052
close(5)                                        = 0
setuptcp: protocol mismatch [0]write(2, " s e t u p t c p :   p r".., 31)       = 31

write(2, "\n", 1)                               = 1
fxstat(2, 3, 0x08046E68)                        = 0
time()                                          = 1179762084
getpid()                                        = 20729 [20728]
putmsg(3, 0x08047828, 0x08047834, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 5
door_info(5, 0x08046C80)                        = 0
getpid()                                        = 20729 [20728]
door_call(5, 0x08046CB8)                        = 0
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, 0x08046E48)                        = 0
time()                                          = 1179762084
getpid()                                        = 20729 [20728]
putmsg(3, 0x08047808, 0x08047814, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 5
door_info(5, 0x08046C60)                        = 0
getpid()                                        = 20729 [20728]
door_call(5, 0x08046C98)                        = 0
close(5)                                        = 0
_exit(1)
#


-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com] 
Sent: Monday, May 21, 2007 8:11 AM
To: Arjen de Korte
Cc: Zoltan farkas; nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] upsd does not strt up

On 5/21/07, Arjen de Korte <nut+devel at de-korte.org> wrote:
> > here is the output with ipv6 enabled(latest revision):
>
> Please mention the revision number. At the time of this writing there is
> a more recent version already, so I have no idea which one you used.

Agreed, "latest" makes it more difficult to infer the revision number
if you are looking at the mailing list archives.

> > # truss ./upsd -DDD
>
> Forget about truss and just post the output of './upsd -DDD'. I have not
> seen anybody stepping up to decipher what it means

Arjen: I was waiting to see what happened once Zoltan posted the
output from r902, but it looks like you have all of the error paths
covered with debug printouts now.

--
- Charles Lepple




More information about the Nut-upsuser mailing list