Jump to content

Gentoo Nut UPS [solved]


Recommended Posts

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

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

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

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...