Will
I can't load playwright.
That has done the trick I think! Thank you. However, I'm now faced with another issue. It is a secondary issue, so I can start a new chat if desired. Essentially, our app needs to run Playwright in headful mode (headless:false). To do this I've placed
xvfb-run
infront of our deploy command as instructed here: https://playwright.dev/docs/ci#running-headed (full command: xvfb-run nx run sillymarch-crawler:serve:production --hostname=0.0.0.0
). However, nothing is being shown in our deploy logs and we're getting the 'Application failed to respond' message when navigating to the app.28 replies
I can't load playwright.
I also tried to run the install-deps command in a postbuild script in my app's project.json (I am using an NX monorepo), which resulted in a slightly more descriptive error:
ln: failed to create symbolic link '/etc/resolv.conf': Device or resource busy
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /lib/systemd/system/systemd-pstore.service.
systemd-machine-id-setup: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.36' not found (required by /nix/store/9lhvbvvm3s7kv7maak5vm7as6fwjgfa7-util-linux-minimal-2.39.2-lib/lib/libmount.so.1)
systemd-machine-id-setup: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libdl.so.2)
systemd-machine-id-setup: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libpthread.so.0)
dpkg: error processing package systemd (--configure):
installed systemd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to install browser dependencies
Error: Installation process exited with code: 100
Warning: run-commands command "npx playwright install-deps" exited with non-zero status code`28 replies
I can't load playwright.
I've followed the steps above and I'm getting this error during the playwrightdeps phase: Sub-process /usr/bin/dpkg returned an error code (1)
Here is my
nixpacks.toml
file:
[phases.playwright]
dependsOn = ['install']
cmds = ['playwright install']
[phases.playwrightdeps]
dependsOn = ['playwright']
cmds = ['playwright install-deps']
28 replies