Set HOME=/tmp in Antora image so chromium crashpad can launch#534
Merged
michalharakal merged 1 commit intodevelopfrom Apr 19, 2026
Merged
Set HOME=/tmp in Antora image so chromium crashpad can launch#534michalharakal merged 1 commit intodevelopfrom
michalharakal merged 1 commit intodevelopfrom
Conversation
The docs workflow runs the container with `--user $(id -u):$(id -g)`, which has no passwd entry inside the Alpine image. $HOME falls back to `/`, which is read-only for non-root, and chromium's crashpad handler aborts with `chrome_crashpad_handler: --database is required` — surfacing as "Failed to launch the browser process" from puppeteer and making every mermaid block render as the error literal. Pin HOME=/tmp in the image so the crashpad DB has a writable parent. Same root cause already worked around for Antora's cache via runtime.cache_dir in antora-playbook.yml. Also clean up the mode-0700 root-owned dirs that puppeteer/chromium drop into /tmp during the build-time smoke test — otherwise the runtime non-root user EACCES on cosmiconfig walking /tmp/.config/puppeteer. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
📖 Documentation Preview The documentation has been built successfully for this PR. Generated Files:
Artifacts:
This comment will be updated automatically when the PR is updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chrome_crashpad_handler: --database is required→Failed to launch the browser process.--user $(id -u):$(id -g), which has no passwd entry inside the Alpine image.$HOMEfalls back to/(read-only for non-root), so chromium's crashpad handler cannot create its default DB.HOME=/tmpin the image, plus clean up the mode-0700 root-owned dirs that the build-time smoke test drops into/tmp(otherwise the runtime non-root user EACCES oncosmiconfigwalking/tmp/.config/puppeteer). Same root cause is already worked around for Antora's cache viaruntime.cache_dirinantora-playbook.yml.Test plan
--no-cachemmdcagainst the failingflowchart LRsnippet under--user $(id -u):$(id -g)→ produces a valid SVG (10.5 KB) instead of the crashpad errormermaid-errorliterals)🤖 Generated with Claude Code