You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony\Component\Process\Exception\ProcessFailedException with message 'The command "PATH=$PATH:/usr/local/bin NODE_PATH=npm root -g node '/var/www/dotorm.cv/releases/20211123160705/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"https://nova.laravel.com","action":"pdf","options":{"path":"test.pdf","args":[],"viewport":{"width":800,"height":600}}}'" failed.
Exit Code: 1(General error)
Working directory: /var/www/dotorm.cv/releases/20211123160705
Output:
Error Output:
Error: Failed to launch the browser process!
/usr/lib/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
at onClose (/usr/lib/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:203:20)
at Interface.<anonymous> (/usr/lib/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:68)
at Interface.emit (events.js:388:22)
at Interface.close (readline.js:429:8)
at Socket.onend (readline.js:202:10)
at Socket.emit (events.js:388:22)
at endReadableNT (internal/streams/readable.js:1336:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Some one can help me pass this error, please (I get this error only on live site in my computer all is working good).
The text was updated successfully, but these errors were encountered:
Hi,
As you can see from the error, The provided chrome path doesn't exists, can you please check if /usr/lib/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome exists. if it doesn't exists you can manually install chromium on your server & set a Custom chrome/chromium executable path
Hi, i am in live site and after i followed this #8 i did this:
npm install -g puppeteer
npm link puppeteer
but when i use tinker: Spatie\Browsershot\Browsershot::url('https://nova.laravel.com')->save('test.pdf')
I get this error:
Symfony\Component\Process\Exception\ProcessFailedException with message 'The command "PATH=$PATH:/usr/local/bin NODE_PATH=
npm root -g
node '/var/www/dotorm.cv/releases/20211123160705/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"https://nova.laravel.com","action":"pdf","options":{"path":"test.pdf","args":[],"viewport":{"width":800,"height":600}}}'" failed.Exit Code: 1(General error)
Working directory: /var/www/dotorm.cv/releases/20211123160705
Output:
Error Output:
Error: Failed to launch the browser process!
/usr/lib/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Some one can help me pass this error, please (I get this error only on live site in my computer all is working good).
The text was updated successfully, but these errors were encountered: