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 […]

https://johnbeales.com/2026/fixing-chromes-no-usable-sandbox-during-web-requests-with-browsershot-and-puppeteer/