Project

General

Profile

Bug #4426

NUT fails to start or restart until NUT's settings are (re)saved

Added by B. Derman over 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Nut
Target version:
-
Start date:
02/13/2015
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.1.5
Affected Architecture:
i386

Description

Since updating NUT to 2.6.5_1 pkg/2.0.4, I'm finding that NUT won't start on a pfSense reboot. Pressing a "restart service" button via the services page won't start NUT nor will the following code:
---
require_once("service-utils.inc");

if (is_service_enabled('nut') && !is_service_running('nut')) {
start_service('nut');
}
---

The NUT status panel will indicate that "nut is enabled but the service is not running" (wording paraphrased from memory).

In order to get NUT to run, again, I need to save the settings (no changes, just resave 'em).

To make matters worse, restarting various other services (e.g., an OpenVPN server) will kill NUT and it won't restart.

Watching things, I can see that a service "stop" is issued for NUT ... and then it's done! Seems that the only way to restart NUT is to save the NUT settings.

This all started when I updated to pfSense 2.1.5 and inherited the current NUT package version. Previously was running pfSense 2.1.4 and (IIRC) a slightly earlier version of the NUT package.

I'm willing to troubleshoot this issue (I done the basics like reboot and reinstalled the package), but could use a more advanced "getting started" pointer (yes, I see the irony of that).

FYI, when they're all running, I have the following services:
---
apinger
avahi
bsnmpd
dhcpd
dnsmasq
ntpd
nut
openvpn
openvpn
openvpn
openvpn
openvpn
racoon
---

History

#1 Updated by B. Derman over 5 years ago

FYI, same/converted config, etc. and this does not seem to be an issue with pfSense v2.2 (64-bit, instead of 32-bit) which installs NUT 2.7.2_6 pkg/2.0.4.

#2 Updated by Jason Warren about 5 years ago

I have been unable to start NUT on my 2.2.2-RELEASE (amd64) install since creating an openvpn client and therefore registering the openvpn service. I believe there is a possible interaction between these two.

#3 Updated by Kill Bill almost 5 years ago

Install the current version. After that, test this please (either apply via system patches or replace existing /usr/local/pkg/nut.inc): https://github.com/pfsense/pfsense-packages/pull/990

#4 Updated by Kill Bill almost 5 years ago

Nevermind, PR merged. Just update the package and report back.

#5 Updated by Kill Bill almost 5 years ago

Works for me with current package. Would be nice to get some feedback here from someone else...

#6 Updated by Chris Buechler almost 5 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF