Replies: 1 comment
-
Managed to fix the issue with ->noSandbox() Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all
Probably due to my setup, every time I try to run on a remote server I get the following error
The command "PATH=$PATH:/usr/local/bin NODE_PATH=
npm root -gnode '/var/www/clients/client1/web1/web/www.chainshout.com/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"https:\/\/www.site.com\/job-social-twitter-global-promotion","action":"screenshot","options":{"type":"png","path":"..\/public\/social\/global_promotion.gif","args":[],"viewport":{"width":1546,"height":869}}}'" failed. Exit Code: 1(General error) Working directory: /var/www/clients/client1/web1/web/www.chainshout.com/public Output: ================ Error Output: ================ Error: Failed to launch the browser process! [1027/181846.015544:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox.
I am running it using the following
Browsershot::html($html)->windowSize(1000, 500)->waitUntilNetworkIdle(true)->save('../public/social/'.$account->slug.'.png');
I followed the install instructions but have had no luck. Can run it locally without a problem.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions