My BIOS has only two options for the serial port: enable/disable and IRQ address.
From command line:
# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 1.011463] 00:05: ttyS2 at I/O 0x3e8 (irq = 3, base_baud = 115200) is a 16550A
The following configuration is saved for the UPS (same as I used on 2.x and earlier):
Identifier:
SU1400
Driver configuration directives:
driver = apcsmart
port = /dev/ttyS2
cable = 940-0024C
sdtype = 2
sdorder = -1
Shutdown mode:
UPS goes on battery
Shutdown timer:
300
Alles anzeigen
When I attempt to enable the UPS plugin and Apply the configuration, I get the following error dialog:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'nut-driver' 2>&1' with exit code '1': Job for nut-driver.service failed because the control process exited with error code.See "systemctl status nut-driver.service" and "journalctl -xe" for details.
When I select 'View details' from GUI:
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'nut-driver' 2>&1' with exit code '1': Job for nut-driver.service failed because the control process exited with error code.
See "systemctl status nut-driver.service" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:175
Stack trace:
#0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
#1 /usr/share/php/openmediavault/system/systemctl.inc(104): OMV\System\SystemCtl->exec('start', NULL, false)
#2 /usr/share/openmediavault/engined/module/nut.inc(92): OMV\System\SystemCtl->enable(true)
#3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleNetworkUPSTools->startService()
#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(536): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusMn...', '/tmp/bgoutputsm...')
#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#14 {main}
Alles anzeigen
systemctl status nut-driver.service:
# systemctl status nut-driver.service
● nut-driver.service - Network UPS Tools - power device driver controller
Loaded: loaded (/lib/systemd/system/nut-driver.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-04-08 09:59:45 PDT; 16min ago
Process: 4218 ExecStart=/sbin/upsdrvctl start (code=exited, status=1/FAILURE)
Apr 08 09:59:45 HomeServer upsdrvctl[4218]: - Use another port (with the right permissions)
Apr 08 09:59:45 HomeServer upsdrvctl[4218]: - Fix the port owner/group or permissions on this port
Apr 08 09:59:45 HomeServer upsdrvctl[4218]: - Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
Apr 08 09:59:45 HomeServer upsdrvctl[4218]: See upsdrvctl(8) and ups.conf(5).
Apr 08 09:59:45 HomeServer upsdrvctl[4218]: Driver failed to start (exit status=1)
Apr 08 09:59:45 HomeServer upsdrvctl[4218]: Network UPS Tools - UPS driver controller 2.7.4
Apr 08 09:59:45 HomeServer systemd[1]: nut-driver.service: Control process exited, code=exited status=1
Apr 08 09:59:45 HomeServer systemd[1]: Failed to start Network UPS Tools - power device driver controller.
Apr 08 09:59:45 HomeServer systemd[1]: nut-driver.service: Unit entered failed state.
Apr 08 09:59:45 HomeServer systemd[1]: nut-driver.service: Failed with result 'exit-code'.
Alles anzeigen
journalctl -xe produces a huge output. I *think* this is the relevant bits:
Apr 08 10:22:22 HomeServer systemd[1]: Starting Network UPS Tools - power device driver controller...
-- Subject: Unit nut-driver.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit nut-driver.service has begun starting up.
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Fatal error: unusable configuration
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4)
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: APC command table version 3.1
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Unable to open /dev/ttyS2: Permission denied
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Current user id: nut (113)
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Serial port owner: root (0)
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Serial port group: dialout (20)
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Mode of port: 0660
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Things to try:
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: - Use another port (with the right permissions)
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: - Fix the port owner/group or permissions on this port
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: - Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: See upsdrvctl(8) and ups.conf(5).
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Driver failed to start (exit status=1)
Apr 08 10:22:22 HomeServer upsdrvctl[6594]: Network UPS Tools - UPS driver controller 2.7.4
Apr 08 10:22:22 HomeServer systemd[1]: nut-driver.service: Control process exited, code=exited status=1
Apr 08 10:22:22 HomeServer systemd[1]: Failed to start Network UPS Tools - power device driver controller.
Alles anzeigen
What am I missing in my configuration?