installation instructions for NUT on Fedora 19 - that works
Gary Stainburn
gary.stainburn at ringways.co.uk
Thu Jan 7 17:14:00 UTC 2016
Hi folks,
I'm trying to get NUT installed on an existing F19 server which sits beside my
shiney new APC SmartUPS. It's connected using a serial cable on ttyS0.
I've found a number of web sites that tell you how to install NUT and get it
working, including one that said it worked where others didn;'t - it referred
to permissions issues with the RPMs.
However, none of the instructions relate to F19 and even after making
allowances I still can't get it to work.
One thing that was missing was /var/run/ups which was the last thing I
created. However, as you can see below, it still doesn't work.
I'm hoping eventually to have this server monitor the UPS, and then have all
other servers monitor through this server.
Can anyone help with getting this working. Ta
Gary
[root at lou ups]# mkdir /var/run/nut
[root at lou ups]# chown root:nut /var/run nut.conf
[root at lou ups]# systemctl start nut-driver
Job for nut-driver.service failed. See 'systemctl status nut-driver.service'
and 'journalctl -xn' for details.
[root at lou ups]# systemctl status nut-driver.service
nut-driver.service - Network UPS Tools - power device driver controller
Loaded: loaded (/usr/lib/systemd/system/nut-driver.service; static)
Active: failed (Result: exit-code) since Thu 2016-01-07 17:05:49 GMT; 9s
ago
Process: 3072 ExecStart=/sbin/upsdrvctl start (code=exited,
status=1/FAILURE)
Jan 07 17:05:37 lou.ringways.co.uk upsdrvctl[3072]: Communications with UPS
re-established
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Exiting.
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: APC command table version
3.0
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Fatal error: unable to
create listener socket
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]:
bind /var/run/nut/apcsmart-LSR1 failed: Permission denied
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Driver failed to start
(exit status=1)
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Network UPS Tools - UPS
driver controller 2.6.5
Jan 07 17:05:49 lou.ringways.co.uk systemd[1]: nut-driver.service: control
process exited, code=exited status=1
Jan 07 17:05:49 lou.ringways.co.uk systemd[1]: Failed to start Network UPS
Tools - power device driver controller.
Jan 07 17:05:49 lou.ringways.co.uk systemd[1]: Unit nut-driver.service entered
failed state.
[root at lou ups]# journalctl -xn
-- Logs begin at Thu 2014-06-05 11:52:54 BST, end at Thu 2016-01-07 17:05:49
GMT. --
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Exiting.
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Network UPS Tools - APC
Smart protocol driver 3.04 (2.6.5)
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: APC command table version
3.0
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Fatal error: unable to
create listener socket
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]:
bind /var/run/nut/apcsmart-LSR1 failed: Permission denied
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Driver failed to start
(exit status=1)
Jan 07 17:05:49 lou.ringways.co.uk upsdrvctl[3072]: Network UPS Tools - UPS
driver controller 2.6.5
Jan 07 17:05:49 lou.ringways.co.uk systemd[1]: nut-driver.service: control
process exited, code=exited status=1
Jan 07 17:05:49 lou.ringways.co.uk systemd[1]: Failed to start Network UPS
Tools - power device driver controller.
-- Subject: Unit nut-driver.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nut-driver.service has failed.
--
-- The result is failed.
Jan 07 17:05:49 lou.ringways.co.uk systemd[1]: Unit nut-driver.service entered
failed state.
[root at lou ups]#
More information about the users
mailing list