Chromium / puppeteer on github actions and azure static web apps libX11-xcb.so.1 failure

Mike Harper 41 Reputation points
2020-11-28T13:00:02.977+00:00

I'm building a vue/gridsome app that uses a critical css extract plugin. It all runs fine locally but I'm struggling with github action builds.

Extract critical CSS (1 pages)
Error: Failed to launch the browser process!
/github/workspace/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while 
loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

I've searched for solutions and it seems there are linux / unbuntu dependencies missing so I tried to add them to my yml workflow following this:https://medium.com/@cloverinks/how-to-fix-puppetteer-error-ibx11-xcb-so-1-on-ubuntu-152c336368

 steps:
  - uses: actions/checkout@v2
    with:
      submodules: true         
  - name: Req
    run: sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
  - name: Build And Deploy
    id: builddeploy
    uses: Azure/static-web-apps-deploy@v0.0.1-preview
    with:

It still fails, am I missing a step or is there a limitation with azure static web apps and github actions?

Thanks

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
762 questions
{count} votes

Accepted answer
  1. brtrach-MSFT 15,171 Reputation points Microsoft Employee
    2020-12-09T05:44:11.107+00:00

    @Mike Harper Thank you for your patience. We heard back from the product group that this is a known issue and that a workaround is listed in the below link.

    https://github.com/Azure/static-web-apps/issues/99

    The product group is aware of the issue but unfortunately, there is not an ETA for a permanent fix. As Static Web Apps moves closer to General Availability (GA), a lot of these issues should be resolved as they are currently maturing the product out of public preview and trying to get it ready for GA.

    Please let us know if there are any further questions or concerns.


0 additional answers

Sort by: Most helpful