Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to get the debug url: chrome_crashpad_handler: --database is required #1126

Open
gusandrioli opened this issue Oct 17, 2024 · 2 comments
Labels
question Questions related to rod

Comments

@gusandrioli
Copy link

gusandrioli commented Oct 17, 2024

My environment:

  • Go 1.21
  • Alpine Linux (inside Docker): v3.20.2
  • Rod Version: v0.116.2
  • Chromium: v129.0.6668.89-r0

I noticed this issue started happening since chromium updated fairly recently.

When i run:

        // ...
	// launch browser and return the debug url
	debugURL, err := launcher.
		New().
		NoSandbox(true).
		Bin(chromiumPath).Launch()
	if err != nil {
		return nil, errors.Wrap(err, "browser.Launch")
	}

	// connect to the remote browser and controls it
	browser := rod.New().ControlURL(debugURL)

        // ...

It fails with the following:

browser.Launch: [launcher] Failed to get the debug url: chrome_crashpad_handler: --database is required
Try 'chrome_crashpad_handler --help' for more information.
[18:18:1017/161409.921593:ERROR:socket.cc(120)] recvmsg: Connection reset by peer (104)

panic: initDependencies error: newBrowserInstance: browser.Launch: [launcher] Failed to get the debug url: chrome_crashpad_handler: --database is required
Try 'chrome_crashpad_handler --help' for more information.
[18:18:1017/161409.921593:ERROR:socket.cc(120)] recvmsg: Connection reset by peer (104)

I believe it could be related to this issue: puppeteer/puppeteer#11023.

However, setting env vars on my Dockerfile did not solve my issue:

ENV XDG_CONFIG_HOME=/tmp/.chromium
ENV XDG_CACHE_HOME=/tmp/.chromium

Any suggestions? Has anyone else encountered this?

Copy link

Please fix the format of your markdown:

2 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- Go 1.21"]
10 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```go"]
28 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
28 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
41 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
41 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
44:4 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
46:51 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]

generated by check-issue

@ysmood ysmood added the question Questions related to rod label Oct 18, 2024
@ysmood
Copy link
Member

ysmood commented Oct 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

2 participants