I am having trubble generating pdf an images #880
Unanswered
rashed-kaysar-rasel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to generate images and pdf using browsershot. in my local machine everything working properly. But after deploying to the server I am getting the following error:
The command \"PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=/bin/node /bin/npm root -g /bin/node '/home/wwwcreadordecv/public_html/api.creadordecv.es/vendor/spatie/browsershot/src/../bin/browser.cjs' '{\"url\":\"file:\\/\\/\\/tmp\\/689456138-0597393001724844882\\/index.html\",\"action\":\"screenshot\",\"options\":{\"type\":\"jpeg\",\"path\":\"\\/home\\/wwwcreadordecv\\/public_html\\/api.creadordecv.es\\/public\\/assets\\/cv-images\\/1724844882OgGG6GR48X.jpg\",\"quality\":100,\"args\":[],\"viewport\":{\"width\":800,\"height\":1100},\"displayHeaderFooter\":false,\"timeout\":300000,\"executablePath\":\"\\/bin\\/google-chrome\"}}'\" failed.\n\nExit Code: 1(General error)\n\nWorking directory: /home/wwwcreadordecv/public_html/api.creadordecv.es/public\n\nOutput:\n================\n\n\nError Output:\n================\nError: Failed to launch the browser process!\nmkdir: cannot create directory '/.local': Permission denied\ntouch: cannot touch '/.local/share/applications/mimeapps.list': No such file or directory\nchrome_crashpad_handler: --database is required\nTry 'chrome_crashpad_handler --help' for more information.\n\n\nTROUBLESHOOTING: https://pptr.dev/troubleshooting\n\n at Interface.onClose (/usr/local/lib/node_modules/puppeteer/node_modules/@puppeteer/browsers/lib/cjs/launch.js:310:24)\n at Interface.emit (node:events:529:35)\n at Interface.close (node:internal/readline/interface:534:10)\n at Socket.onend (node:internal/readline/interface:260:10)\n at Socket.emit (node:events:529:35)\n at endReadableNT (node:internal/streams/readable:1400:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n
My puppeteer version:
23.2.0
Beta Was this translation helpful? Give feedback.
All reactions