search for: setuptcp

Displaying 15 results from an estimated 15 matches for "setuptcp".

2011 Sep 29
2
upsd fails to start
...whenever I add a client from my lan to uspd.conf: LISTEN 127.0.0.1 3493 LISTEN 192.168.36.106 3493 naknight at nak-server:~$ sudo upsd -DDDD Network UPS Tools upsd 2.4.3 0.000000 listen_add: added 127.0.0.1:3493 0.000093 listen_add: added 192.168.36.106:3495 0.000224 setuptcp: try to bind to 192.168.36.106 port 3495 0.000428 setuptcp: bind: Cannot assign requested address 0.000455 not listening on 192.168.36.106 port 3495 naknight at nak-server:~$ It is not clear to me if I need to edit hosts.allow, but I added "upsd : naknight at 192.168.36.106&quo...
2011 Mar 13
1
problem starting upsd
$ sudo /usr/sbin/upsd -DDDD Network UPS Tools upsd 2.4.3 0.000000 listen_add: added ::1:3493 0.000084 listen_add: added 127.0.0.1:3493 0.000102 setuptcp: try to bind to 127.0.0.1 port 3493 0.000185 listening on 127.0.0.1 port 3493 0.000204 setuptcp: try to bind to ::1 port 3493 0.001328 setuptcp: socket: Address family not supported by protocol 0.001381 not listening on ::1 port 3493 $ sudo upsc -L Error: Connection fai...
2009 May 31
1
Can't connect to UPS [mustek] (megatec-mustek): No such file or directory
NUT recently stopped working on my debian. I'm not sure which upgrade broke it. ups.conf: [mustek] driver = megatec port = /dev/ttyS0 desc = "mustek ups" # upsd -DDDD Network UPS Tools upsd 2.4.1 listen_add: added ::1:3493 listen_add: added 127.0.0.1:3493 setuptcp: try to bind to 127.0.0.1 port 3493 listening on 127.0.0.1 port 3493 setuptcp: try to bind to ::1 port 3493 listening on ::1 port 3493 Can't connect to UPS [mustek] (megatec-mustek): No such file or directory # strace -f upsd [...] connect(6, {sa_family=AF_FILE, path="megatec-mustek&quot...
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...ic stype *firstaddr = NULL; > > static int opt_af = AF_UNSPEC; > -#endif > > /* signal handlers */ > static struct sigaction sa; > @@ -153,99 +148,172 @@ > ups_data_ok(ups); > } > > -/* create a listening socket for tcp connections */ > -static void setuptcp(void) > +/* add another listening address */ > +void listen_add(const char *addr, const char *port) > { > + stype *stmp, *last; > + > + stmp = last = firstaddr; > + > + /* find end of linked list */ > + while (stmp != NULL) { > + last = stmp; > + stmp = stmp->...
2011 Sep 14
2
Slaves under Squeeze
...as a slave, and it isn't working. The problem I'm getting is best illustrated by what happens when I run this on the server: upsd -DDDDDDDDD Network UPS Tools upsd 2.4.3 0.000000 listen_add: added 127.0.0.1:3493 0.000070 listen_add: added 192.168.1.104:3493 0.000117 setuptcp: try to bind to 192.168.1.104 port 3493 0.000204 setuptcp: bind: Cannot assign requested address 0.000226 not listening on 192.168.1.104 port 3493 Or when I run this on the slave : /etc/init.d/nut start Starting Network UPS Tools: upsmon. Broadcast Message from nut at mac2...
2015 Jan 24
2
upds crash with 'Out of memory'
...try to run 'upsc xs1500', I get the following output from upsd (running with debugging output): C:\Program Files (x86)\NUT\sbin>upsd -DDDDD Network UPS Tools upsd 2.6.5-3723:3731M 0.000000 listen_add: added ::1:3493 0.000000 listen_add: added 127.0.0.1:3493 0.015628 setuptcp: try to bind to 127.0.0.1 port 3493 0.031310 listening on 127.0.0.1 port 3493 0.031310 setuptcp: try to bind to ::1 port 3493 0.031310 listening on ::1 port 3493 0.031310 Connected to UPS [xs1500]: usbhid-ups-xs1500 0.046874 mainloop: wait for 4 filedescriptors...
2015 Jan 27
0
upds crash with 'Out of memory'
...9;, I get the following output from upsd (running with debugging output): > > C:\Program Files (x86)\NUT\sbin>upsd -DDDDD > Network UPS Tools upsd 2.6.5-3723:3731M > 0.000000 listen_add: added ::1:3493 > 0.000000 listen_add: added 127.0.0.1:3493 > 0.015628 setuptcp: try to bind to 127.0.0.1 port 3493 > 0.031310 listening on 127.0.0.1 port 3493 > 0.031310 setuptcp: try to bind to ::1 port 3493 > 0.031310 listening on ::1 port 3493 > 0.031310 Connected to UPS [xs1500]: usbhid-ups-xs1500 > 0.046874 mainloop: wait...
2013 Jun 28
0
Server 2012 - 64bit NTPD Crash
...an start the ntpd but as soon as I connect with upsc, the NTPD process exits with the following debug output: c:\Program Files (x86)\NUT\sbin>upsd -DDDD Network UPS Tools upsd 2.6.5-3780M 0.000000 listen_add: added 127.0.0.1:3493 0.000000 listen_add: added ::1:3493 0.015599 setuptcp: try to bind to ::1 port 3493 0.015599 listening on ::1 port 3493 0.031199 setuptcp: try to bind to 127.0.0.1 port 3493 0.031199 listening on 127.0.0.1 port 3493 0.046800 Connected to UPS [sspro]: blazer_usb-sspro 0.046800 Can't open c:\Program Files (x86)\NUT...
2013 Jun 28
1
FW: Server 2012 - 64bit UPSD Crash
...an start the ntpd but as soon as I connect with upsc, the NTPD process exits with the following debug output: c:\Program Files (x86)\NUT\sbin>upsd -DDDD Network UPS Tools upsd 2.6.5-3780M 0.000000 listen_add: added 127.0.0.1:3493 0.000000 listen_add: added ::1:3493 0.015599 setuptcp: try to bind to ::1 port 3493 0.015599 listening on ::1 port 3493 0.031199 setuptcp: try to bind to 127.0.0.1 port 3493 0.031199 listening on 127.0.0.1 port 3493 0.046800 Connected to UPS [sspro]: blazer_usb-sspro 0.046800 Can't open c:\Program Files (x86)\NUT...
2015 Jan 28
1
upds crash with 'Out of memory'
...I get the following output from upsd (running > with debugging output): > > C:\Program Files (x86)\NUT\sbin>upsd -DDDDD > Network UPS Tools upsd 2.6.5-3723:3731M > 0.000000 listen_add: added ::1:3493 > 0.000000 listen_add: added 127.0.0.1:3493 > 0.015628 setuptcp: try to bind to 127.0.0.1 port 3493 > 0.031310 listening on 127.0.0.1 port 3493 > 0.031310 setuptcp: try to bind to ::1 port 3493 > 0.031310 listening on ::1 port 3493 > 0.031310 Connected to UPS [xs1500]: usbhid-ups-xs1500 > 0.046874 mainloop: wait...
2011 Mar 18
1
blazer_usb for SVEN Power Pro+ 500 USB
...6907 read: error submitting URB: No space left on device 8.370027 blazer_status: short reply 8.371874 Status read 3 failed 8.373678 No supported UPS detected c) SYSLOG output Mar 17 16:30:39 myNAS upsd[428]: listen_add: added 127.0.0.1:3493 Mar 17 16:30:39 myNAS upsd[428]: setuptcp: try to bind to 127.0.0.1 port 3493 Mar 17 16:30:39 myNAS upsd[428]: listening on 127.0.0.1 port 3493 Mar 17 16:30:39 myNAS upsd[428]: Can't connect to UPS [sven] (blazer_usb-sven): No such file or directory Mar 17 16:30:39 myNAS upsd[428]: mainloop: polling 1 filedescriptors Mar 17 16:30:41 my...
2010 Mar 05
5
Getting 'Data stale' error with bcmxcp_usb for a PowerWare 5115 on OSX
Good evening, I tried getting this to work a couple years back but didn't have enough time to do all the debugging that was needed (apologies to the devs who tried to help at that time). It's working much better now, but I'm still not able to get an answer from upsc. Can anyone help me work out why I'm getting the error when querying with upsc: Error: Data stale My
2010 Mar 05
5
Getting 'Data stale' error with bcmxcp_usb for a PowerWare 5115 on OSX
Good evening, I tried getting this to work a couple years back but didn't have enough time to do all the debugging that was needed (apologies to the devs who tried to help at that time). It's working much better now, but I'm still not able to get an answer from upsc. Can anyone help me work out why I'm getting the error when querying with upsc: Error: Data stale My
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
...r[40]; > > @@ -90,6 +95,7 @@ > return NULL; > } > } > +#endif > > /* return a pointer to the named ups if possible */ > upstype *get_ups_ptr(const char *name) > @@ -150,6 +156,38 @@ > /* create a listening socket for tcp connections */ > static void setuptcp(void) > { > +#ifndef HAVE_IPV6 > + struct sockaddr_in server; > + int res, one = 1; > + > + if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) > + fatal_with_errno("socket"); > + > + res = setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, (void *) &one,...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...+ default: > + errno = EAFNOSUPPORT; > + return NULL; > + } > +} > + > /* return a pointer to the named ups if possible */ > upstype *get_ups_ptr(const char *name) > { > @@ -131,35 +150,61 @@ > /* create a listening socket for tcp connections */ > static void setuptcp(void) > { > - struct sockaddr_in server; > + struct addrinfo hints, *r, *rtmp; > + char *service; > int res, one = 1; > > - if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) > - fatal_with_errno("socket"); > - > - res = setsockopt(listenfd, SOL_S...