mystified Posted May 4, 2007 Share Posted May 4, 2007 I'm trying to get my ups configured using nuts. But I'm getting the following errors: localhost init.d # /etc/init.d/upsd restart * Stopping upsd ... [ ok ] * Starting upsd ... [ !! ] localhost init.d # /etc/init.d/upsdrv restart * Stopping UPS drivers ... Network UPS Tools - UPS driver controller 2.0.5 Can't open /var/lib/nut/belkinunv-Belkin-ups.pid: No such file or directory * Failed to stop UPS drivers! In /var/lib/nut I have belkinunv-myups.pid I've been googling for two days. If you have any ideas I'd appreciate it! Link to comment Share on other sites More sharing options...
tyme Posted May 4, 2007 Share Posted May 4, 2007 Most likely it's the right file, with the wrong name. Have you tried: # cp /var/lib/net/belkinunv-myups.pid /var/lib/nut/belkinunv-Belkin-ups.pid Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Share Posted May 4, 2007 I tried renaming it and it didn't work. It failed with an error message I can't remember. Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Share Posted May 4, 2007 Well I tried uninstalling and reinstalling and now I get * Starting upsd ... Network UPS Tools upsd 2.0.5 Can't bind TCP port number 3493: Address already in use *sigh* Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Share Posted May 4, 2007 In /var/lib/nut I have belkinunv-myups.pid Try to symlink it ln -s /var/lib/nut/belkinunv-myups.pid /var/lib/nut/belkinunv-Belkin-ups.pid Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Share Posted May 4, 2007 I don't have either one of those files now. I deleted them. Removed nuts and then reinstalled and tried to restart. It should have generated new files but it didn't. Link to comment Share on other sites More sharing options...
javaguy Posted May 4, 2007 Share Posted May 4, 2007 While we're on the subject, does anybody have any recommendations for what UPS to use with a box running Mandriva? Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Share Posted May 4, 2007 I don't have either one of those files now. I deleted them. Removed nuts and then reinstalled and tried to restart. It should have generated new files but it didn't. I've never used nuts (lol), but do you have any hidden config files in your ~/home? If so remove them and try again. Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Share Posted May 4, 2007 No, none. I did get rid of the port already in use. Seems another installs of upsd was running so I killed it. Link to comment Share on other sites More sharing options...
paul Posted May 4, 2007 Share Posted May 4, 2007 how about some out put from log files? dmesg? /var/log/daemon.log? syslog? message? Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Share Posted May 4, 2007 From syslog ay 4 11:34:01 localhost rc-scripts: Failed to start UPS drivers! May 4 11:34:01 localhost rc-scripts: ERROR: cannot start upsd as upsdrv could not start From messages May 4 12:03:33 localhost upsmon[17508]: Startup successful May 4 12:03:33 localhost upsd[17315]: Connection from 127.0.0.1 May 4 12:03:38 localhost upsmon[17509]: Communications with UPS server@localhost lost May 4 12:03:38 localhost wall[17518]: wall: user root broadcasted 1 lines (47 chars) May 4 12:03:43 localhost upsmon[17509]: UPS server@localhost is unavailable May 4 12:03:43 localhost wall[17521]: wall: user root broadcasted 1 lines (37 chars) May 4 12:04:18 localhost upsd[17315]: Connection from 127.0.0.1 May 4 12:04:18 localhost upsd[17315]: Client on 127.0.0.1 logged out Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Share Posted May 4, 2007 From syslog ay 4 11:34:01 localhost rc-scripts: Failed to start UPS drivers! May 4 11:34:01 localhost rc-scripts: ERROR: cannot start upsd as upsdrv could not start A quick search shows that your driver should be newhidups. So check for a ups.conf, upsd.conf file and be sure that the driver is 'driver = newhidups' Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Share Posted May 4, 2007 Thanks but that didn't work either. Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Share Posted May 4, 2007 OK, take a look at this: Linux UPS Without Tears Maybe there is something there to help you. :huh: Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Share Posted May 4, 2007 Thanks but the commands didn't work. :( Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now