Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudlinux error The port is required to be int, got <class 'str'> #1415

Open
Nelie-Taylor opened this issue Mar 3, 2025 · 0 comments
Open

Comments

@Nelie-Taylor
Copy link

Hi.
To day i cannot access to Cloulinux (port 9000).
I run: journalctl -u lvemanager and got error: The port is required to be int, got <class 'str'>
Please help me fix it. Thank you so much.
Mar 03 16:49:29 linh72.huongda.online systemd[1]: Started Lvemanager noPanel service. Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: unhandled exception during asyncio.run() shutdown Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: task: <Task finished name='Task-1' coro=<_run_app() done, defined at /opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web.py:303> exception=TypeError("The port is required to be int, got <class 'str'> Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: Traceback (most recent call last): Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web.py", line 544, in run_app Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: loop.run_until_complete(main_task) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/alt/python311/lib64/python3.11/asyncio/base_events.py", line 654, in run_until_complete Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: return future.result() Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^^^^^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web.py", line 451, in _run_app Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: names = sorted(str(s.name) for s in runner.sites) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web.py", line 451, in <genexpr> Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: names = sorted(str(s.name) for s in runner.sites) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web_runner.py", line 112, in name Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: return str(URL.build(scheme=scheme, host=host, port=self._port)) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/yarl/_url.py", line 397, in build Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: raise TypeError(f"The port is required to be int, got {type(port)!r}.") Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: TypeError: The port is required to be int, got <class 'str'>. Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: Traceback (most recent call last): Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/usr/bin/lvemanager-service", line 293, in <module> Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: web.run_app( Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web.py", line 544, in run_app Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: loop.run_until_complete(main_task) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/alt/python311/lib64/python3.11/asyncio/base_events.py", line 654, in run_until_complete Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: return future.result() Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^^^^^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web.py", line 451, in _run_app Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: names = sorted(str(s.name) for s in runner.sites) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web.py", line 451, in <genexpr> Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: names = sorted(str(s.name) for s in runner.sites) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web_runner.py", line 112, in name Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: return str(URL.build(scheme=scheme, host=host, port=self._port)) Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/yarl/_url.py", line 397, in build Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: raise TypeError(f"The port is required to be int, got {type(port)!r}.") Mar 03 16:49:30 linh72.huongda.online lvemanager-service[1509593]: TypeError: The port is required to be int, got <class 'str'>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant