[GH-ISSUE #1221] About “imputnet/yt-session-generator:webserver” restart issue, docker service restart, logging error problem #19388

Closed
opened 2026-06-10 17:05:22 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @coderonex on GitHub (Apr 12, 2025).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1221

bug description

It seems that if the container is stopped and restarted, it will report an error unless the container is deleted and recreated.

reproduction steps

`loop.run_until_complete(main_task)

File "/usr/local/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete

return future.result()

^^^^^^^^^^^^^^^

File "/app/potoken_generator/main.py", line 35, in run

token = await potoken_extractor.run_once()

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/potoken_generator/extractor.py", line 46, in run_once

await self._update()

File "/app/potoken_generator/extractor.py", line 91, in _update

await asyncio.wait_for(self._perform_update(), timeout=600)

File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for

return await fut

^^^^^^^^^

File "/app/potoken_generator/extractor.py", line 104, in _perform_update

browser = await nodriver.start(headless=False,

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.12/site-packages/nodriver/core/util.py", line 74, in start

return await Browser.create(config)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.12/site-packages/nodriver/core/browser.py", line 87, in create

await instance.start()

File "/usr/local/lib/python3.12/site-packages/nodriver/core/browser.py", line 343, in start

raise Exception(

Exception:


Failed to connect to browser


One of the causes could be when you are running as root.

In that case you need to pass no_sandbox=True`

screenshots

No response

links


platform information

almalinux Docker version 28.0.4

additional context

No response

Originally created by @coderonex on GitHub (Apr 12, 2025). Original GitHub issue: https://github.com/imputnet/cobalt/issues/1221 ### bug description It seems that if the container is stopped and restarted, it will report an error unless the container is deleted and recreated. ### reproduction steps `loop.run_until_complete(main_task) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/app/potoken_generator/main.py", line 35, in run token = await potoken_extractor.run_once() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/potoken_generator/extractor.py", line 46, in run_once await self._update() File "/app/potoken_generator/extractor.py", line 91, in _update await asyncio.wait_for(self._perform_update(), timeout=600) File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for return await fut ^^^^^^^^^ File "/app/potoken_generator/extractor.py", line 104, in _perform_update browser = await nodriver.start(headless=False, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/nodriver/core/util.py", line 74, in start return await Browser.create(config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/nodriver/core/browser.py", line 87, in create await instance.start() File "/usr/local/lib/python3.12/site-packages/nodriver/core/browser.py", line 343, in start raise Exception( Exception: --------------------- Failed to connect to browser --------------------- One of the causes could be when you are running as root. In that case you need to pass no_sandbox=True` ### screenshots _No response_ ### links ```shell ``` ### platform information almalinux Docker version 28.0.4 ### additional context _No response_
GiteaMirror added the main instance issue label 2026-06-10 17:05:22 -05:00
Sign in to join this conversation.