Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(downloader): pass --no-sandbox to plain-Playwright fallback (#3841)

LearningCircuit160d4d5b051e
diff --git a/src/local_deep_research/research_library/downloaders/playwright_html.py b/src/local_deep_research/research_library/downloaders/playwright_html.py
index c8e8164974..4fbecee3bd 100644
--- a/src/local_deep_research/research_library/downloaders/playwright_html.py
+++ b/src/local_deep_research/research_library/downloaders/playwright_html.py
@@ -215,12 +215,21 @@ class PlaywrightHTMLDownloader(HTMLDownloader):
try:
from playwright.sync_api import sync_playwright
- # Lazy-init browser (reuse across multiple fetches)
+ # Lazy-init browser (reuse across multiple fetches).
+ # --no-sandbox: Chromium needs SYS_ADMIN to set up its user-namespace
+ # sandbox; the production container drops that cap. Without this
+ # flag, launch() crashes inside Docker. Crawl4AI's own arg list
+ # already includes it; this fallback path was missing it.
+ # --disable-dev-shm-usage: Docker's default /dev/shm is 64 MB,
+ # which Chromium can blow through and OOM. Use /tmp instead.
if self._browser is None:
logger.debug("Playwright: launching Chromium browser")
pw = sync_playwright().start()
try:
- self._browser = pw.chromium.launch(headless=True)
+ self._browser = pw.chromium.launch(
+ headless=True,
+ args=["--no-sandbox", "--disable-dev-shm-usage"],
+ )
except Exception:
pw.stop()
raise