Error: libuuid.so.1: cannot open shared object file: No such file or directory
Getting this error with puppeteer on Railway.
railway.toml
Project ID: 045e21af-ff58-4d2c-a95a-4147dea211c9
Service ID: c040e311-95df-41bf-82ff-e87da0aa84fe
Currently blocked on a release bc I can't get puppeteer to work
Solution:Jump to solution
my current recommendation would be to not try installing chrome into the container, but instead use browserless https://railway.app/template/browserless
here is a working example of what that looks like in practice https://github.com/brody192/puppeteer-example
this would also require you to switch to "puppeteer-core" instead of "puppeteer" so chrome isnt being installed, and your nixpacks.toml can be replaced with the nixpacks.toml thats in that repo....
8 Replies
Project ID:
045e21af-ff58-4d2c-a95a-4147dea211c9,c040e311-95df-41bf-82ff-e87da0aa84fe
Solution
my current recommendation would be to not try installing chrome into the container, but instead use browserless https://railway.app/template/browserless
here is a working example of what that looks like in practice https://github.com/brody192/puppeteer-example
this would also require you to switch to "puppeteer-core" instead of "puppeteer" so chrome isnt being installed, and your nixpacks.toml can be replaced with the nixpacks.toml thats in that repo.
doing it this way -
- removes any head aches that come with installing chrome in docker.
- improves build time significantly since chrome isnt being downloaded and installed on every deploy.
- improves deploy time since chrome isnt bundled into the image anymore because a smaller image will deploy faster.
I originally used browserless, but it's currently failing for scraping chrome web store URLs (it just hangs)
https://chromewebstore.google.com/detail/senja-testimonial-extensi/lmldakdjelendidnmaieidggbffljlle
Senja - Testimonial Extension
Your testimonials everywhere on the web
the template I linked is an updated version of the template, give it a try
is that something you are trying to scrape or is that your app?
Yeah we're using the latest version of everything.
On second thought, browserless just doesn't work at all when using page.goto. This snippet just hangs:
It just hangs at page.goto. Works fine using local puppeteer. Any ideas why?
Ah fixed it, was an invalid flag
Will try using browserless for this
have you deployed the linked template? it was very recently updated, recently meaning minutes before I sent my initial message in this thread
Ah gotcha. I'm deploying it right now
and please do checkout my readme in the linked github