Replies: 5 comments 12 replies
-
This is your error. I think it basically means that you have installed Chrome via Snap, but your PHP web user (php8.1-fpm.service) doesn't have permission to use snaps. You could either add the user to the group, or install Chrome via another method. |
Beta Was this translation helpful? Give feedback.
-
@aeq-dev Did you manage to solve this issue? Plus how did you manage the permission issue? This is the error I'm getting.
|
Beta Was this translation helpful? Give feedback.
-
I assume you can run it with Tinker since Tinker does not use NGINX and php-fpm which does not belong to snap cgroup and has no permissions to run Chrome that was installed under root user and snap. To make it work, you need 2 things:
Yesterday I managed to make Browsershoot work with next environment: Ubuntu 24.04LST, php8.3, NGINX, Node (v18.19.1), Spatie/Browsershot (Puppeteer, Chrome 128.0.6613.119). So it should be possible. Here are detailed instructions: https://stackoverflow.com/a/78956369/3163536 |
Beta Was this translation helpful? Give feedback.
-
@alexivashchenko do you maybe know how this can be achieved with a forge provisioned server running on ubuntu and Arm64 architecture? Since forge configure nginx I assume one can't tamper too much with it. 22.04.4 LTS (GNU/Linux 6.5.0-1027-oracle aarch64) I tried the below: bash sudo chown -R forge:forge /snap/bin/chromium It works, but after a while I get the following error: Error Output:Error: Failed to launch the browser process! TROUBLESHOOTING: https://pptr.dev/troubleshooting
|
Beta Was this translation helpful? Give feedback.
-
I removed the Snap version and installed as per link below. Not ideal but it worked.How to install Chromium without snap?askubuntu.comDezine HQOn 26 Sep 2024, at 17:10, John Richardson ***@***.***> wrote:
Only fix I found was to uninstall the snap version and install from linux mint repos instead
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I cannot generate pdf on production server ubuntu 22, while I'm able to generate on local !
Here's my code :
Here's the error message :
Thanks for helping me
NB: I can generate it using tinker :/
Beta Was this translation helpful? Give feedback.
All reactions