puppeteer: Chrome fails to launch in Firebase Functions

With the update for node 6, attempting to get this to work in FBF but Chrome is failing to launch because of libpangocairo dependency.

Is there a separate process for running on fbf?

Error: Failed to launch chrome!
/user_code/node_modules/puppeteer/.local-chromium/linux-496140/chrome-linux/chrome: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

    at ChildProcess.onClose (/user_code/node_modules/puppeteer/node6/Launcher.js:193:14)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 18 (4 by maintainers)

Most upvoted comments

@labnol there’s been no movement on the Firebase side AFAIK. They’re considering adding the required deps to the images.

I have another missing dependency on firebase functions: libX11-xcb.so

Error: Failed to launch chrome! /user_code/node_modules/puppeteer/.local-chromium/linux-515411/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
--

Definitely. Will do!

On Tue, Nov 14, 2017, 2:18 PM Lakshan Perera notifications@github.com wrote:

Shameless Plug: If anyone waiting to use Chrome Headless in Firebase Functions, I have some micro APIs services that might help you:

Page.REST https://page.rest - Pre-render web pages and extract content from elements Screen.rip https://screen.rip - Take screenshots of web pages [PDF.cool)(https://pdf.cool) - Convert web pages into PDF (supports Puppeteer’s PDF options)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/GoogleChrome/puppeteer/issues/557#issuecomment-344418024, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOigGWOeqqcXmlUFJ_dehaBNlroOeKLks5s2hGggaJpZM4PDrNv .

Shameless Plug: If anyone waiting to use Chrome Headless in Firebase Functions, I have some micro APIs services that might help you:

Page.REST - Pre-render web pages and extract content from elements Screen.rip - Take screenshots of web pages PDF.cool - Convert web pages into PDF (supports Puppeteer’s PDF options)

@ebidel, if you hear any new developments re: adding required dependencies to firebase images, it would be great if you could post an update to this issue so that subscribers can get notified if/when this happens. Thanks!

@ebidel @kylewill i was also looking into cloud functions as a method to deploy puppeteer. I was looking for a service where I only pay for the usage. App Engine flex charges you regardless.