Issue with chromium-browser / browsershot
[2024-06-06 21:18:45] production.ERROR: The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=`npm root -g` node '/home/forge/***/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"file:\/\/\/home\/forge\/***\/storage\/requests\/temp\/818543423-0014795001717701525\/index.html","action":"pdf","options":{"args":[],"viewport":{"width":800,"height":600},"displayHeaderFooter":false,"margin":{"top":"30px","right":"30px","bottom":"30px","left":"30px"},"executablePath":"\/usr\/bin\/chromium-browser","printBackground":true}}'" failed.
Exit Code: 1(General error)
Working directory: /home/forge/***/public
Error Output:
Error: Failed to launch the browser process! /system.slice/php8.3-fpm.service is not a snap cgroup
Sometimes when I generate a PDF, it works a couple of times, but then it gives a 500 error. I have to restart PHP to fix it.
Please or to participate in this conversation.