Hello,
Just applied the upgrade (was already on HBT).
I cannot login to reforis nor foris.
Reforis error:
ControllerMissing Python 3.7.10: /usr/bin/python3
Tue May 4 09:55:32 2021
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python3.7/site-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
/usr/lib/python3.7/site-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
/usr/lib/python3.7/site-packages/reforis/__main__.py in __call__(self=<reforis.__main__.AppWrapper object>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/www/turris-webapps/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'fr-FR,fr;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_DNT': '1', 'HTTP_HOST': '192.168.1.1', ...}, start_response=<function BaseFCGIServer.handler.<locals>.start_response>)
/usr/lib/python3.7/site-packages/flask/app.py in __call__(self=<Flask 'reforis'>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/www/turris-webapps/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'fr-FR,fr;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_DNT': '1', 'HTTP_HOST': '192.168.1.1', ...}, start_response=<function BaseFCGIServer.handler.<locals>.start_response>)
/usr/lib/python3.7/site-packages/flask/app.py in wsgi_app(self=<Flask 'reforis'>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/www/turris-webapps/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'fr-FR,fr;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_DNT': '1', 'HTTP_HOST': '192.168.1.1', ...}, start_response=<function BaseFCGIServer.handler.<locals>.start_response>)
/usr/lib/python3.7/site-packages/flask/app.py in handle_exception(self=<Flask 'reforis'>, e=ControllerMissing('Connection to controller 0000000B0000E881 is lost.'))
/usr/lib/python3.7/site-packages/reforis/__init__.py in internal_error(error=<InternalServerError '500: Internal Server Error'>)
/usr/lib/python3.7/site-packages/flask/templating.py in render_template(template_name_or_list='errors/500.html', **context={'error': <InternalServerError '500: Internal Server Error'>, 'g': <flask.ctx._AppCtxGlobals object>, 'request': <Request 'https://192.168.1.1/reforis/' [GET]>, 'session': <FileSystemSession {'_permanent': True}>})
/usr/lib/python3.7/site-packages/flask/app.py in update_template_context(self=<Flask 'reforis'>, context={'error': <InternalServerError '500: Internal Server Error'>, 'g': <flask.ctx._AppCtxGlobals object>, 'request': <Request 'https://192.168.1.1/reforis/' [GET]>, 'session': <FileSystemSession {'_permanent': True}>})
/usr/lib/python3.7/site-packages/reforis/__init__.py in add_translations_catalog_to_ctx()
/usr/lib/python3.7/site-packages/flask_babel/__init__.py in get_locale()
/usr/lib/python3.7/site-packages/reforis/__init__.py in get_locale()
/usr/lib/python3.7/site-packages/reforis/__init__.py in _get_locale_from_backend(app=<Flask 'reforis'>)
/usr/lib/python3.7/site-packages/reforis/backend.py in perform(self=MqttSender, module='web', action='get_data', data=None, raise_exception_on_failure=True, controller_id=None)
/usr/lib/python3.7/site-packages/reforis/backend.py in perform(self=MqttSender, module='web', action='get_data', data=None, raise_exception_on_failure=True, controller_id=None)
/usr/lib/python3.7/site-packages/reforis/backend.py in _send(self=MqttSender, module='web', action='get_data', data=None, controller_id=None)
/usr/lib/python3.7/site-packages/foris_client/buses/mqtt.py in send(self=<foris_client.buses.mqtt.MqttSender object>, module='web', action='get_data', data=None, timeout=30.0, controller_id='0000000B0000E881')
/usr/lib/python3.7/site-packages/foris_client/buses/mqtt.py in check_controllers()
ControllerMissing: Connection to controller 0000000B0000E881 is lost.
args = ('Connection to controller 0000000B0000E881 is lost.',)
device_id = '0000000B0000E881'
with_traceback = <built-in method with_traceback of ControllerMissing object>
Foris stack trace:
File "/usr/lib/python3.7/site-packages/foris_client/buses/mqtt.py", line 358, in send
File "/usr/lib/python3.7/queue.py", line 178, in get
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/foris/middleware/backend_data.py", line 54, in __call__
File "/usr/lib/python3.7/site-packages/foris/backend.py", line 102, in perform
File "/usr/lib/python3.7/site-packages/foris/backend.py", line 85, in perform
File "/usr/lib/python3.7/site-packages/foris_client/buses/mqtt.py", line 360, in send
File "/usr/lib/python3.7/site-packages/foris_client/buses/mqtt.py", line 334, in check_controllers
foris_client.buses.base.ControllerMissing: Connection to controller 0000000B0000E881 is lost.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/foris/middleware/reporting.py", line 93, in __call__
File "/usr/lib/python3.7/site-packages/foris/middleware/backend_data.py", line 60, in __call__
File "/usr/lib/python3.7/site-packages/bottle_i18n.py", line 68, in __call__
File "/usr/bin/bottle.py", line 979, in __call__
File "/usr/bin/bottle.py", line 954, in wsgi
File "/usr/bin/bottle.py", line 862, in _handle
File "/usr/bin/bottle.py", line 1742, in wrapper
File "/usr/bin/bottle.py", line 3644, in wrapper
File "/usr/lib/python3.7/site-packages/foris/config/__init__.py", line 367, in top_index
AttributeError: 'ForisState' object has no attribute 'password_set'
edit: I do have a password set in /etc/config/foris
:
config config 'auth'
option password '$p5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'