Bug 14687 - nut: Problems encountered when activating services
Summary: nut: Problems encountered when activating services
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure advisory MGA5-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2014-11-29 08:29 CET by Alex Loginov
Modified: 2017-03-31 15:38 CEST (History)
7 users (show)

See Also:
Source RPM: nut
CVE:
Status comment:


Attachments

Description Alex Loginov 2014-11-29 08:29:46 CET
Description of problem:
  114/198: nut                   #########################################################################################################
Warning: Problems encountered when activating services.
  Please check and enable manually if necessary.
  Service units affected: upsmon.service
  117/198: nut-server            #########################################################################################################
Warning: Problems encountered when activating services.
  Please check and enable manually if necessary.
  Service units affected: upsd.service


Version-Release number of selected component (if applicable): nut-2.6.5-14.mga5.i586.rpm


How reproducible: always


Steps to Reproduce:
1. install nut

Reproducible: 

Steps to Reproduce:
Comment 1 David Walser 2014-11-29 18:47:52 CET
It's not apparent what the problem is.

CC: (none) => guillomovitch, thierry.vignaud

Comment 2 Samuel Verschelde 2015-05-21 11:27:48 CEST
This package has no maintainer. Would you like to investigate and fix it Alex?

Whiteboard: (none) => MGA5TOO

Comment 3 Dave Hodgins 2016-04-10 01:36:34 CEST
Just ran into this myself with nut-server-2.6.5-15.mga5. The problem is that
nut-driver.service starts, but then stops immediately, removing the files it
creates in /var/state/ups/

This is caused by /lib/systemd/system/nut-driver.service having the line
StopWhenUnneeded=yes

Changing the value from yes to no fixes the problem, once the rest of the
nut configuration has been correctly setup.

In ups.conf I have ...
[nutdev1]
        driver = "usbhid-ups"
        port = "auto"

In upsd.conf I have ...
LISTEN 127.0.0.1 3493

(ipv6 doesn't work here, so I have that line commented out).

In upsd.users I have ...
        [admin]
                password = munged
                actions = SET
                instcmds = ALL
        [upsmon]
                password  = munged
                upsmon master

I can then use commands such as "upsc nutdev1".

CC: (none) => davidwhodgins
Hardware: i586 => All

Comment 4 Samuel Verschelde 2016-11-01 12:32:13 CET
Assigning to all packagers collectively since nut has no registered maintainer.

Assignee: bugsquad => pkg-bugs

Mubarak Alrashidi 2017-03-30 16:37:59 CEST

CC: (none) => Mr.DeaDSouL

Comment 5 Mike Rambo 2017-03-31 03:47:52 CEST
Patched package 2.6.5-18 uploaded for cauldron.


Patched package 2.6.5-16 uploaded for Mageia 5.

Advisory:
========================

Updated nut package fixes a bug where the nut-driver.service starts but stops immediately (bug#14687).

Updated packages in core/updates_testing:
========================
lib64upsclient1-2.6.5-16.mga5
nut-2.6.5-16.mga5
nut-cgi-2.6.5-16.mga5
nut-debuginfo-2.6.5-16.mga5
nut-devel-2.6.5-16.mga5
nut-server-2.6.5-16.mga5

from nut-2.6.5-16.mga5.src.rpm


Test procedure: https://bugs.mageia.org/show_bug.cgi?id=6282#c4

CC: (none) => mrambo
Version: Cauldron => 5
Assignee: pkg-bugs => qa-bugs
Whiteboard: MGA5TOO => has_procedure

Comment 6 Dave Hodgins 2017-03-31 06:42:08 CEST
Thanks! Advisory added to svn, tested on Mageia 5 x86_64, validating the update.

Keywords: (none) => validated_update
Whiteboard: has_procedure => has_procedure advisory MGA5-64-OK
CC: (none) => sysadmin-bugs

Comment 7 Mageia Robot 2017-03-31 08:15:19 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGAA-2017-0015.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 8 Jani Välimaa 2017-03-31 15:38:46 CEST
Dunno if this is different thing, but found this upstream bug:
https://github.com/networkupstools/nut/issues/200

The fix was a bit different.

CC: (none) => jani.valimaa


Note You need to log in before you can comment on or make changes to this bug.