Mox: Cannot mark guide as finished HBS 6.0.2
Summary
Mox Power Wi-Fi, TOS 6.0.2 (HBS)
Althought it could probably happen on any Mox with one ethernet interface (just module A).
This is most likely issue in backend and/or TOS default configuration itself, but I have created this issue to track the unexpected "User experience" issue here.
Steps To Reproduce
- Fresh install of TOS 6.0.2 (medkit/factory reset).
- Setup Mox using the Server workflow.
- Try to finish guide.
Expected Result
Guide should finish successfully.
Actual Result
Error message Cannot mark guide as finished.
appears.
With additional error description from backend for http request
https://<router-ip>/reforis/api/finish-guide
See details
500 - Server error
Error:
Remote Exception: Internal error Uci record was not found 'network.wan.device'.('<class 'foris_controller.exceptions.UciRecordNotFound'>')
Extra:
{"module": "web", "action": "update_guide", "kind": "request", "data": {"enabled": false}}
Trace:
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/foris_controller_backends/uci/__init__.py", line 80, in get_option_named KeyError: 'device' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/foris_controller/message_router.py", line 117, in process_message File "/usr/lib/python3.9/site-packages/foris_controller/module_base.py", line 61, in perform_action File "/usr/lib/python3.9/site-packages/foris_controller_modules/web/__init__.py", line 66, in action_update_guide File "/usr/lib/python3.9/site-packages/foris_controller_modules/web/handlers/openwrt.py", line 75, in update_guide File "/usr/lib/python3.9/site-packages/foris_controller_backends/web/__init__.py", line 157, in update_guide File "/usr/lib/python3.9/site-packages/foris_controller_backends/wan/__init__.py", line 393, in update_uncofigured_wan_to_default File "/usr/lib/python3.9/site-packages/foris_controller_backends/wan/__init__.py", line 326, in update_settings File "/usr/lib/python3.9/site-packages/foris_controller_backends/uci/__init__.py", line 83, in get_option_named foris_controller.exceptions.UciRecordNotFound: Uci record was not found 'network.wan.device'.
On reload of the "Finish" page, redirect to reforis may happen with another error.
500 - Server error
Error:
500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
However on another reload, reforis UI is finally shown to user and the error is gone.