Immutable solution version
Not working on Cloud Run?
Complete solution
Shows how to fix not working on Cloud Run?. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Use ghcr.io/browserless/chromium:latest to push an image to Google Artifact Registry (cannot work with ghcr.io directly). Start a Cloud Run service with that image (e.g. europe-docker.pkg.dev/project/repo/browserless-chromium:latest), listening on port 3000.
Steps
- Issue browserless/browserless#4406 (closed, 9 comments): Describe the bug The v2 application doesn't seem to start on Google Cloud Run. (v1 works properly) To Reproduce Steps to reproduce the behavior: 1. Use
ghcr.io/browserless/chromium:latestto push an image to Google Artifact Registry (cannot work with ghcr.io directly). 2. Start a Cloud Run service with that image (e.g.europe-docker.pkg.dev/project/repo/browserless-chromium:latest), listening on port 3000. 3. - [olegkorol (reporter)]: Two-part fix. If the browserless chromium image will not start, pin the image that worked: ghcr.io/browserless/chromium:latest@sha256:b640a6e96e9ef1d27111165582b56940374d35e57610ff42f32473a39f1034a0. If setContent() hangs and fails with RetryError on large HTML (300KB+), switch to page.goto("data-scheme:text/html," + encodeURIComponent(html), { waitUntil: "networkidle2" }) instead of page.setContent(). Confirmed working on Fly.io.
When to use
You are seeing this: Issue browserless/browserless#4406 (closed, 9 comments): Describe the bug The v2 application doesn't seem to start on Google Cloud Run. (v1 works properly) To Reproduce Steps to reproduce the behavior: 1. Use this skill when you run into "Not working on Cloud Run?".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/browserless/browserless/issues/4406
Evidence
In gh:browserless/browserless#4406, the reporter ran into: Issue browserless/browserless#4406 (closed, 9 comments): Describe the bug The v2 application doesn't seem to start on Google Cloud Run. (v1 works properly) To Reproduce Steps to reproduce the behavior: 1. Use ghcr.io/browserless/chromium:latest to push an image to Google Artifact Registry (cannot work with ghcr.io directly). 2. Start a Cloud Run service with that image (e.g. europe-docker.pkg.dev/project/repo/browserless-chromium:latest), listening on port 3000. 3. The verified answer was: [olegkorol (reporter)]: Two-part fix. If the browserless chromium image will not start, pin the image that worked: ghcr.io/browserless/chromium:latest@sha256:b640a6e96e9ef1d27111165582b56940374d35e57610ff42f32473a39f1034a0. If setContent() hangs and fails with RetryError on large HTML (300KB+), switch to page.goto("data-scheme:text/html," + encodeURIComponent(html), { waitUntil: "networkidle2" }) instead of page.setContent(). Confirmed working on Fly.io. Source issue: https://github.com/browserless/browserless/issues/4406
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_7F9z_byLWmtgMyGUMYO8SA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Not working on Cloud Run? <span>— Vectle</span></a>