Skip to content

新版docker重启会一直出这个错误 #106

@wangpai1998

Description

@wangpai1998

[entrypoint] starting Fluxbox
[entrypoint] browser executable: /usr/local/lib/python3.11/site-packages/playwright/driver/package/.local-browsers/chromium-1208/chrome-linux64/chrome
INFO: Started server process [1]
INFO: Waiting for application startup.

Flow2API Starting...

🔄 Existing database detected. Checking for missing tables and columns...
Checking database integrity and performing migrations...
Database migration check completed.
✓ Database migration check completed.
[BrowserCaptcha] ✅ Docker 内置浏览器打码白名单已启用
✓ Browser captcha service initialized (nodriver mode)
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/src/main.py", line 67, in lifespan
warmed_slots = await browser_service.warmup_resident_tabs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 875, in warmup_resident_tabs
await self.initialize()
File "/app/src/services/browser_captcha_personal.py", line 847, in initialize
self.browser = await self._run_with_timeout(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 328, in _run_with_timeout
return await asyncio.wait_for(awaitable, timeout=effective_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/util.py", line 102, in start
return await Browser.create(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 95, in create
await instance.start()
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 439, 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
2026-03-30T12:47:10.481037924Z
ERROR: Application startup failed. Exiting.
successfully removed temp profile /tmp/uc_afvrah4q
[entrypoint] starting Xvfb on :99 (1920x1080x24)
[entrypoint] starting Fluxbox
[entrypoint] browser executable: /usr/local/lib/python3.11/site-packages/playwright/driver/package/.local-browsers/chromium-1208/chrome-linux64/chrome
INFO: Started server process [1]
INFO: Waiting for application startup.

Flow2API Starting...

🔄 Existing database detected. Checking for missing tables and columns...
Checking database integrity and performing migrations...
Database migration check completed.
✓ Database migration check completed.
[BrowserCaptcha] ✅ Docker 内置浏览器打码白名单已启用
✓ Browser captcha service initialized (nodriver mode)
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/src/main.py", line 67, in lifespan
warmed_slots = await browser_service.warmup_resident_tabs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 875, in warmup_resident_tabs
await self.initialize()
File "/app/src/services/browser_captcha_personal.py", line 847, in initialize
self.browser = await self._run_with_timeout(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 328, in _run_with_timeout
return await asyncio.wait_for(awaitable, timeout=effective_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/util.py", line 102, in start
return await Browser.create(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 95, in create
await instance.start()
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 439, 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
2026-03-30T12:47:34.883161954Z
ERROR: Application startup failed. Exiting.
successfully removed temp profile /tmp/uc_02zxhs_z
[entrypoint] starting Xvfb on :99 (1920x1080x24)
[entrypoint] starting Fluxbox
[entrypoint] browser executable: /usr/local/lib/python3.11/site-packages/playwright/driver/package/.local-browsers/chromium-1208/chrome-linux64/chrome
INFO: Started server process [1]
INFO: Waiting for application startup.

Flow2API Starting...

🔄 Existing database detected. Checking for missing tables and columns...
Checking database integrity and performing migrations...
Database migration check completed.
✓ Database migration check completed.
[BrowserCaptcha] ✅ Docker 内置浏览器打码白名单已启用
✓ Browser captcha service initialized (nodriver mode)
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/src/main.py", line 67, in lifespan
warmed_slots = await browser_service.warmup_resident_tabs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 875, in warmup_resident_tabs
await self.initialize()
File "/app/src/services/browser_captcha_personal.py", line 847, in initialize
self.browser = await self._run_with_timeout(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 328, in _run_with_timeout
return await asyncio.wait_for(awaitable, timeout=effective_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/util.py", line 102, in start
return await Browser.create(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 95, in create
await instance.start()
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 439, 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
2026-03-30T12:48:26.459582534Z
ERROR: Application startup failed. Exiting.
successfully removed temp profile /tmp/uc__co52dno
[entrypoint] starting Xvfb on :99 (1920x1080x24)
[entrypoint] starting Fluxbox
[entrypoint] browser executable: /usr/local/lib/python3.11/site-packages/playwright/driver/package/.local-browsers/chromium-1208/chrome-linux64/chrome
INFO: Started server process [1]
INFO: Waiting for application startup.

Flow2API Starting...

🔄 Existing database detected. Checking for missing tables and columns...
Checking database integrity and performing migrations...
Database migration check completed.
✓ Database migration check completed.
[BrowserCaptcha] ✅ Docker 内置浏览器打码白名单已启用
✓ Browser captcha service initialized (nodriver mode)
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/src/main.py", line 67, in lifespan
warmed_slots = await browser_service.warmup_resident_tabs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 875, in warmup_resident_tabs
await self.initialize()
File "/app/src/services/browser_captcha_personal.py", line 847, in initialize
self.browser = await self._run_with_timeout(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/services/browser_captcha_personal.py", line 328, in _run_with_timeout
return await asyncio.wait_for(awaitable, timeout=effective_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/util.py", line 102, in start
return await Browser.create(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 95, in create
await instance.start()
File "/usr/local/lib/python3.11/site-packages/nodriver/core/browser.py", line 439, 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
2026-03-30T12:48:51.550445813Z
ERROR: Application startup failed. Exiting.
successfully removed temp profile /tmp/uc_iszonvww
[entrypoint] starting Xvfb on :99 (1920x1080x24)
[entrypoint] starting Fluxbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions