Repository navigation
Open
Description
Provide environment information
System:
OS: macOS 15.5
CPU: (11) arm64 Apple M3 Pro
Memory: 131.31 MB / 18.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.11.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.9.2 - /opt/homebrew/bin/npm
pnpm: 10.12.4 - /opt/homebrew/bin/pnpm
Describe the bug
Getting this error using the playwright extension during deployment. Running on v4.0.1. Can confirm this is only for chrome, I tried deploying with Firefox and got no errors with it.
10 | RUN INSTALL_DIR=$(grep "Install location:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs) && DIR_NAME=$(basename "$INSTALL_DIR") && if [ -z "$DIR_NAME" ]; then echo "Failed to extract installation directory for chromium"; exit 1; fi && MS_DIR="/ms-playwright/$DIR_NAME" && mkdir -p "$MS_DIR"
11 | RUN DOWNLOAD_URL=$(grep "Download url:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs | sed "s/mac-arm64/linux/g" | sed "s/mac-15-arm64/ubuntu-20.04/g") && if [ -z "$DOWNLOAD_URL" ]; then echo "Failed to extract download URL for chromium"; exit 1; fi && echo "Downloading chromium from $DOWNLOAD_URL" && curl -L -o /tmp/chromium.zip "$DOWNLOAD_URL" && if [ $? -ne 0 ]; then echo "Failed to download chromium"; exit 1; fi && unzip -q /tmp/chromium.zip -d "/ms-playwright/$(basename $(grep "Install location:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs))" && if [ $? -ne 0 ]; then echo "Failed to extract chromium"; exit 1; fi && chmod -R +x "/ms-playwright/$(basename $(grep "Install location:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs))" && rm /tmp/chromium.zip
--------------------
ERROR: failed to solve: process "/bin/sh -c grep -A5 \"browser: chromium-headless-shell\" /tmp/browser-info.txt > /tmp/chromium-info.txt" did not complete successfully: exit code: 1Reproduction repo
N/A
To reproduce
Deploy to a project using this config with the playwright extension
import { playwright } from "@trigger.dev/build/extensions/playwright";
export default defineConfig({
project: "proj_rhgzkngsrgqitnzybwjn",
// rest of the config
build: {
extensions: [
playwright({
browsers: ["chromium"],
}),
// other build extensions
],
},
});Additional information
No response
Reacted by Saad Jamal
Metadata
Metadata
Assignees
Labels
No labels
Activity
prasad123-hub commentedon Jan 27, 2026
Any solution for this bug ?
nickluger commentedon Jan 29, 2026
Had these types of errors on all browsers with Playwright,
webkit,chromium,firefoxwith errors like (e.g. for webkit):Workaround
Reverting Playwright back to
1.40.0fixed it for me (tried only with webkit).Importance of this issue
I just discovered Trigger.dev and I think the UX in general for coders running async processes or “AI agents” is outstanding compared to many other services.
It has such incredibly nice features, like resume, etc., that it's a shame that such a popular use case is failing. “Build and deploy fully‑managed AI agents and workflows” it says on the homepage, meaning headless browsers should be first-class citizens, because they are usually at the heart of many agentic workflows - AI or not.
chore(docs): Add playwright workaround (#2973)
chore(docs): Add playwright workaround (triggerdotdev#2973)
nickluger commentedon Nov 28, 2026
This looks fixed by #4881 (released in v4.6.0), which closed #3089 — same root cause (Playwright 1.58+ changed the
install --dry-runoutput, andgrep -A5read into the next browser's block).With v4.8.10 and Playwright 1.65.1, the extension's build steps install and launch WebKit fine for me on the
node-24image. I think this can be closed?