Project

General

Profile

Actions

Bug #4426

closed

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

Added by B. Derman about 9 years ago. Updated over 8 years ago.

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

0%

Estimated time:
Plus Target Version:
Affected Version:
2.1.5
Affected Plus Version:
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
---

Actions #1

Updated by B. Derman about 9 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.

Actions #2

Updated by Jason Warren almost 9 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.

Actions #3

Updated by Kill Bill over 8 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

Actions #4

Updated by Kill Bill over 8 years ago

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

Actions #5

Updated by Kill Bill over 8 years ago

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

Actions #6

Updated by Chris Buechler over 8 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF