Forest Bond - Logic Supply
2007-Feb-16 20:46 UTC
[Nut-upsuser] upsd looking at wrong filename for socket?
Hi, When I start upsd under normal conditions, I get this: -------------------------------------------------------------------------------- Network UPS Tools upsd 2.0.4 /etc/nut/upsd.conf is world readable Can't connect to UPS [tripplite] (tripplite_usb-auto): No such file or directory /etc/nut/upsd.users is world readable Synchronizing........ giving up -------------------------------------------------------------------------------- Looking at the state directory, it is obvious what the problem is: -------------------------------------------------------------------------------- root@sandbox:~# ls -l /var/run/nut total 8 srw-rw---- 1 nut nut 0 2007-02-16 14:41 tripplite -rw-r--r-- 1 nut nut 5 2007-02-16 14:41 tripplite_usb-tripplite.pid -rw-r--r-- 1 nut nut 5 2007-02-16 14:43 upsd.pid -------------------------------------------------------------------------------- So, I try this: -------------------------------------------------------------------------------- root@sandbox:~# cd /var/run/nut root@sandbox:/var/run/nut# ln -s tripplite tripplite_usb-auto root@sandbox:/var/run/nut# ls -l total 8 srw-rw---- 1 nut nut 0 2007-02-16 14:41 tripplite lrwxrwxrwx 1 root root 9 2007-02-16 14:45 tripplite_usb-auto -> tripplite -rw-r--r-- 1 nut nut 5 2007-02-16 14:41 tripplite_usb-tripplite.pid -rw-r--r-- 1 nut nut 5 2007-02-16 14:43 upsd.pid root@sandbox:/var/run/nut# upsd Network UPS Tools upsd 2.0.4 /etc/nut/upsd.conf is world readable Connected to UPS [tripplite]: tripplite_usb-auto /etc/nut/upsd.users is world readable Synchronizing...done -------------------------------------------------------------------------------- So, why is upsd looking at the wrong file? Is my configuration just botched somewhere? thanks, Forest -- Forest Bond Computer Engineer Logic Supply, Inc. Phone: (802) 244-8302 Fax: (802) 244-7938 forest.bond@logicsupply.com www.logicsupply.com
Arjen de Korte
2007-Feb-16 22:00 UTC
[Nut-upsuser] upsd looking at wrong filename for socket?
Forest Bond - Logic Supply wrote:> When I start upsd under normal conditions, I get this: > > -------------------------------------------------------------------------------- > Network UPS Tools upsd 2.0.4 > /etc/nut/upsd.conf is world readable > Can't connect to UPS [tripplite] (tripplite_usb-auto): No such file or directory > /etc/nut/upsd.users is world readable > Synchronizing........ giving up > --------------------------------------------------------------------------------You probably didn't use upsdrvctl to start the driver, but rather started it directly from the commandline. That doesn't work.> Looking at the state directory, it is obvious what the problem is: > > -------------------------------------------------------------------------------- > root@sandbox:~# ls -l /var/run/nut > total 8 > srw-rw---- 1 nut nut 0 2007-02-16 14:41 tripplite > -rw-r--r-- 1 nut nut 5 2007-02-16 14:41 tripplite_usb-tripplite.pid > -rw-r--r-- 1 nut nut 5 2007-02-16 14:43 upsd.pid > -------------------------------------------------------------------------------- > > So, I try this: > > -------------------------------------------------------------------------------- > root@sandbox:~# cd /var/run/nut > root@sandbox:/var/run/nut# ln -s tripplite tripplite_usb-auto > root@sandbox:/var/run/nut# ls -l > total 8 > srw-rw---- 1 nut nut 0 2007-02-16 14:41 tripplite > lrwxrwxrwx 1 root root 9 2007-02-16 14:45 tripplite_usb-auto -> tripplite > -rw-r--r-- 1 nut nut 5 2007-02-16 14:41 tripplite_usb-tripplite.pid > -rw-r--r-- 1 nut nut 5 2007-02-16 14:43 upsd.pid > root@sandbox:/var/run/nut# upsd > Network UPS Tools upsd 2.0.4 > /etc/nut/upsd.conf is world readable > Connected to UPS [tripplite]: tripplite_usb-auto > /etc/nut/upsd.users is world readable > Synchronizing...done > -------------------------------------------------------------------------------- > > So, why is upsd looking at the wrong file? Is my configuration just botched > somewhere?No, it's the way you're starting the driver. See 'man 8 upsdrvctl' and 'man 8 nutupsdrv'. Best regards, Arjen