In System -> Update Management -> Updates I performed the listed updates:
openmediavault 6.4.3-1
openmediavault-compose 6.7.15
openmediavault-nut 6.0.5-1
python3-distutils 3.9.2-1
python3-docker 4.1.0-1.2
python3-lib2to3 3.9.2-1
python3-websocket 0.57.0-1
During Updating workbench configuration files ... I got **CONNECTION LOST**. In the log this is the only error you can see Err:6 https://openmediavault-plugin-developers.github.io/packages/debian shaitan/main amd64 openmediavault-compose all 6.7.15 404 Not Found [IP: 185.199.109.153 443] (I cut some parts):
Reading package lists...
...
...
The following NEW packages will be installed:
python3-distutils python3-docker python3-lib2to3 python3-websocket
The following packages will be upgraded:
openmediavault openmediavault-compose openmediavault-nut
3 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
...
...
Err:6 https://openmediavault-plugin-developers.github.io/packages/debian shaitan/main amd64 openmediavault-compose all 6.7.15
404 Not Found [IP: 185.199.109.153 443]
...
...
Processing triggers for openmediavault (6.4.3-1) ...
Restarting engine daemon ...
Updating workbench configuration files ...
Setting up openmediavault-nut (6.0.5-1) ...
Updating configuration database ...
Updating configuration ...
Processing triggers for openmediavault (6.4.3-1) ...
Updating workbench configuration files ...
** CONNECTION LOST **
Display More
I waited a minute and then applied the changes in Pending configuration changes, and got an error.
Among the notifications I found these two logs:
Failed to read from socket: Connection reset by peer
OMV\Rpc\Exception: Failed to read from socket: Connection reset by peer in /usr/share/php/openmediavault/rpc/rpc.inc:172
Stack trace:
#0 /usr/share/php/openmediavault/rpc/proxy/json.inc(97): OMV\Rpc\Rpc::call()
#1 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
#2 {main}
Of the second I report only the parts referring to the error:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color nut 2>&1' with exit code '1': pandora.local:
...
...
----------
ID: start_nut_monitor_service
Function: service.running
Name: nut-monitor
Result: False
Comment: Job for nut-monitor.service failed because the control process exited with error code.
See "systemctl status nut-monitor.service" and "journalctl -xe" for details.
Started: 18:58:27.112917
Duration: 171.652 ms
Changes:
...
...
Summary for pandora.local
-------------
Succeeded: 15 (changed=5)
Failed: 1
-------------
Total states run: 16
Total run time: 2.270 s
[ERROR ] Command 'systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r80f53e4442ea42ab8a4b232c2fd098c3.scope
Job for nut-monitor.service failed because the control process exited with error code.
See "systemctl status nut-monitor.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for nut-monitor.service failed because the control process exited with error code.
See "systemctl status nut-monitor.service" and "journalctl -xe" for details.
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color nut 2>&1' with exit code '1': pandora.local:
...
...
----------
ID: start_nut_monitor_service
Function: service.running
Name: nut-monitor
Result: False
Comment: Job for nut-monitor.service failed because the control process exited with error code.
See "systemctl status nut-monitor.service" and "journalctl -xe" for details.
Started: 18:58:27.112917
Duration: 171.652 ms
Changes:
----------
...
...
Summary for pandora.local
-------------
Succeeded: 15 (changed=5)
Failed: 1
-------------
Total states run: 16
Total run time: 2.270 s
[ERROR ] Command 'systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r80f53e4442ea42ab8a4b232c2fd098c3.scope
Job for nut-monitor.service failed because the control process exited with error code.
See "systemctl status nut-monitor.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for nut-monitor.service failed because the control process exited with error code.
See "systemctl status nut-monitor.service" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:220
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(174): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(619): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatuspZ...', '/tmp/bgoutputa4...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(195): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}
Display More
systemctl status nut-monitor.service
● nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller
Loaded: loaded (/lib/systemd/system/nut-monitor.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-06-08 19:23:31 CEST; 47s ago
Process: 1096474 ExecStart=/sbin/upsmon (code=exited, status=1/FAILURE)
CPU: 4ms
Jun 08 19:23:31 pandora systemd[1]: Starting Network UPS Tools - power device monitor and shutdown controller...
Jun 08 19:23:31 pandora upsmon[1096474]: fopen /run/nut/upsmon.pid: No such file or directory
Jun 08 19:23:31 pandora upsmon[1096474]: Unable to use old-style MONITOR line without a username
Jun 08 19:23:31 pandora upsmon[1096474]: Convert it and add a username to upsd.users - see the documentation
Jun 08 19:23:31 pandora upsmon[1096474]: Fatal error: unusable configuration
Jun 08 19:23:31 pandora upsmon[1096474]: Network UPS Tools upsmon 2.7.4
Jun 08 19:23:31 pandora systemd[1]: nut-monitor.service: Control process exited, code=exited, status=1/FAILURE
Jun 08 19:23:31 pandora systemd[1]: nut-monitor.service: Failed with result 'exit-code'.
Jun 08 19:23:31 pandora systemd[1]: Failed to start Network UPS Tools - power device monitor and shutdown controller.
Display More
journalctl -xe
Support: https://www.debian.org/support
A start job for unit user@0.service has finished successfully.
The job identifier is 57568.
Jun 08 19:24:17 pandora systemd[1]: Started Session 1713 of user root.
Subject: A start job for unit session-1713.scope has finished successfully
Defined-By: systemd
Support: https://www.debian.org/support
A start job for unit session-1713.scope has finished successfully.
The job identifier is 57653.
Jun 08 19:24:33 pandora monit[1374]: 'nut-monitor' process is not running
Jun 08 19:24:33 pandora monit[1374]: 'nut-monitor' trying to restart
Jun 08 19:24:33 pandora monit[1374]: 'nut-monitor' start: '/bin/systemctl start nut-monitor'
Jun 08 19:24:33 pandora systemd[1]: Starting Network UPS Tools - power device monitor and shutdown controller...
Subject: A start job for unit nut-monitor.service has begun execution
Defined-By: systemd
Support: https://www.debian.org/support
A start job for unit nut-monitor.service has begun execution.
The job identifier is 57739.
Jun 08 19:24:33 pandora upsmon[1096678]: fopen /run/nut/upsmon.pid: No such file or directory
Jun 08 19:24:33 pandora upsmon[1096678]: Unable to use old-style MONITOR line without a username
Jun 08 19:24:33 pandora upsmon[1096678]: Convert it and add a username to upsd.users - see the documentation
Jun 08 19:24:33 pandora upsmon[1096678]: Fatal error: unusable configuration
Jun 08 19:24:33 pandora upsmon[1096678]: Network UPS Tools upsmon 2.7.4
Jun 08 19:24:33 pandora systemd[1]: nut-monitor.service: Control process exited, code=exited, status=1/FAILURE
Subject: Unit process exited
Defined-By: systemd
Support: https://www.debian.org/support
An ExecStart= process belonging to unit nut-monitor.service has exited.
The process' exit code is 'exited' and its exit status is 1.
Jun 08 19:24:33 pandora systemd[1]: nut-monitor.service: Failed with result 'exit-code'.
Subject: Unit failed
Defined-By: systemd
Support: https://www.debian.org/support
The unit nut-monitor.service has entered the 'failed' state with result 'exit-code'.
Jun 08 19:24:33 pandora systemd[1]: Failed to start Network UPS Tools - power device monitor and shutdown controller.
Subject: A start job for unit nut-monitor.service has failed
Defined-By: systemd
Support: https://www.debian.org/support
A start job for unit nut-monitor.service has finished with a failure.
The job identifier is 57739 and the job result is failed.
Jun 08 19:25:06 pandora monit[1374]: 'nut-monitor' failed to start (exit status 1) -- '/bin/systemctl start nut-monitor': Job for nut-monitor.service failed because the control process exited with error >
See "systemctl status nut-monitor.service" and "journalctl -xe" for details.
Display More
I understand that the problem is NUT, how can I fix it? Thank you