Replies: 8 comments 16 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/chromiumIt 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.
-
|
I managed to solve the problem in the following way
when I was having this problem it was in the following way
|
Beta Was this translation helpful? Give feedback.
-
|
On systems using systemd, Snap applications (like Chromium) run inside the user’s php8.1-fpm.service is not a snap cgroup Enable linger for the forge user to keep their systemd user session active even when they are not logged in:
This prevents the error and ensures Snap and Chromium work correctly at all times. |
Beta Was this translation helpful? Give feedback.
-
|
Here's how I solved this issue on Ubuntu 24.04 (arm):
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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