Replies: 1 comment
-
|
I think most of your issues would be documented in the puppeteer troubleshooting guide, for example: As you already seem to have figured out, your problem is just to get Puppeteer able to launch Chromium/Chrome on your system, which also requires a bunch of dependencies to be installed (listed further up in the troubleshooting guide). I've seen successful usage of md-to-pdf on linux servers, e.g. dillinger.io (https://github.com/joemccann/dillinger), so it's definitely possible. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
First I'd like to say thank you everyone for this project, it's really interesting! I've managed to get it up a running in moments within my dev environment (Windows Desktop, VS Code, Node.js) and so I figured that I might try get it running in a server to see how far I can push a couple of ideas.
I've setup my npm project within the latest Ubuntu Server (guest VM), that I run in detached mode - however upon executing my script it errors out. It's worth noting it's purely a md-to-pdf dependency project, with nothing more.
I suspect that my issue revolves around puppeteer failing to run on the latest Ubuntu Server (v24.04) due to its improved/changed security - but as this is my first time also with puppeteer I figured I'd ask here for some initial guidance.
Appreciate any suggestions that would allow me to progress. I'm downloading/testing on the latest Ubuntu Desktop on the side to see if it that encounters the same issue.
EDIT: After testing on a new Ubuntu Desktop build, my sample project worked as it did in my Windows Desktop VS Code environment. The same problem however occurs when I close down VS Code (on the Ubuntu Desktop), and then start the terminal, then execute npm run myPDFproject from the terminal - No usable sandbox error.
Edit2: Looked further into Puppeteer config, this seems to have hit the spot - however I have some learning/reading to do. :)
puppeteerConfig.mjs
Beta Was this translation helpful? Give feedback.
All reactions