OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Nut not loading
« previous next »
  • Print
Pages: [1] 2

Author Topic: Nut not loading  (Read 7452 times)

HFsi

  • Newbie
  • *
  • Posts: 36
  • Karma: 3
    • View Profile
Nut not loading
« on: July 02, 2018, 08:39:52 pm »
Hi all!
I´ve just installed nut plugin, my UPS is well detected, but the service fails to start.
Here is the log:

Jul 2 15:18:23   root: /usr/local/etc/rc.d/nut_upsmon: WARNING: failed to start nut_upsmon
Jul 2 15:18:23   root: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Jul 2 15:15:10   kernel: ugen0.2: <American Power Conversion Back-UPS RS 900G FW879.L4 .I USB FWL4> at usbus0

Any tips for debugging?

Thanks!
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Nut not loading
« Reply #1 on: July 02, 2018, 09:32:28 pm »
Is this a production machine or can it be rebootet some time?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

RFGuy_KCCO

  • Newbie
  • *
  • Posts: 11
  • Karma: 2
    • View Profile
Re: Nut not loading
« Reply #2 on: July 04, 2018, 07:23:09 pm »
One thing that tripped me up when I first used Nut was that I had spaces in the UPS name, which I learned doesn’t work. Do you happen to have any spaces in your UPS name?
Logged
OPNsense 20.7.4
SuperMicro SuperServer E300-8D (primary WAN)
Protectli Vault FW1 (secondary WAN)
TRENDnet TEG-30284

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Nut not loading
« Reply #3 on: July 04, 2018, 08:52:12 pm »
Really? I thought I put a validator on this or did you start with a Dev version?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Tripple_Delta

  • Jr. Member
  • **
  • Posts: 72
  • Karma: 3
    • View Profile
Re: Nut not loading
« Reply #4 on: July 05, 2018, 11:46:26 am »
Quote from: RFGuy_KCCO on July 04, 2018, 07:23:09 pm
One thing that tripped me up when I first used Nut was that I had spaces in the UPS name, which I learned doesn’t work. Do you happen to have any spaces in your UPS name?

Fixed my problem. Thanks.
Logged

RFGuy_KCCO

  • Newbie
  • *
  • Posts: 11
  • Karma: 2
    • View Profile
Re: Nut not loading
« Reply #5 on: July 05, 2018, 03:19:08 pm »
I started with the Dev version.
Logged
OPNsense 20.7.4
SuperMicro SuperServer E300-8D (primary WAN)
Protectli Vault FW1 (secondary WAN)
TRENDnet TEG-30284

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Nut not loading
« Reply #6 on: July 05, 2018, 03:35:19 pm »
I already saw there's no validator. I'll add one so a space and special chars are denied.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

HFsi

  • Newbie
  • *
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Nut not loading
« Reply #7 on: August 03, 2018, 05:21:56 pm »
My UPS name is "BR900".

I get this on System: Log Files: Configd
configd.py: [563d2a24-c52f-4f97-a982-4e296ea97c5f] Script action failed with Command '/usr/local/bin/upsc 'BR900@127.0.0.1'' returned non-zero exit status 1 at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 479, in execute stdout=output_stream, stderr=error_stream) File "/usr/local/lib/python2.7/subprocess.py", line 190, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '/usr/local/bin/upsc 'BR900@127.0.0.1'' returned non-zero exit status 1

But the UPS is found
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Nut not loading
« Reply #8 on: August 03, 2018, 06:54:53 pm »
What happens when you execute this command via CLI?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

HFsi

  • Newbie
  • *
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Nut not loading
« Reply #9 on: September 24, 2018, 04:00:32 pm »
Well, I finally gave up on this because I made it work through Home Assistant...
Now comes the part of the automation to shutdown all my devices in the case of a power shortage
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Nut not loading
« Reply #10 on: September 24, 2018, 04:36:33 pm »
Then you should configure OPNsense as netclient to shutdown itself
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

HFsi

  • Newbie
  • *
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Nut not loading
« Reply #11 on: September 24, 2018, 05:27:54 pm »
Thanks for the tip, my approach was more difficult
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Nut not loading
« Reply #12 on: October 08, 2018, 01:30:17 pm »
Quote from: netdomon2 on October 08, 2018, 11:58:10 am
:) :)

Will you provide some detail? Version? Error? UPS model?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

HFsi

  • Newbie
  • *
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Nut not loading
« Reply #13 on: November 08, 2018, 05:54:53 pm »
I´m now using NUT 1.3 as netclient and works fine, but I don´t see any configuration for shutting down OPN
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6296
  • Karma: 433
    • View Profile
Re: Nut not loading
« Reply #14 on: November 08, 2018, 07:57:11 pm »
Quote from: HFsi on November 08, 2018, 05:54:53 pm
I´m now using NUT 1.3 as netclient and works fine, but I don´t see any configuration for shutting down OPN

Uhm .. me too .. I forgot some parts in templating, sorry.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Nut not loading
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2