JS pupeteer issue
Hi,
I have a pupeteer chromium task that i want to run on the runpod which is written in typescript.
I did not see any JS handler. So, i am calling the JS entrypoint via python as below.
The above code works fine locally. But, when i deploy to serverless, it kicks off the yarn ts-node ... , but gets stuck and does not emit any logs and eventually times out.
Any advice?
25 Replies
Use codes block it's better to write code inside a code block
This is how you write block code:
```
import subprocess
import runpod
```
It will be like:
It does emit logs, if it does in your local when you call it manually in your command line
But the logs from your process(cli you
call
using subprocess didn't go through runpod's log)
So what you have to do is:
Awesome! Let me try that in the morning.
Looks like still stuck and does not emit log or proceeds
It does
It says it couldn't read that folder
i take that back. Its pupetteer launch issue.
I am launching pupeteer with these options
Looks like this gets stuck
I c
It works fine locally 🤔
i am ssh'ing into the serverless and still seeing the same issue
whats the error?
can you copy in text? maybe i can help
its just stuck
stuck in what?
any logs?
There are no logs being emitted by
puppeteer.launch
I added logs before and after puppeteer.launch
and the log after launch doesnt get triggered.is that warn normal or what
yea. thats normal
it emits locally as well. Unrelated
Has anyone ran pupeteer successfully?
hmm i dont know about that
send me the full file maybe
let me see
sure. Let me isolate keys and just keep the pupeteer code
This is the entire file
The entry point is
generateAndUploadVideoViaPuppeteer
try dumpio = true on launchBrowser
put it in args
got it!
trying
whats the logs after
Got this now
Is there something i need to turn on gpu support via dockerfile?
no i dont think so
search the problem up
i think its like dependency problem only
Got it. Let me search around.