OPNsense Forum

English Forums => General Discussion => Topic started by: jspeckman on March 27, 2020, 07:39:58 PM

Title: Unable to get Nut to start
Post by: jspeckman on March 27, 2020, 07:39:58 PM
Hi,

I am unable to get Nut to start
nut_upsmon will start, but nut_daemon will not.

I am using a Prolific USB to Serial adapter with an APC SmartUPS 900

The adapter is seen by the OS:
ugen0.2: <Prolific Technology Inc. USB-Serial Controller> at usbus0
uplcom0 on uhub1
uplcom0: <Prolific Technology Inc. USB-Serial Controller, class 0/0, rev 2.00/3.00, addr 1> on usbus0

When I run:
/usr/local/sbin/upsdrvctl -D start

It returns:
Network UPS Tools - UPS driver controller 2.7.4
   0.000000   Starting UPS: ups-garage-01
Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4)
APC command table version 3.1
Can't uu_lock cuaU0: link error: Operation not permitted
   0.146787   Driver failed to start (exit status=1)

I've checked the premissions on:
/dev/cuaU0
/var/spool/lock
/var/db/nut

All are owned by uucp with rw access

I'm running OPNsense 20.1.3-amd64
FreeBSD 11.2-RELEASE-p17-HBSD

Thanks,
Jason
Title: Re: Unable to get Nut to start
Post by: mimugmail on March 27, 2020, 07:44:26 PM
Error in system.log?
Title: Re: Unable to get Nut to start
Post by: jspeckman on March 27, 2020, 07:54:14 PM
No errors in the system.log
Title: Re: Unable to get Nut to start
Post by: derpderp on October 07, 2020, 11:56:44 PM
Had the same problem with a apc 750 ...

Solution was the access rights on /dev/usb/ ...
the nut daemon uses the user uucp and has no access ...

changed that and everyting works ...