rod
rod copied to clipboard
Chromium version in Alpine 3.20 is causing timeout issues
I'm creating this issue to leave a paper trail for others that might be suffering from this issue.
I've been troubleshooting an issue with Rod hanging and I suspect it's the same issue as is happening over in the Puppeteer world,
From Troubleshooting | Puppeteer,
The current Chromium version in Alpine 3.20 is causing timeout issues with Puppeteer. Downgrading to Alpine 3.19 fixes the issue. See #11640, #12637, #12189.
In my case I am able to launch the browser, e.g.,
u := launcher.New().Bin(browserPath).Set("no-sandbox").MustLaunch()
b : rod.New().ControlURL(u).MustConnect().MustIncognito()
but when I try to create an empty tab,
b.Page(proto.TargetCreateTarget{})
the program will just hang indefinitely around 10-30% of the time.
From the issues linked in the quote above it seems the --disable-gpu
option does help so I added that to the line,
u := launcher.New().Bin(browserPath).Set("disable-gpu").Set("no-sandbox").MustLaunch()