Я так поняла, что приложение использует адрес localhost,
unhandled exception during asyncio.run() shutdown
task: <Task finished name='Task-1' coro=<_run_app() done, defined at /home/DoctorZLO/.local/lib/python3.9/site-packages/aiohttp/web.py:287> exception=OSError(98, "error while attempting to bind on address ('0.
0.0.0', 8080): address already in use")>
Traceback (most recent call last):
File "/home/DoctorZLO/.local/lib/python3.9/site-packages/aiohttp/web.py", line 508, in run_app
loop.run_until_complete(main_task)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/DoctorZLO/.local/lib/python3.9/site-packages/aiohttp/web.py", line 411, in _run_app
await site.start()
File "/home/DoctorZLO/.local/lib/python3.9/site-packages/aiohttp/web_runner.py", line 121, in start
self._server = await loop.create_server(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1494, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8080): address already in use
Traceback (most recent call last):
File "/home/DoctorZLO/server/main.py", line 10, in <module>
web.run_app(app)
File "/home/DoctorZLO/.local/lib/python3.9/site-packages/aiohttp/web.py", line 508, in run_app
loop.run_until_complete(main_task)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/DoctorZLO/.local/lib/python3.9/site-packages/aiohttp/web.py", line 411, in _run_app
await site.start()
File "/home/DoctorZLO/.local/lib/python3.9/site-packages/aiohttp/web_runner.py", line 121, in start
self._server = await loop.create_server(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1494, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8080): address already in use
а как указать в aiohttp сервере URL адрес хостинга?