Build is failing
service
PROOP

21 days ago

I am getting this error in the last hours in all services.

RUN apt-get update && apt-get install -y wget unzip ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 libglib2.0-0 libnspr4 libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils && mkdir -p /app/chromium && wget -q https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1069273/chrome-linux.zip -O /tmp/chrome-linux.zip || (echo "Failedddddd to download Chromium!" && exit 1) && unzip /tmp/chrome-linux.zip -d /app/chromium && chown -R app:app /app/chromium && rm /tmp/chrome-linux.zip && apt-get clean && rm -rf /var/lib/apt/lists/*

Solved$20 Bounty

Pinned Solution

manuproject
HOBBY

21 days ago

your wget has -q so the real error is hidden. remove the -q and rebuild, you'll see if google is returning 403/429 or if the snapshot is just gone. that chromium-browser-snapshots bucket isnt meant for production, old builds get pruned and google rate limits datacenter ips, so pulling it in every railway build was always going to break eventually.

swap to chrome for testing, its googles stable download endpoint made for exactly this:

wget -O /tmp/chrome-linux.zip https://storage.googleapis.com/chrome-for-testing-public/140.0.7339.80/linux64/chrome-linux64.zip

(pick any version from googlechromelabs.github.io/chrome-for-testing, note the zip contains chrome-linux64 not chrome-linux so adjust your unzip path)

or if this is for puppeteer, delete the whole manual chromium block and just run npx puppeteer browsers install chrome in the build, it handles download and paths itself and you can drop half those apt packages

5 Replies

Railway
BOT

21 days ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 21 days ago


21 days ago

It looks like a Run step instead of error message, can you paste the Build logs content here?


manuproject
HOBBY

21 days ago

your wget has -q so the real error is hidden. remove the -q and rebuild, you'll see if google is returning 403/429 or if the snapshot is just gone. that chromium-browser-snapshots bucket isnt meant for production, old builds get pruned and google rate limits datacenter ips, so pulling it in every railway build was always going to break eventually.

swap to chrome for testing, its googles stable download endpoint made for exactly this:

wget -O /tmp/chrome-linux.zip https://storage.googleapis.com/chrome-for-testing-public/140.0.7339.80/linux64/chrome-linux64.zip

(pick any version from googlechromelabs.github.io/chrome-for-testing, note the zip contains chrome-linux64 not chrome-linux so adjust your unzip path)

or if this is for puppeteer, delete the whole manual chromium block and just run npx puppeteer browsers install chrome in the build, it handles download and paths itself and you can drop half those apt packages


service
PROOP

21 days ago

Thank you very much. Problem resolved.


service

Thank you very much. Problem resolved.

manuproject
HOBBY

21 days ago

you welcome


manuproject
HOBBY

18 days ago

i think the thread should be changed to solved since the OP acknowledge that

thank you


Status changed to Solved mayori 18 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...