Netgate SG-1000 microFirewall

Author Topic: NUT package under pfSense 2.3.2: Status and configuration page not accessible  (Read 3934 times)

0 Members and 1 Guest are viewing this topic.

Offline pvoigt

  • Full Member
  • ***
  • Posts: 251
  • Karma: +1/-0
    • View Profile
I have installed pfSense 2.3.2 (fresh installation, full installation on mSATA, amd64) on an apu1d4. After the import of my 2.2.6 configuration I reinstalled the NUT package. The NUT package is obviosuly installed correctly and can be started and stopped from the dashboard.

When I try to access NUT via "Services -> NUT" I obtain
Code: [Select]
404 Not Found
This means I can make no longer any changes to the NUT configuration.

Offline dennypage

  • Hero Member
  • *****
  • Posts: 749
  • Karma: +147/-0
    • View Profile
I believe this is my fault. I had some files missing from the commit for the new NUT package. I believe it's fixed now. Sorry for the problem.

Offline dennypage

  • Hero Member
  • *****
  • Posts: 749
  • Karma: +147/-0
    • View Profile
It's currently fixed for community, but not fixed yet for factory. The fixed version is 2.7.4.

Offline pvoigt

  • Full Member
  • ***
  • Posts: 251
  • Karma: +1/-0
    • View Profile
Thank your for the quick reply. It's good to know that the issue is fixed.

However, I am not sure about correct understanding of "fixed for community". Does it mean that it is just fixed in the github repository (https://github.com/pfsense/FreeBSD-ports/commits/devel/sysutils/pfSense-pkg-nut) but not yet repackaged for regular package update using the pfSense webGUI?

Is there a way to pull in your recent changes of the NUT package or do I have to wait for version 2.7.3?

Offline dennypage

  • Hero Member
  • *****
  • Posts: 749
  • Karma: +147/-0
    • View Profile
Community refers to the Community Edition of pfSense. If you are using the community edition, you should see version 2.7.4 as available. Re-install the NUT package and it should be correct.

Offline pvoigt

  • Full Member
  • ***
  • Posts: 251
  • Karma: +1/-0
    • View Profile
Yes, I am using the community edition and reinstallation of the package has even been my first thought. But when using the package management I would have expected a newer package version than 2.3.1 and therefore I did not go further in my first attempt.

Now I have reinstalled the package and everything works as expected.

Thank you.

Offline abauer

  • Newbie
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
I just upgraded from 2.3.1_5 to 2.3.2 (Community Edition) and have the same issue. ups_status.php returns 404 not found.

I have uninstalled and then reinstalled nut 2.7.4_1
This did not resolve the issue.

Perhaps the error "XML error: PKGINFOLINK at line 8 cannot occur more than once" shown in the installation log below is a relevant clue.

Code: [Select]
>>> Installing pfSense-pkg-nut...
Updating pfSense-core repository catalogue...
pfSense-core repository is up-to-date.
Updating pfSense repository catalogue...
pfSense repository is up-to-date.
All repositories are up-to-date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
pfSense-pkg-nut: 2.7.4_1 [pfSense]
nut: 2.7.4 [pfSense]
neon: 0.30.1 [pfSense]
net-snmp: 5.7.3_11 [pfSense]

Number of packages to be installed: 4

The process will require 17 MiB more space.
1 MiB to be downloaded.
Fetching nut-2.7.4.txz: .......... done
Fetching neon-0.30.1.txz: .......... done
Checking integrity... done (0 conflicting)
[1/4] Installing neon-0.30.1...
[1/4] Extracting neon-0.30.1: .......... done
[2/4] Installing net-snmp-5.7.3_11...
[2/4] Extracting net-snmp-5.7.3_11: .......... done
[3/4] Installing nut-2.7.4...
[3/4] Extracting nut-2.7.4: .......... done
[4/4] Installing pfSense-pkg-nut-2.7.4_1...
[4/4] Extracting pfSense-pkg-nut-2.7.4_1: .......... done
XML error: PKGINFOLINK at line 8 cannot occur more than once
Message from net-snmp-5.7.3_11:
**** This port installs snmpd, header files and libraries but does not
     start snmpd by default.
     If you want to auto-start snmpd and snmptrapd:, add the following to
     /etc/rc.conf:

snmpd_enable="YES"
snmpd_flags="-a"
snmpd_conffile="/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf"
snmptrapd_enable="YES"
snmptrapd_flags="-a -p /var/run/snmptrapd.pid"

**** You may also specify the following make variables:

NET_SNMP_SYS_CONTACT="zi@FreeBSD.org"
NET_SNMP_SYS_LOCATION="USA"
DEFAULT_SNMP_VERSION=3
NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
NET_SNMP_LOGFILE=/var/log/snmpd.log
NET_SNMP_PERSISTENTDIR=/var/net-snmp

     to define default values (or to override the defaults).  To avoid being
     prompted during the configuration process, you should (minimally) define
     the first two variables. (NET_SNMP_SYS_*)

     You may also define the following to avoid all interactive configuration:

BATCH="yes"
>>> Cleaning up cache... done.
Success

Offline Ramosel

  • Full Member
  • ***
  • Posts: 223
  • Karma: +15/-0
    • View Profile
Same here.  No service showing in dropdown and although UPS widget is available show the "Monitoring is not Enabled"

From the reinstall:

Installed packages to be REINSTALLED:
   pfSense-pkg-nut-2.7.4_1 [pfSense]

Number of packages to be reinstalled: 1
[1/1] Reinstalling pfSense-pkg-nut-2.7.4_1...
[1/1] Extracting pfSense-pkg-nut-2.7.4_1: .......... done
The nut package is not installed.

Deletion aborted.XML error: PKGINFOLINK at line 8 cannot occur more than once
>>> Cleaning up cache... done.
Success


Package shows installed in the dashboard??
« Last Edit: August 07, 2016, 08:44:14 pm by Ramosel »

Offline dennypage

  • Hero Member
  • *****
  • Posts: 749
  • Karma: +147/-0
    • View Profile
I just upgraded from 2.3.1_5 to 2.3.2 (Community Edition) and have the same issue. ups_status.php returns 404 not found.

I have uninstalled and then reinstalled nut 2.7.4_1
This did not resolve the issue.

Perhaps the error "XML error: PKGINFOLINK at line 8 cannot occur more than once" shown in the installation log below is a relevant clue.

As noted in other threads, 2.7.4_1 from the community and factory package servers are corrupt and will not install. The version from the beta package server is correct. I expect that the community and factory packages will be fixed as soon as someone is available on Monday.

If you have a critical need to install the package before then, you can PM me with an email address and I will send you a copy of the package.
« Last Edit: August 08, 2016, 12:16:01 am by dennypage »

Offline val

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +2/-0
    • View Profile
It's all fixed now and tagged with 2.7.4_2
Intel Xeon E3-1225 V2 @ 3.20Ghz
Intel S1200KPR server board mini-ITX
A-data ECC 4GB x 2 1600MHz
Intel Ethernet Server Adapter I350-T2
Samsung 840 Pro 120GB
Lian-Li PC-Q15B


Offline abauer

  • Newbie
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Thanks for the update and for fixing the issue.

Offline tweek

  • Jr. Member
  • **
  • Posts: 31
  • Karma: +1/-0
    • View Profile
I'm on pfSense 2.3.2, I did an update to NUT package 2.7.4_1.  The service wouldn't start and the NUT services page didn't appear in the Services drop-down menu.  This evening I updated to the NUT 2.7.4_2 package and am having the same problems, even following a service reinstall.

Offline tweek

  • Jr. Member
  • **
  • Posts: 31
  • Karma: +1/-0
    • View Profile
Ok, got it figured out.  I had to do a full uninstall/reinstall, then realize that the name of the service in Services changed from NUT to UPS, then had to visit Services | UPS and review the settings and accept the changes to accommodate version changes to the settings.  The service was then able to start and all seems to be working now.

Offline dennypage

  • Hero Member
  • *****
  • Posts: 749
  • Karma: +147/-0
    • View Profile
Glad you got it sorted. Btw, there is an info link for the package. It shows up as an i in a circle in the package manager. This thread has information on the package that might be helpful.

Offline Ramosel

  • Full Member
  • ***
  • Posts: 223
  • Karma: +15/-0
    • View Profile
using the command line from the other thread to completely remove, then reinstalling with the _2 package, all is well.  Thanks.
Nice detail on the settings page as far parameters being seen.