Skip to content

About “imputnet/yt-session-generator:webserver” restart issue, docker service restart, logging error problem #1

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

Open
coderonex opened this issue Apr 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@coderonex
Copy link

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

Docker version 28.0.4 on almalinux 9

additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant