Sentinel init script is not found
When I click "Save" on Data collection tab in reforis, I get an API error.
Request:
curl 'http://192.168.88.1/reforis/data-collection/api/settings' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0' -H 'Accept: application/json' -H 'Accept-Language: cs,en-US;q=0.7,en;q=0.3' --compressed -H 'Content-Type: application/json' -H 'X-CSRFToken: a9003425b4f4463ad2e5b5f9113e4cf7e550ad17' -H 'Origin: http://192.168.88.1' -H 'Connection: keep-alive' -H 'Referer: http://192.168.88.1/reforis/data-collection' -H 'Cookie: _csrf_token=a9003425b4f4463ad2e5b5f9113e4cf7e550ad17; session=dfffb1df-310c-4e48-aef0-82c4cf897f33' --data-raw '{"eula":1,"token":"****"}'
Response:
reForis version 0.8.0
500 -- Server error
Error:
Remote Exception: Internal error Calling 'restart' for service 'sentinel' failed. (unable to call '/etc/init.d/sentinel restart')('<class 'foris_controller.exceptions.ServiceCmdFailed'>')
Extra:
{"module": "sentinel", "action": "update_settings", "kind": "request", "data": {"eula": 1, "token": "5742345a1bace40bc4b1ec36172498ff610faf99c1a9d0d2ebcbbfc7f9dc5ee6"}}
Trace:
Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/foris_controller_backends/services/__init__.py", line 62, in _run_service_command File "/usr/lib/python3.7/site-packages/foris_controller_backends/cmdline/__init__.py", line 76, in handle_command File "/usr/lib/python3.7/subprocess.py", line 800, in __init__ File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child FileNotFoundError: [Errno 2] No such file or directory: '/etc/init.d/sentinel': '/etc/init.d/sentinel' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/foris_controller/message_router.py", line 117, in process_message File "/usr/lib/python3.7/site-packages/foris_controller/module_base.py", line 61, in perform_action File "/usr/lib/python3.7/site-packages/foris_controller_modules/sentinel/__init__.py", line 41, in action_update_settings File "/usr/lib/python3.7/site-packages/foris_controller/utils.py", line 113, in inner File "/usr/lib/python3.7/site-packages/foris_controller_modules/sentinel/handlers/openwrt.py", line 46, in update_settings File "/usr/lib/python3.7/site-packages/foris_controller_backends/sentinel/__init__.py", line 79, in update_settings File "/usr/lib/python3.7/site-packages/foris_controller_backends/services/__init__.py", line 125, in restart File "/usr/lib/python3.7/site-packages/foris_controller_backends/services/__init__.py", line 67, in _run_service_command foris_controller.exceptions.ServiceCmdFailed: Calling 'restart' for service 'sentinel' failed. (unable to call '/etc/init.d/sentinel restart')
Sentinel installed by opkg install sentinel-dynfw-client sentinel-minipot sentinel-nikola
.
And indeed, there is no file /etc/init.d/sentinel
.
Edited by Josef Schlehofer