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

Claude-3-Opus (You) error: Failed to connect to browser #1929

Open
rqi14 opened this issue May 8, 2024 · 6 comments
Open

Claude-3-Opus (You) error: Failed to connect to browser #1929

rqi14 opened this issue May 8, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@rqi14
Copy link

rqi14 commented May 8, 2024

Bug description
I asked a question using claude-3-opus model from You. It reports error:

An error occured: You: Exception: --------------------- Failed to connect to browser --------------------- One of the causes could be when you are running as root. In that case you need to pass no_sandbox=True

Environment

  • 0.3.10 (docker compose)
@rqi14 rqi14 added the bug Something isn't working label May 8, 2024
@hlohaus
Copy link
Collaborator

hlohaus commented May 8, 2024

The browser won't open. Maybe it's out of memory or you're doing too many things at once.

@rqi14
Copy link
Author

rqi14 commented May 9, 2024

The browser won't open. Maybe it's out of memory or you're doing too many things at once.

Hi. I have 128GB of memory and at least 100GB are free. It doesn't look like a memory issue. I run it using docker compose. Is it somehow related to that?

@rqi14
Copy link
Author

rqi14 commented May 11, 2024

The browser won't open. Maybe it's out of memory or you're doing too many things at once.

By checking the noVNC for the VM, I found the browser was actually open but showed a blank page.

@hlohaus
Copy link
Collaborator

hlohaus commented May 19, 2024

Please confirm if the following line is present in your docker-compose.yml file:
shm_size: 2gb

It is important to note that Google Chrome requires a minimum amount of memory to function properly.

Alternatively, you can try restarting the container and running nodriver again.

@rqi14
Copy link
Author

rqi14 commented May 22, 2024

Please confirm if the following line is present in your docker-compose.yml file: shm_size: 2gb

It is important to note that Google Chrome requires a minimum amount of memory to function properly.

Alternatively, you can try restarting the container and running nodriver again.

Hi.

I double checked and can confirm the 'shm_size: 2gb' option is present in the docker-compose file. I don't quite understand the nodriver thing. It does not seem to be present in any of the document.

Please see the below screenshot. I think the chrome is open but it shows a blank page.

image

g4f complaints it couldn't connect to the browser.

image

@KGLongWang
Copy link

I have the same question no_sandbox=True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants