Open dblueman opened 5 months ago
Make sure you can launch chromium without Rod on the machine.
Thank you for responding ysmood!
Yes, 'sudo apt install chromium' installs a snap; it starts version 125.0.6422.141 (official snap) up just fine running 'chromium' from the terminal.
Let me know anything else I can check.
Then it could be some default cli flags that the launcher sets fail the execution.
You can print the cli flags and launch it manually to check which flag is the cause:
From your error message, you might want to try launcher.New().NoSandbox(true)
i have this error
have guid for install all step for step? and need install stheal repo
Your machine might not have enough memory or disk space?
I use ubuntu 22 with 30gb in vps
From the error info, it's kill by something, maybe anti-virus software. The test works fine on github ubuntu actions, you can check the CI of rod.
Then it could be some default cli flags that the launcher sets fail the execution.
You can print the cli flags and launch it manually to check which flag is the cause:
From your error message, you might want to try
launcher.New().NoSandbox(true)
Indeed, I found NoSandbox(true) is a successful workaround:
u := launcher.New().
NoSandbox(true). // workaround for launching failure in Ubuntu 24.04
MustLaunch()
page := rod.New().
ControlURL(u).
MustConnect().
MustPage(path)
Many thanks ysmood!
using NoSandbox = true on launcher
When running an example (Rod Version: v0.116.0) with a stock Ubuntu 24.04 LTS install (Go 1.22) , we see: