WebUI takes forever to load if UPS unreachable...
-
Greetings!
The title pretty much describes the issue, can this considered as a bug or works as intended? Because i find it odd for the webui to wait for the UPS check to be completed or time out.... (pfsense ce 2.6)
Thanks in advance!
-
That's almost certainly a problem in the widget for whichever package you are using (NUT or apcupsd) and not a general GUI or Dashboard problem. It probably needs a much lower timeout than it has.
-
-
Its NUT, i thought it was related to the dashboard.... Also no option in the settings (both widget and under services) to change timeout.
-
I don't mean a timeout option for you to set, but whatever backend process is polling the UPS data needs a better timeout.
Open an issue on https://redmine.pfsense.org/projects/pfsense-packages for the NUT package
-
@jagdtigger I haven't received any other reports of this, nor do I see this myself.
Questions:
- Can you clarify what you mean when you say the UPS is "unreachable"?
- What type of UPS is it? SNMP?
- Was the UPS available when the NUT processes started?
- What if anything do you have in the Extra Arguments to driver section (Services -> UPS -> UPS Settings)?
- What if anything do you have in the Advanced settings section?
-
@dennypage said in WebUI takes forever to load if UPS unreachable...:
Can you clarify what you mean when you say the UPS is "unreachable"?
Sometimes the machine that runs NUT (its a separate box, pfsense connect to it as client) and connected to the UPS via USB cable locks up and becomes totally unresponsive.
@dennypage said in WebUI takes forever to load if UPS unreachable...:
What type of UPS is it? SNMP?
APC Back-UPS 1400, USB only.
@dennypage said in WebUI takes forever to load if UPS unreachable...:
Was the UPS available when the NUT processes started?
Technically yes(its always directly plugged into the machine via usb), but usually i have to restart nut-server manually to make NUT expose it top the network.
-
@jagdtigger said in WebUI takes forever to load if UPS unreachable...:
Sometimes the machine that runs NUT (its a separate box, pfsense connect to it as client) and connected to the UPS via USB cable locks up and becomes totally unresponsive.
Okay, that's not a scenario I tested. I'll have a look.
I am assuming that the host running the NUT sever is using a fixed IP address, yes? And in the NUT config on pfSense, are you using the IP address (rather than hostname) to identify the NUT sever?
I'm sure you've already thought about this, but I'll just bring it up to make myself feel better... If the host that is running the NUT sever can become unresponsive, you are at significant risk of a failure if power should go out while the server is being unresponsive. You might want to consider moving to using pfSense as the NUT sever and having the other host as a client. NUT on pfSense is very stable.
-
@dennypage said in WebUI takes forever to load if UPS unreachable...:
I am assuming that the host running the NUT sever is using a fixed IP address, yes? And in the NUT config on pfSense, are you using the IP address (rather than hostname) to identify the NUT sever?
Yep, my whole network is based around fixed IP's, either both on the machine and dhcp server or only in dhcp server. And yes pfsense connects via IP.
@dennypage said in WebUI takes forever to load if UPS unreachable...:
You might want to consider moving to using pfSense as the NUT sever and having the other host as a client. NUT on pfSense is very stable.
Well my room is kinda limited because of the network cabling, the pfsense box and the UPS is on the opposite end of my room. Would require a 5 meter+ cable to connect the 2. Thats why i opted for a dedicated box and ATM this problematic box is the only one i can use. Done a few things to it including installing intel-microcode package and seems to be stable now ( knocks on wood ).