[Nut-upsuser] config file locations

Charles Lepple clepple at gmail.com
Mon Oct 20 02:03:23 UTC 2014


Hi Gene,

On Oct 18, 2014, at 7:35 PM, Gene Heskett <gheskett at wdtv.com> wrote:

> Greetings;
> 
> I found  pdf user manual which explains a few things that might help.
> 
> However, for a ubuntu flavor, the various .conf etc files seem to be in 
> /etc/nut.

We have an open ticket about that[*]; basically, the official NUT documentation needs to be a bit more explicit that the paths are what you would get with a vanilla source install, and that distributions will most likely be different.

[*] https://github.com/networkupstools/nut/issues/152

> But this pdf says they are in /usr/local/ups/etc, and yes indeed there are 
> some there, with the .sample files being owned by root, and the rest are 
> user 503, whoever he may be.

If it's the same "coyote" machine from 2010, the archives indicate that you installed from source at one point. The Ubuntu packages shouldn't have written to /usr/local.

> Are these just a sample storage in case one needs to start from square #0 
> again?  Or what?

Yes, but the paths in those files are from the source install. I forget what Ubuntu did with the 10.04 packages, but it probably shipped *.sample files in either /etc/nut or /usr/share/doc/nut/examples.

> Then on down the page it says it should start by using upsdrvctl start, I 
> get
> sudo upsdrvctl start
> Network UPS Tools - UPS driver controller 2.4.3
> Network UPS Tools - Generic HID driver 0.34 (2.4.3)
> USB communication driver 0.31
> Using subdriver: Belkin HID 0.12
> 
> Broadcast Message from gene at coyote                                             
>        (somewhere) at 19:16 ...                                               
> 
> Communications with UPS myups at localhost established                            
> 
> 
> 
> Broadcast Message from gene at coyote                                             
>        (somewhere) at 19:16 ...                                               
> 
> Communications with UPS myups at localhost established                            
> 
> 
> Broadcast Message from gene at coyote                                             
>        (somewhere) at 19:16 ...                                               
> 
> Communications with UPS myups at localhost established
> 
> But why do I get 3 of them?

Good question, but it's going to be hard to tease apart the Ubuntu .deb install and the source install.

Note that some versions of /etc/init.d/nut (provided by Ubuntu) will start the driver as well as upsd and upsmon, so the separate "upsdrvctl start" is not necessary.

Do you have anything else installed to /usr/local? If not, it might be easier to move that directory aside. Then again, if you installed from source, it was probably due to something not being in the Ubuntu packages.

> So I go thru htop, after issueing stops to upsdrvctl and nut, then restart 
> the driver, then nut, and now my log is being spammed by:
> Oct 18 19:25:51 coyote kernel: [117004.485575] usb 1-10: usbfs: process 
> 29641 (usbhid-ups) did not claim interface 0 before use
> Oct 18 19:25:54 coyote kernel: [117007.499806] usb 1-10: usbfs: process 
> 29668 (usbhid-ups) did not claim interface 0 before use
> Oct 18 19:25:54 coyote kernel: [117007.499850] usb 1-10: usbfs: process 
> 29668 (usbhid-ups) did not claim interface 0 before use
> about 1/second.

With usbhid-ups, this tends to only happen when multiple drivers are running.

> Issueing the stop commands, I am told:
> Can't open /var/run/nut/usbhid-ups-3493.pid: No such file or directory
> by upsdvrctl.  And it leaves usbhid-*** running and I have to kill it as 
> root.
> 
> So whats next?  I don't seem to be getting very far in this maze.
> 
> Cheers, Gene Heskett
> -- 
> "There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page <http://geneslinuxbox.net:6309/gene>
> US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS
> 
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

-- 
Charles Lepple
clepple at gmail






More information about the Nut-upsuser mailing list