XVFB fails on server.
I've deployed a playwright with chromium crawler on aws batch, with the default docker image.
this is the error that I'm getting, it's mandatory for this crawler to run headful because otherwise there are some buttons that I need to click that are not loading.
(Error log attached).
I've also tried to create a custom slimmer image, but I bump into the same issue with Xvfb.
14 Replies
@HonzaS , any ideas ?
extended-salmonβ’2y ago
Hi @Lukas Krivka can you please recommend a solution to this? I am also stuck here π
Thanks!
On my side it got fixed β¦ aws batch was overwriting my CMD command from the dockerfile .
extended-salmonβ’2y ago
That's smooth! Still an issue for me here. If it's not to much to ask, could you please share with me the Dockerfile (at least only the part to get Xvfb running)? Thanks! π
On what have you based your image ?
extended-salmonβ’2y ago
apify/actor-node-puppeteer-chrome:latest
Why ? :))
Itβs very big and slow
extended-salmonβ’2y ago
I want all the layers therein. Any recommendations for a slimmer image, with Xvfb and same Apify experience?
Where are you deploying ?
extended-salmonβ’2y ago
Google Cloud Run
I'm also working on an alpine version, but this is much quicker and easier.
you can remove the ENV, and the second copy.
extended-salmonβ’2y ago
Thanks a lot. That was helpful. Will give it a shot β¨
I'd like to run the official chrome build instead of chromium and install a few other packages too. Anyways, I'll modify the Dockerfile to suit my needs. Thanks!
What is the difference ?
extended-salmonβ’2y ago
Not much, just some personal preferences π