[Nut-upsuser] upsd does not strt up
Zoltan Farkas
zoly at daxtechnologies.com
Mon May 14 15:42:43 UTC 2007
Here is the truss output:
# truss ./upsd
execve("upsd", 0x08047DF4, 0x08047DFC) argc = 1
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", 0x08047BB8) = 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", 0x08047388) = 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", 0x08047388) = 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", 0x08047388) Err#2 ENOENT
xstat(2, "/lib/libsocket.so.1", 0x08047388) = 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", 0x08047388) Err#2 ENOENT
xstat(2, "/lib/libnsl.so.1", 0x08047388) = 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", 0x08047388) Err#2 ENOENT
xstat(2, "/lib/libc.so.1", 0x08047388) = 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", 0x08047388) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libc.so.1", 0x08047388) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libsocket.so.1", 0x08047388) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libnsl.so.1", 0x08047388) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libssl_extra.so.0.9.8", 0x08047128) Err#2 ENOENT
xstat(2, "/lib/libssl_extra.so.0.9.8", 0x08047128) Err#2 ENOENT
xstat(2, "/usr/lib/libssl_extra.so.0.9.8", 0x08047128) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libcrypto_extra.so.0.9.8", 0x08047128) Err#2 ENOENT
xstat(2, "/lib/libcrypto_extra.so.0.9.8", 0x08047128) Err#2 ENOENT
xstat(2, "/usr/lib/libcrypto_extra.so.0.9.8", 0x08047128) 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(0x08047970)
getrlimit(RLIMIT_STACK, 0x08047968) = 0
getpid() = 10757 [10756]
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, 0x08046E9C) = 0
fstat64(1, 0x08046E00) = 0
Network UPS Tools upsd 2.1.0
write(1, " N e t w o r k U P S ".., 29) = 29
sigaction(SIGPIPE, 0x08047D20, 0x00000000) = 0
sigaction(SIGINT, 0x08047D20, 0x00000000) = 0
sigaction(SIGQUIT, 0x08047D20, 0x00000000) = 0
sigaction(SIGTERM, 0x08047D20, 0x00000000) = 0
sigaction(SIGHUP, 0x08047D20, 0x00000000) = 0
fxstat(2, -1, 0x08047CC8) Err#9 EBADF
open("/dev/conslog", O_WRONLY) = 3
fcntl(3, F_SETFD, 0x00000001) = 0
fxstat(2, 3, 0x08047CC8) = 0
getuid() = 0 [0]
getpid() = 10757 [10756]
open("/proc/10757/psinfo", O_RDONLY) = 4
read(4, "\0\0\00201\0\0\005 *\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, 0x08047B38) = 0
xstat(2, "/usr/local/ups/etc/upsd.conf", 0x08047770) = 0
open("/usr/local/ups/etc/upsd.conf", O_RDONLY) = 5
fstat64(5, 0x080476E0) = 0
brk(0x080703D8) = 0
brk(0x080723D8) = 0
fstat64(5, 0x08047610) = 0
ioctl(5, TCGETA, 0x080476AC) Err#25 ENOTTY
read(5, " # N e t w o r k U P".., 8192) = 1401
read(5, 0x0806F62C, 8192) = 0
llseek(5, 0, SEEK_CUR) = 1401
close(5) = 0
open("/etc/netconfig", O_RDONLY) = 5
fstat64(5, 0x08047530) = 0
fstat64(5, 0x08047460) = 0
ioctl(5, TCGETA, 0x080474FC) 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, 0x08047A14) = 0
close(5) = 0
brk(0x080723D8) = 0
brk(0x080743D8) = 0
brk(0x080743D8) = 0
brk(0x080763D8) = 0
open("/etc/default/nss", O_RDONLY) = 5
fstat64(5, 0x080478F0) = 0
brk(0x080763D8) = 0
brk(0x080783D8) = 0
fstat64(5, 0x08047820) = 0
ioctl(5, TCGETA, 0x080478BC) Err#25 ENOTTY
read(5, " # i d e n t\t " @ ( #".., 8192) = 2052
read(5, 0x08076164, 8192) = 0
llseek(5, 0, SEEK_CUR) = 2052
close(5) = 0
fstat64(2, 0x08046920) = 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, 0x08046E58) = 0
time() = 1179156138
open("/usr/share/lib/zoneinfo/US/Eastern", O_RDONLY) = 5
fstat64(5, 0x08046B40) = 0
read(5, " T Z i f\0\0\0\0\0\0\0\0".., 1267) = 1267
close(5) = 0
getpid() = 10757 [10756]
putmsg(3, 0x08047818, 0x08047824, 0) = 0
open("/var/run/syslog_door", O_RDONLY) = 5
door_info(5, 0x08046C70) = 0
getpid() = 10757 [10756]
door_call(5, 0x08046CA8) = 0
close(5) = 0
_exit(1)
-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com]
Sent: Wednesday, May 02, 2007 8:04 PM
To: Zoltan Farkas
Cc: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] upsd does not strt up
Zoltan,
is this still an open issue?
If so, what happens if you run strace on upsd? Something like the
following should work: "strace -o /tmp/upsd.strace -f upsd"
On 4/25/07, Zoltan Farkas <zoly at daxtechnologies.com> wrote:
> I have nothing listening on port 3493 (checked with netstat + telnet localhost 3493)
>
> What else can I look at to see why its not binding?
>
> --zoly
>
> -----Original Message-----
> From: Arjen de Korte [mailto:nut+devel at de-korte.org]
> Sent: Friday, April 20, 2007 4:54 AM
> To: Zoltan Farkas
> Cc: nut-upsuser at lists.alioth.debian.org
> Subject: Re: [Nut-upsuser] upsd does not strt up
>
>
> > Upsd does not start.
>
> Most likely, another instance of upsd is already running. You need to kill
> that one first, before starting a new one.
>
> > # /usr/local/ups/sbin/upsd -DDDD
> > Network UPS Tools upsd 2.1.0
> > listen_add: added 0.0.0.0:3493
> > setuptcp: try to bind to 0.0.0.0 port 3493
> > not listening on 0.0.0.0 port 3493
>
> The output of 'netstat -pan --inet --inet6 | grep 3493' may help to
> determine if the port is already claimed.
>
> > I suspect it cannot bind to one of my interfaces, how can I specify the
> > interface that it should bind to?
>
> If you're using the development version (which you do) this can be
> configured in upsd.conf through the LISTEN directive (see 'man 5
> upsd.conf' for the syntax).
>
> Best regards, Arjen
> --
> Eindhoven - The Netherlands
> Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
>
>
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>
--
- Charles Lepple
More information about the Nut-upsuser
mailing list