Help UPS

sad111

Dabbler
Joined
Dec 25, 2018
Messages
14
I have a HP r1500xr connected to uart2 /dev/cuau2 serial port is sunix ser5xxxx driver loads and i can connect to serial terminal fine, But when configuring ups I have to try multiple times before it will connect. Connection refused error if i select cuau0 then save then select cuau2 then save it will finally connect and everything works great until i reboot then i have to do it all over again until it connects. Freenas 11.1U6 any help why it will not work after reboot would be great thanks.

Dec 25 06:52:14 freenas1 uart2: <Sunix SER5xxxx Serial Port> port 0xe020-0xe03f,0xe000-0xe01f irq 66 at device 0.0 numa-domain 1 on pci15
Dec 25 07:11:04 freenas1 upsmon[8109]: UPS [ups]: connect failed: Connection failure: Connection refused
Dec 25 07:11:04 freenas1 upsmon[8109]: UPS ups is unavailable
Dec 25 07:11:25 freenas1 upsmon[8108]: upsmon parent: read
 

Attachments

  • messages.txt
    61.2 KB · Views: 251
Last edited:

sad111

Dabbler
Joined
Dec 25, 2018
Messages
14
Is there anything I can try I would like to get this working.
ok a little more progress on reboot ups driver loads but upsd fails with fopen /var/db/nut/upsd.pid: No such file or directory .
so my problem is the pid is not being created on boot.
I tried a usb2serial adapter with same driver bcmxcp and works great just not with serial port something wrong with serial port settings.
 
Last edited:
D

dlavigne

Guest
This may be a bug. If you create a report at bugs.freenas.org, post the issue number here.
 

sad111

Dabbler
Joined
Dec 25, 2018
Messages
14
I was correct with the pid not being created. I have found a way to make it work after reboot still get errors till fix starts then all ok.
Fix was to add task command /usr/local/sbin/upsd and postinit enabled. I am sure this is not the correct way but works now every time.
Not sure why it does not have this problem with usb2serial cable only serial port. could it be that my serial port is cuau2 witch would be 3rd serial port or just something wrong in the way it calls upsd with serial from config screen?
 
Top