home.social

#browsershot — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #browsershot, aggregated by home.social.

fetched live
  1. Fixing Chrome’s “No usable sandbox!” During Web Requests with Browsershot and Puppeteer

    After getting Chrome up and running as the www-data user for Laravel workers, I tried to generate a PDF during a web request and got Chrome's "No usable sandbox!" error. Uh-oh. Chrome needs a sandbox, it is strongly discouraged to run without one. So, how to get a sandbox up and running? A lot of Googling suggested that this was because of AppArmor, something that Ubuntu added recently, and Debian also has but it turns out doesn't use the same way Ubuntu does. After creating AppArmor […]

    johnbeales.com/2026/fixing-chr

  2. Install Chrome as the www-data User

    After recently rebuilding the 4RoadService web server on Debian 13, Browsershot wasn't working right. It wasn't working at all. We run Laravel on a slightly old-school LAMP setup with PHP-FPM, and run the Laravel workers as the www-data user, the same user that runs the web server, so that user needed to be able to run puppeteer and Chrome, which wasn't possible with each user having its own nvm/node/npm installation. Installing Node & NPM Globally The Node docs now suggest installing […]

    johnbeales.com/2026/install-ch

  3. Ich baute gestern Nacht, weil es mir keine Ruhe lies, noch ein kleines Package, mit dem man Browsershot von Spatie benutzen kann, ohne Puppeteer und Node und den ganzen Schlonz im App Image haben zu müssen. Es nutzt außerdem zenika/alpine-chrome als "kleines" (nur 500MB, hahaha) Chrome-Image.

    github.com/pwaldhauer/browsers

    #php #laravel #browsershot #docker

  4. Ich baute gestern Nacht, weil es mir keine Ruhe lies, noch ein kleines Package, mit dem man Browsershot von Spatie benutzen kann, ohne Puppeteer und Node und den ganzen Schlonz im App Image haben zu müssen. Es nutzt außerdem zenika/alpine-chrome als "kleines" (nur 500MB, hahaha) Chrome-Image.

    github.com/pwaldhauer/browsers

    #php #laravel #browsershot #docker