You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run the following Redis configurations in the webserver.conf of Install from Package Guide, you get some error messages.
(.venv) bai@dhsung:~/webserver$ python -m ai.backend.web.server -f ${HOME}/.config/backend.ai/webserver.conf
Traceback (most recent call last):
File "/home/bai/webserver/.venv/lib/python3.12/site-packages/ai/backend/common/config.py", line 212, in check
config = iv.check(table)
^^^^^^^^^^^^^^^
File "/home/bai/webserver/.venv/lib/python3.12/site-packages/trafaret/base.py", line 110, in check
return self.transform(value, context=context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bai/webserver/.venv/lib/python3.12/site-packages/trafaret/base.py", line 1178, in transform
self._failure(error=errors, code=codes.SOME_ELEMENTS_DID_NOT_MATCH)
File "/home/bai/webserver/.venv/lib/python3.12/site-packages/trafaret/base.py", line 140, in _failure
raise DataError(error=error, value=value, trafaret=self, code=code)
trafaret.dataerror.DataError: {'session': DataError('{\'redis\': DataError("{\'host\': DataError(\'host is not allowed key\'), \'port\': DataError(\'port is not allowed key\')}")}')}During handling of the above exception, another exception occurred:Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/bai/webserver/.venv/lib/python3.12/site-packages/ai/backend/web/server.py", line 798, in <module> main() File "/home/bai/webserver/.venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bai/webserver/.venv/lib/python3.12/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/bai/webserver/.venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bai/webserver/.venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bai/webserver/.venv/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bai/webserver/.venv/lib/python3.12/site-packages/ai/backend/web/server.py", line 750, in main cfg = config.check(raw_cfg, config_iv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bai/webserver/.venv/lib/python3.12/site-packages/ai/backend/common/config.py", line 214, in check raise ConfigurationError(e.as_dict())ai.backend.common.exception.ConfigurationError: {'session': {'redis': {'host': 'host is not allowed key', 'port': 'port is not allowed key'}}}
As a result, you have to apply the redis configuration of the halfstack.conf of the main repo to run the webserver.
(.venv) bai@dhsung:~/webserver$ python -m ai.backend.web.server -f ${HOME}/.config/backend.ai/webserver.conf
2024-04-25 14:05:33.346 INFO ai.backend.web.server [3030201] started.
2024-04-25 14:05:33.352 INFO ai.backend.web.server [3030201] started.
2024-04-25 14:05:33.355 INFO ai.backend.web.server [3030201] started.
2024-04-25 14:05:33.364 INFO ai.backend.web.server [3030201] started.
2024-04-25 14:05:33.464 INFO ai.backend.web.server [3030201] Backend.AI Web Server 24.03.2
2024-04-25 14:05:33.465 INFO ai.backend.web.server [3030201] runtime: /home/bai/webserver/.venv
2024-04-25 14:05:33.466 INFO ai.backend.web.server [3030201] serving at 0.0.0.0:8080
2024-04-25 14:05:33.467 INFO ai.backend.web.server [3030201] Using uvloop as the event loop backend
Alternative ideas
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Main idea
In the Installation Guides > Install from Packages > Install Backend.AI Webserver > Local configuration, I found wrong redis configurations.
The redis configurations in the halfstack.conf of "main" repo and the webserver.conf in the Install from Package Guide example are different.
Redis configurations in the halfstack.conf of the main repo
Redis configurations in the webserver.conf of the Install from Package Guide
If you run the following Redis configurations in the webserver.conf of Install from Package Guide, you get some error messages.
As a result, you have to apply the redis configuration of the halfstack.conf of the main repo to run the webserver.
Alternative ideas
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: