Hi! We have a Rails app running in Web and Background Worker servers, not using docker, and we run into trouble when trying to use Puppeteer.
The issue seems to be a missing library:
Mar 24 09:46:50 PM [9fe8c669-7d04-46ac-9055-add2f6c45cda] Grover::JavaScript::Error (Failed to launch the browser process!
Mar 24 09:46:50 PM /opt/render/project/src/node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
Mar 24 09:46:50 PM
Mar 24 09:46:50 PM
Mar 24 09:46:50 PM TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Mar 24 09:46:50 PM ):
Mar 24 09:46:50 PM [9fe8c669-7d04-46ac-9055-add2f6c45cda]
Mar 24 09:46:50 PM [9fe8c669-7d04-46ac-9055-add2f6c45cda] app/controllers/prints_controller.rb:25:in `block (2 levels) in print'
Mar 24 09:46:50 PM [9fe8c669-7d04-46ac-9055-add2f6c45cda] app/controllers/prints_controller.rb:20:in `print'
...
The library is libatk-bridge2.0-0
, according to this: Solution for common dependences issues using puppeteer in ubuntu 18.04 (Bionic) · GitHub