[Bug 907387] New: nut systemd service file (nut-driver.service) has wrong ExecStart/Stop entry.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 Bug ID: 907387 Summary: nut systemd service file (nut-driver.service) has wrong ExecStart/Stop entry. Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: All OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: ivar_nikolaisen@hotmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 Build Identifier: The nut-driver service file (/usr/lib/systemd/system/nut-driver.service) does not work because the service file is incorrect. It currently has the following settings under [Service]: ExecStart=/upsdrvctl start ExecStop=/upsdrvctl stop These are obviously not correct full paths to the upsdrvctl executable. On my machine, I have found the executable located at /usr/lib/ups/driver/upsdrvctl, and nut seems to work correctly if I change to this path (that is, after doing systemctl start nut-server.service, my UPS is identified correctly and I can query it using the upsc utility). Reproducible: Always -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com Assignee|bnc-team-screening@forge.pr |sbrabec@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 Mark Goldstein <goldstein.mark@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |goldstein.mark@gmail.com --- Comment #1 from Mark Goldstein <goldstein.mark@gmail.com> --- Same here. /etc/init.d/upsd works correctly. Same change as described by Ivar fixed the problem. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 Dmitriy Perlow <dap@open.by> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dap@open.by --- Comment #2 from Dmitriy Perlow <dap@open.by> --- Hello! Could you help me please to run nut-server? %cat /usr/lib/systemd/system/nut-driver.service [Unit] Description=Network UPS Tools - power device driver controller After=local-fs.target network.target StopWhenUnneeded=yes [Service] ExecStart=/usr/lib/ups/driver/upsdrvctl start ExecStop=/usr/lib/ups/driver/upsdrvctl stop Type=forking %LANG=C ls -l /usr/lib/ups/driver/upsdrvctl -rwxr-xr-x 1 root root 31472 Oct 15 15:45 /usr/lib/ups/driver/upsdrvctl %sudo systemctl start nut-server.service A dependency job for nut-server.service failed. See 'journalctl -xn' for details. %sudo systemctl status nut-server.service nut-server.service - Network UPS Tools - power devices information server Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled) Active: inactive (dead) jan 15 18:13:40 linux.site systemd[1]: Dependency failed for Network UPS Tools - power devices information server. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 --- Comment #3 from Dmitriy Perlow <dap@open.by> --- sudo /usr/lib/ups/driver/upsdrvctl start Network UPS Tools - UPS driver controller 2.7.1 Network UPS Tools - Megatec/Q1 protocol serial driver 1.56 (2.7.1) Unable to open /dev/ttyS0: Permission denied Current user id: upsd (485) Serial port owner: root (0) Serial port group: root (0) Mode of port: 0600 Things to try: - Use another port (with the right permissions) - Fix the port owner/group or permissions on this port - Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf). See upsdrvctl(8) and ups.conf(5). Fatal error: unusable configuration Driver failed to start (exit status=1) %groups upsd upsd : daemon dialout -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 --- Comment #4 from Dmitriy Perlow <dap@open.by> --- Finally service is corrupted and dialout group is missing. Other problems were personally mine, sorry. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 --- Comment #5 from Stanislav Brabec <sbrabec@suse.com> --- Regarding the permissions to serial UPS: There was a hack in the sysv init script: It extracted serial device name from the configuration and changed its permissions. case "$PORT" in /dev/ttyS* ) chown $UPS_OWNER $PORT Adding dialout group to UPS device is an ugly hack. And dangerous, because it allows any user to manipulate with UPS. dialout group should be used to allow access to a modem/serial port to any user. More correct would be creating and udev/systemd rule configuring serial port as an UPS device port. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c6 George Anchev <studio@anchev.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |studio@anchev.net --- Comment #6 from George Anchev <studio@anchev.net> --- I confirm the bug persists in Leap 42.1 The correct paths should be ExecStart=/usr/lib/ups/driver/upsdrvctl start ExecStop=/usr/lib/ups/driver/upsdrvctl stop and then everything works. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c7 Kevin Mills <kevinmi@microfocus.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kevinmi@microfocus.com --- Comment #7 from Kevin Mills <kevinmi@microfocus.com> --- This is still present in 42.2 as well. Also worthy of note: I had updated my ExecStart and ExecStop lines to the proper paths when running Leap 42.1. The online upgrade to 42.2 overwrote my changes. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c8 George Anchev <studio@anchev.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|13.2 |Leap 42.2 OS|openSUSE 13.2 |openSUSE 42.2 --- Comment #8 from George Anchev <studio@anchev.net> --- I confirm also that this is still present on 42.2. Someone please look into that. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 George Anchev <studio@anchev.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c12 --- Comment #12 from Jon Nelson <jnelson-suse@jamponi.net> ---
http://download.opensuse.org/repositories/home:/pmonrealgonzalez:/branches:/ OBS_Maintained:/nut/openSUSE_Leap_42.2_Update
I can confirm that the update in the above repo fixes the problem. I inspected the patch and changes, and confirmed that the paths are correct post-install. Should "needinfo" be cleared? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1051380 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c15 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |artkoz78@gmail.com --- Comment #15 from Stanislav Brabec <sbrabec@suse.com> --- *** Bug 1051380 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c16 --- Comment #16 from Stanislav Brabec <sbrabec@suse.com> --- I propose to make a version upgrade, which will fix both pending bugs and bring better hardware support. With my testing environment, nut seems to work again. Source: https://build.opensuse.org/project/show/home:sbrabec:branches:nut-1051380 openSUSE Leap 42.2: http://download.opensuse.org/repositories/home:/sbrabec:/branches:/nut-10513... openSUSE Leap 42.3: http://download.opensuse.org/repositories/home:/sbrabec:/branches:/nut-10513... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c18 --- Comment #18 from Stanislav Brabec <sbrabec@suse.com> --- https://build.opensuse.org/request/show/514591 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c21 Karl Cheng <qantas94heavy@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED CC| |qantas94heavy@gmail.com Resolution|--- |FIXED --- Comment #21 from Karl Cheng <qantas94heavy@gmail.com> --- Updates released. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907387 http://bugzilla.opensuse.org/show_bug.cgi?id=907387#c22 --- Comment #22 from George Anchev <studio@anchev.net> --- 'zypper ref && zypper up' shows no updates. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com