Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - da0

#1
General Discussion / Re: nut service not starting
July 29, 2018, 07:25:36 PM

I did not understand it may be related to my web client :(
... so I'm running OS X el capitan 10.11.6 with safari 11.1.2
I also tested firefox 61.0.1

for both safari and firefox, I have same kind of problems : long waits  when entering or leaving "nut service" page
I have this behavior only when nut is disabled.


I enabled web inspector in both browsers and when showing network tab I see a lot of "upsstatus" POST waiting for answer when nut service is disabled

when I click on "enable nut" I get following error :

TypeError: null is not an object (evaluating 'el.nodeName')

... error is triggered in function selectMe in inject.js, line 78

when I click on "apply" button I get same error and a "set" POST is sent ... waiting forever a response
in fact, it takes ages before getting an answer ... and when answer is received, a "reconfigure" POST is sent
=> apply button is displayed with a 'wheel' next to it

in the end, when all POST have completed (it may takes several minutes), nut is enabled
.. and from this point, entering/leaving "nut service" page can be done without long waits  ("upsstatus" seems to run correctly)

#2
General Discussion / nut service not starting
July 28, 2018, 06:03:48 PM

hello all,

I am a newbie with OPNsense and trying to connect my UPS to my router
OPNsense version is 18.1.13
UPS is APC back-UPS ES 700G

I installed os-nut plugin (v1.0) and connected my UPS to the router
kernel logs show UPS device is correctly detected:

ugen0.2: <APC Back-UPS ES 700G FW871.O2 .I USB FWO2> at usbus0


in web UI configuration, I enable NUT service with:
in general settings:
  enable NUT : ON
  service mode : standalone
  name : UPSName
in UPS type/USBHID-driver
  enable : ON
  extra arguments : port=auto

I apply configuration and try to leave NUT configuration page ... it takes long time (50 seconds, sometimes less)

next, going back to NUT configuration page : NUT is disabled ... configuration was not applied

from command line, I can see :
files in /usr/local/etc/nut are not modified

and running processes:

# ps aux | grep ups
root    69797   0.0  0.1   12564  2140  -  I    17:43     0:00.00 /usr/local/bin/upsc UPSName@127.0.0.1
root    95901   0.0  0.1   12564  2136  -  S    17:45     0:00.00 /usr/local/bin/upsc UPSName@127.0.0.1
root    96022   0.0  0.1   12564  2136  -  S    17:45     0:00.00 /usr/local/bin/upsc UPSName@127.0.0.1
root    96293   0.0  0.1   12564  2136  -  S    17:45     0:00.00 /usr/local/bin/upsc UPSName@127.0.0.1
root    96486   0.0  0.1   12564  2136  -  S    17:45     0:00.00 /usr/local/bin/upsc UPSName@127.0.0.1
root    96922   0.0  0.1 1080528  2832  0  S+   17:45     0:00.00 grep ups


after rebooting router, I still have same behavior

installing/reinstalling os-nut plugin changes nothing


am I missing some thing in my setup ?

is there somebody to help ?


regards,

Denis