R
Railway14mo ago
ryans

Playwright install failing w nixpacks file

Please help! Playwright is suddenly failing to install! I am using the flask template. ╔══════════════════════════════ Nixpacks v1.17.0 ══════════════════════════════╗ ║ setup │ python310, gcc ║ ║──────────────────────────────────────────────────────────────────────────────║ ║ install │ python -m venv --copies /opt/venv && . /opt/venv/bin/activate ║ ║ │ && pip install -r requirements.txt ║ ║──────────────────────────────────────────────────────────────────────────────║ ║ build │ playwright install ║ ║ │ playwright install-deps ║ ║──────────────────────────────────────────────────────────────────────────────║ ║ start │ gunicorn main:app ║ #11 [stage-0 7/11] COPY . /app/. #12 [stage-0 8/11] RUN playwright install #12 1.715 /opt/venv/lib/python3.10/site-packages/playwright/driver/node: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6) #12 ERROR: process "/bin/bash -ol pipefail -c playwright install" did not complete successfully: exit code: 1 ----- > [stage-0 8/11] RUN playwright install: 1.715 /opt/venv/lib/python3.10/site-packages/playwright/driver/node: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6) ----- Dockerfile:24 ------------------- 22 | # build phase 23 | COPY . /app/. 24 | >>> RUN playwright install 25 | RUN playwright install-deps 26 | ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c playwright install" did not complete successfully: exit code: 1 Error: Docker build failed
10 Replies
Percy
Percy14mo ago
Project ID: N/A
Medim
Medim14mo ago
Could u try setting nixpacks version to 1.15.0?
ryans
ryansOP14mo ago
[phases.build] cmds = ["playwright install", "playwright install-deps"] dependsOn = ["install"]
Medim
Medim14mo ago
add a
[build]
nixpacksVersion = "1.15.0"
[build]
nixpacksVersion = "1.15.0"
There
ryans
ryansOP14mo ago
at top of file?
Medim
Medim14mo ago
Sorry, but that is a railway.toml, right? yes
ryans
ryansOP14mo ago
nixpacks.toml [build] nixpacksVersion = "1.15.0" [phases.build] cmds = ["playwright install", "playwright install-deps"] dependsOn = ["install"]
Medim
Medim14mo ago
oh. Now i'm wondering, try adding a railway.toml and adding that line remove it from the nixpacks.toml (i don't know if it works in nixpacks.toml, but i'm sure it works in railway.toml)
Brody
Brody14mo ago
(it only works in railway.toml/json)
Want results from more Discord servers?
Add your server