Visiting Storage page results in Remote Exception
When attempting to visit the 'Storage' page the following error is thrown. Running a A+G+E Turris Mox w/ beta6.
Remote Exception: Internal error Retval=2(No such file or directory: 'stat') for ['stat', '-c', '%m', '/srv']('<class 'foris_controller.exceptions.BackendCommandFailed'>')
Remote request
{"module": "storage", "action": "get_settings", "kind": "request"}
Stack trace
Traceback (most recent call last):
File "/__init__.py", line 119, in _run_command
File "/__init__.py", line 70, in handle_command
File "/subprocess.py", line 729, in __init__
File "/subprocess.py", line 1364, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'stat': 'stat'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/message_router.py", line 117, in process_message
File "/module_base.py", line 61, in perform_action
File "/__init__.py", line 11, in action_get_settings
File "/utils.py", line 112, in inner
File "/openwrt.py", line 21, in get_settings
File "/__init__.py", line 27, in get_srv
File "/__init__.py", line 165, in _trigger_and_parse
File "/__init__.py", line 142, in _run_command_and_check_retval
File "/__init__.py", line 121, in _run_command
foris_controller.exceptions.BackendCommandFailed: Retval=2(No such file or directory: 'stat') for ['stat', '-c', '%m', '/srv']
Environment
{'CONTENT_LENGTH': '0',
'DOCUMENT_ROOT': '/www',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'foris.session=47c2263c9bd91ad98cec9a95e1cfeacc; '
'foris.ws.session=f7f2fb33eadc8489ecd7b9ba8472c67e',
'HTTP_DNT': '1',
'HTTP_HOST': '192.168.1.1',
'HTTP_REFERER': 'http://192.168.1.1/foris/config/main/updater/',
'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 '
'Firefox/68.0',
'PATH_INFO': '/main/storage/',
'PATH_TRANSLATED': '/www/main/storage/',
'QUERY_STRING': '',
'REDIRECT_STATUS': '200',
'REMOTE_ADDR': '192.168.1.184',
'REMOTE_PORT': '49792',
'REQUEST_METHOD': 'GET',
'REQUEST_SCHEME': 'http',
'REQUEST_URI': '/foris/config/main/storage/',
'SCRIPT_FILENAME': '/www/foris/config',
'SCRIPT_NAME': '/foris/config',
'SERVER_ADDR': '192.168.1.1',
'SERVER_NAME': '192.168.1.1',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'lighttpd/1.4.50',
'bottle.app': <bottle.Bottle object at 0x1a51d918>,
'bottle.raw_path': '/storage/',
'bottle.request': <LocalRequest: GET http://192.168.1.1/foris/config/main/storage/>,
'bottle.request.urlparts': SplitResult(scheme='http', netloc='192.168.1.1', path='/foris/config/main/storage/', query='', fragment=''),
'bottle.route': <GET '/<page_name:re:.+>/' <function config_page_get at 0x1a394458>>,
'foris.backend': MqttSender('localhost:11883'),
'foris.language': 'en',
'foris.session': <foris.middleware.sessions.SessionForisProxy object at 0x1a5dfcd8>,
'foris.session.data': {'_messages': [],
'csrf_token': 'TEE705JhJxFaCes7ThRcwEZXn2zkwPRA',
'user_authenticated': True},
'foris.session.id': '47c2263c9bd91ad98cec9a95e1cfeacc',
'foris.version': '100.1',
'route.handle': <GET '/<page_name:re:.+>/' <function config_page_get at 0x1a394458>>,
'route.url_args': {'page_name': 'storage'},
'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0x1a7d19b8>,
'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x1a68c778>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}