[错误]: browser_mode=builtin 失败,出现"CDP 端点尚未准备就绪" — 从 gunicorn 工作进程启动时,Chromium 发生内核崩溃 (SIGSEGV)
作者: nextideas创建于 2026年9月8日更新于 2026年9月15日
标签🐞 Bug⚙️ In-progress
Standalone inside the container - this WORKS (CDP OK in 1s), which isolates the bug to the gunicorn-worker parent context:
import subprocess, os, time, urllib.request args = ["/home/appuser/.cache/ms-playwright/chromium-1234/chrome-linux64/chrome", "--remote-debugging-port=9222", "--user-data-dir=/tmp/bt", "--headless=new", "--window-size=1080,600", "--no-sandbox", "--disable-dev-shm-usage", "--disable-gpu", "about:blank"] p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, preexec_fn=os.setpgrp) time.sleep(1)
内容来源: unclecode/crawl4ai