-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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