Nut - Compiled user name

Running Nut 2.8.4_15 on IPFire 2.29 (x86-64) core 203 and getting errors shown in the .var/log/messages (see below)

I’m not sure whats causing the “NOTIFY..” problems but its the upsmon “OS user = not found”

I set the user “RUN_AS_USER = nutmon” in the upsmon.conf as I created a nutmon account as per the add docs. I’ve also tried creating accounts as “nut” and even “OS” but still get the error.

So before I contact the Nut mailing list, can I ask what was the pakfire nut add-on build flags ?, maybe the user name was “hard wired” when built/compiled ?

Thanks - Leigh

/var/log/messages - last line

Aug 6 20:14:29 ipfire usbhid-ups[2154]: using ‘battery.charge’ to set battery low state
Aug 6 20:14:29 ipfire usbhid-ups[2154]: using ‘battery.runtime’ to set battery low state
Aug 6 20:14:29 ipfire usbhid-ups[2154]: Listening on socket /var/state/ups/usbhid-ups-UPS1400
Aug 6 20:14:29 ipfire usbhid-ups[2158]: Startup successful
Aug 6 20:14:29 ipfire usbhid-ups[2158]: upsnotify: notify about state NOTIFY_STATE_READY_WITH_PID with libsystemd: was requested, but not running as a service unit now, will not spam more about it
Aug 6 20:14:29 ipfire usbhid-ups[2158]: upsnotify: failed to notify about state NOTIFY_STATE_READY_WITH_PID: no notification tech defined, will not spam more about it
Aug 6 20:14:29 ipfire usbhid-ups[2158]: upsnotify: logged the systemd watchdog situation once, will not spam more about it
Aug 6 20:14:29 ipfire upsd[2159]: listening on 0.0.0.0 port 3493
Aug 6 20:14:29 ipfire upsd[2159]: Connected to UPS [UPS1400]: usbhid-ups-UPS1400
Aug 6 20:14:29 ipfire upsd[2159]: Found 1 UPS defined in ups.conf
Aug 6 20:14:29 ipfire usbhid-ups[2158]: sock_connect: enabling asynchronous mode (auto)
Aug 6 20:14:29 ipfire upsd[2160]: Startup successful
Aug 6 20:14:29 ipfire upsd[2160]: upsnotify: notify about state NOTIFY_STATE_READY_WITH_PID with libsystemd: was requested, but not running as a service unit now, will not spam more about it
Aug 6 20:14:29 ipfire upsd[2160]: upsnotify: failed to notify about state NOTIFY_STATE_READY_WITH_PID: no notification tech defined, will not spam more about it
Aug 6 20:14:29 ipfire upsd[2160]: upsnotify: logged the systemd watchdog situation once, will not spam more about it
Aug 6 20:14:29 ipfire upsmon[2162]: Startup successful
Aug 6 20:14:29 ipfire upsmon[2162]: OS user = not found

Hall @lsd_87

Welcome to the IPFire community.

The build configure file has the following options

./configure \
				--prefix=/usr \
				--sysconfdir=/etc/nut \
				--with-usb \
				--with-user=root \
				--with-group=nut \
				--with-wrap=no \
				--with-udev-dir=/etc/udev \
				--disable-static \
				--without-docs \
				--with-dev

so the user is set as root and the group as nut.

The plan is to change the user to nut for future updates.

Thanks for the quick reply

Tried RUN_AS_USER = root and still get the user not found.

(Reboot of whole system just to make sure)

Problem must be somewhere else

Aug 7 16:04:25 ipfire upsd[2207]: listening on 0.0.0.0 port 3493
Aug 7 16:04:25 ipfire upsd[2207]: Can’t connect to UPS [UPS1400] (/var/state/ups/usbhid-ups-UPS1400): Connection refused
Aug 7 16:04:25 ipfire upsd[2207]: Found 1 UPS defined in ups.conf
Aug 7 16:04:25 ipfire upsd[2208]: Startup successful
Aug 7 16:04:25 ipfire upsd[2208]: upsnotify: notify about state NOTIFY_STATE_READY_WITH_PID with libsystemd: was requested, but not running as a service unit now, will not spam more about it
Aug 7 16:04:25 ipfire upsd[2208]: upsnotify: failed to notify about state NOTIFY_STATE_READY_WITH_PID: no notification tech defined, will not spam more about it
Aug 7 16:04:25 ipfire upsd[2208]: upsnotify: logged the systemd watchdog situation once, will not spam more about it
Aug 7 16:04:25 ipfire upsmon[2210]: Startup successful
Aug 7 16:04:25 ipfire upsmon[2210]: OS user = not found

Unfortunately I don’t currently use nut so can’t help further on this.

No problem, thanks for taking the time to help - really appreciated
Will try the nut mailing list next, I have other problem with nut which I think is just config settings.

Leigh