@Kuro,
I could reproduce the failure of the āRebootā task, but it turns out not to be related to the API endpoint as I incorrectly stated above. Could you, by any chance, confirm that you see the same error as I do?
The error should be visible in the email sent to you by the system. If you have the email alerts set up, then it should be in the email you received. If you do not, then you should be able to read it in the following:
# cat /var/spool/mail/root
From root@localhost Thu Mar 2 10:20:02 2023
Return-Path: <root@localhost>
X-Original-To: root
Delivered-To: root@localhost
Received: by localhost (Postfix, from userid 0)
id 42F79F551; Thu, 2 Mar 2023 10:20:02 -0500 (EST)
From: "(Cron Daemon)" <root@localhost>
To: root@localhost
Subject: Cron <root@radmin> /opt/rockstor/.venv/bin/st-system-power 6 \*-*-*-*-*-*
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20230302152002.42F79F551@localhost>
Date: Thu, 2 Mar 2023 10:20:02 -0500 (EST)
Traceback (most recent call last):
File "/opt/rockstor/.venv/bin/st-system-power", line 5, in <module>
main()
File "/opt/rockstor/src/rockstor/scripts/scheduled_tasks/reboot_shutdown.py", line 109, in main
if not run_conditions_met(meta):
File "/opt/rockstor/src/rockstor/scripts/scheduled_tasks/reboot_shutdown.py", line 50, in run_conditions_met
if meta["ping_scan"]:
KeyError: 'ping_scan'
The error I see is thus the following:
Traceback (most recent call last):
File "/opt/rockstor/.venv/bin/st-system-power", line 5, in <module>
main()
File "/opt/rockstor/src/rockstor/scripts/scheduled_tasks/reboot_shutdown.py", line 109, in main
if not run_conditions_met(meta):
File "/opt/rockstor/src/rockstor/scripts/scheduled_tasks/reboot_shutdown.py", line 50, in run_conditions_met
if meta["ping_scan"]:
KeyError: 'ping_scan'