mystified Posted May 4, 2007 Report 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! Quote Link to comment Share on other sites More sharing options...
tyme Posted May 4, 2007 Report 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 Quote Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Report Share Posted May 4, 2007 I tried renaming it and it didn't work. It failed with an error message I can't remember. Quote Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Report 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* Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Report 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 Quote Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Report 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. Quote Link to comment Share on other sites More sharing options...
javaguy Posted May 4, 2007 Report 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? Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Report 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. Quote Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Report 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. Quote Link to comment Share on other sites More sharing options...
paul Posted May 4, 2007 Report Share Posted May 4, 2007 how about some out put from log files? dmesg? /var/log/daemon.log? syslog? message? Quote Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Report 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 Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Report 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' Quote Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Report Share Posted May 4, 2007 Thanks but that didn't work either. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 4, 2007 Report Share Posted May 4, 2007 OK, take a look at this: Linux UPS Without Tears Maybe there is something there to help you. :huh: Quote Link to comment Share on other sites More sharing options...
mystified Posted May 4, 2007 Author Report Share Posted May 4, 2007 Thanks but the commands didn't work. :( Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.