mail at paul-neuwirth.de
2007-Oct-18 21:30 UTC
[Nut-upsuser] problems with nut - openSUSE 10.3
Hallo group, I am running openSUSE 10.3 with nut-2.2.0-20 installed. I have configured it as mentioned in /usr/share/doc/packages/nut/README.SUSE. on starting nut using "rcupsd start" i get following: # Starting NUT UPS monitor done Broadcast Message from root at pane (somewhere) at 22:27 ... Communications with UPS myups at localhost lost Broadcast Message from root at pane (somewhere) at 22:27 ... UPS myups at localhost is unavailable # syslog: Oct 18 22:27:29 pane upsmon[13329]: Startup successful Oct 18 22:27:29 pane upsmon[13330]: UPS [myups at localhost]: connect failed: Connection failure: Connection refused Oct 18 22:27:29 pane upsmon[13330]: Communications with UPS myups at localhost lost Oct 18 22:27:34 pane upsmon[13330]: UPS [myups at localhost]: connect failed: Connection failure: Connection refused Oct 18 22:27:34 pane upsmon[13330]: UPS myups at localhost is unavailable Oct 18 22:27:40 pane upsmon[13330]: UPS [myups at localhost]: connect failed: Connection failure: Connection refused i recognized upsd and the driver are not running... so i tried to start the driver manually... but it didn't have permissions on /dev/ttyS3, so i changed, and the driver works... then i could also start upsd manually... but upsmon or upsc can't connect to it: # upsc -l upsc.c:170: Error: Server disconnected i get the same if i trie manually to connect to port 3493, the connection is being closed at once.. what am i doing wrong, and why the hell does /etc/init.d/upsd change the permissions on /dev/ttyS3 wrong? thanks for your help, Paul -config files below (except the annotations) ups.conf: [myups] driver = megatec port = /dev/ttyS3 desc = "first UPS device" - upsd.conf (for testing allowed all, but port not reachable from the internet): ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCEPT all - upsd.users: [upsmaster] password = admin allowfrom = localhost upsmon master [upsslave] password = 82576d5d89 allowfrom = localhost upsmon slave - upsmon.conf: RUN_AS_USER upsd MONITOR myups at localhost 1 upsmaster admin master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD /usr/lib/powersave/powersave-notify POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYFLAG ONLINE SYSLOG NOTIFYFLAG COMMOK SYSLOG NOTIFYFLAG SHUTDOWN SYSLOG NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5
> I am running openSUSE 10.3 with nut-2.2.0-20 installed. I have > configured it as mentioned in /usr/share/doc/packages/nut/README.SUSE. > on starting nut using "rcupsd start" i get following: > # > Starting NUT UPS monitor > done > > Broadcast Message from root at pane > (somewhere) at 22:27 ... > > Communications with UPS myups at localhost lost > > > Broadcast Message from root at pane > (somewhere) at 22:27 ... > > UPS myups at localhost is unavailable > # > syslog: > Oct 18 22:27:29 pane upsmon[13329]: Startup successful > Oct 18 22:27:29 pane upsmon[13330]: UPS [myups at localhost]: connect > failed: Connection failure: Connection refused > Oct 18 22:27:29 pane upsmon[13330]: Communications with UPS > myups at localhost lost > Oct 18 22:27:34 pane upsmon[13330]: UPS [myups at localhost]: connect > failed: Connection failure: Connection refused > Oct 18 22:27:34 pane upsmon[13330]: UPS myups at localhost is unavailable > Oct 18 22:27:40 pane upsmon[13330]: UPS [myups at localhost]: connect > failed: Connection failure: Connection refused > > i recognized upsd and the driver are not running... > so i tried to start the driver manually... but it didn't have > permissions on /dev/ttyS3, so i changed, and the driver works... then i > could also start upsd manually... > but upsmon or upsc can't connect to it: > # upsc -l > upsc.c:170: Error: Server disconnected > > i get the same if i trie manually to connect to port 3493, the > connection is being closed at once.. > > what am i doing wrong, and why the hell does /etc/init.d/upsd change the > permissions on /dev/ttyS3 wrong?This script is not part of NUT. Please file a bugreport with openSUSE: https://bugzilla.novell.com/ Apparently, openSUSE messed up the initialization script as well. :-( Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57