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

Connection to Carla Server is failed - Carla 0.9.12 #39

Closed
newzoel opened this issue Sep 27, 2021 · 23 comments
Closed

Connection to Carla Server is failed - Carla 0.9.12 #39

newzoel opened this issue Sep 27, 2021 · 23 comments
Labels

Comments

@newzoel
Copy link

newzoel commented Sep 27, 2021

carlaviz_issue

Hello,

Anyone know what happened above? The status are below:

Thank You

@mjxu96
Copy link
Owner

mjxu96 commented Oct 4, 2021

Hi we don't have CarlaViz for Carla 0.9.12.

@mjxu96
Copy link
Owner

mjxu96 commented Nov 24, 2021

Hi CarlaViz 0.9.12 has been released. Could you have a try and see if it works?

@newzoel
Copy link
Author

newzoel commented Nov 24, 2021

Hi Thanks for notifying me.

I just tried it and it works!!!
Thanks for working on this version. If I may know, I would like to know how carlaviz works (backend).
Let me know if u have any references or documentation of carlaviz. I might want to contribute for carlaviz

Thanks again mjxu96 and team!

@newzoel newzoel changed the title Connection to Carla Server is failed Connection to Carla Server is failed - Carla 0.9.12 Jan 14, 2023
@mjxu96
Copy link
Owner

mjxu96 commented Jul 26, 2023

Not sure if you are still interested, but yeah I am looking for contributors to help maintain and develop CarlaViz. Please leave comments here or contact me via email if you are still interested in the project.

@mjxu96 mjxu96 closed this as completed Jul 26, 2023
@RiaMatapurkar
Copy link

Hi, I have Carla 9.14 and get the following error when I run the command:
docker pull mjxu96/carlaviz:0.9.14.1 from https://github.com/mjxu96/carlaviz/tree/master

[2023-11-09 11:27:44.271] [info] CarlaViz will host websocket server on 0.0.0.0:8081
[2023-11-09 11:27:44.272] [info] CarlaViz websocket server starts.
[2023-11-09 11:27:44.272] [info] CarlaViz is trying to connect to Carla simulator on localhost:2000
[2023-11-09 11:27:44.273] [error] Connection to simulator failed for Connection refused
[2023-11-09 11:27:45.273] [info] CarlaViz is trying to connect to Carla simulator on localhost:2000
[2023-11-09 11:27:45.274] [error] Connection to simulator failed for Connection refused
[2023-11-09 11:27:46.274] [info] CarlaViz is trying to connect to Carla simulator on localhost:2000
[2023-11-09 11:27:46.275] [error] Connection to simulator failed for Connection refused
[2023-11-09 11:27:47.275] [info] CarlaViz is trying to connect to Carla simulator on localhost:2000
[2023-11-09 11:27:47.275] [error] Connection to simulator failed for Connection refused
[2023-11-09 11:27:48.276] [critical] Max retry times 3 passed when connecting to simulator, aborting...
terminate called after throwing an instance of 'std::runtime_error'
what(): Max retry times 3 passed when connecting to simulator, aborting...
./docker/run.sh: line 5: 27 Aborted ./backend/bin/backend $@

Would appreciate any help!

@PierceG6
Copy link

same issue here, did you solve it?

@mjxu96
Copy link
Owner

mjxu96 commented Apr 1, 2024

hi @PierceG6 @RiaMatapurkar what is your docker run command and is your Carla simulator on the same host of CarlaViz container?

@mjxu96 mjxu96 reopened this Apr 1, 2024
@PierceG6
Copy link

PierceG6 commented Apr 1, 2024

thanks for the reply, @mjxu96
I tried to use >docker pull mjxu96/carlaviz:latest , it succeed. but when i tried >docker run -it -e CARLAVIZ_HOST_IP=59.10.147.138 -e CARLA_SERVER_IP=host.docker.internal -e CARLA_SERVER_PORT=2000 -p 8080-8081:8080-8081 -p 8089:8089 mjxu96/carlaviz:latest. this is what came out:
[2024-04-01 16:03:12.630] [info] CarlaViz is trying to connect to Carla simulator on localhost:2000
[2024-04-01 16:03:12.632] [error] Connection to simulator failed for Connection refused
[2024-04-01 16:03:13.632] [info] CarlaViz is trying to connect to Carla simulator on localhost:2000
[2024-04-01 16:03:13.633] [error] Connection to simulator failed for Connection refused
[2024-04-01 16:03:14.633] [info] CarlaViz is trying to connect to Carla simulator on localhost:2000
[2024-04-01 16:03:14.633] [error] Connection to simulator failed for Connection refused
[2024-04-01 16:03:15.633] [critical] Max retry times 3 passed when connecting to simulator, aborting...
terminate called after throwing an instance of 'std::runtime_error'
what(): Max retry times 3 passed when connecting to simulator, aborting...
./docker/run.sh: line 5: 23 Aborted ./backend/bin/backend $@

THEN, i tried the 0.9.10 version. I succeed, but when I open http://127.0.0.1:8080/ , it shows launch the backend and refresh, but the commandline states this:
Launching backend.
2024-04-01 16:08:00 [INFO] Connecting to Carla Server on host.docker.internal:2000...
2024-04-01 16:08:00 [INFO] Connected to Carla Server, Server version is: 0.9.15
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.10
WARNING: Simulator API version = 0.9.15
./run.sh: line 16: 7 Segmentation fault ./carlaviz/backend/bin/backend ${CARLA_SERVER_IP} ${CARLA_SERVER_PORT}
Backend launched.
I am so confused, i will be grateful for your help

@mjxu96
Copy link
Owner

mjxu96 commented Apr 2, 2024

hi the docker run command has been changed after CarlaViz 0.9.14. Could you check the latest document?

And please use the same version of CarlaViz as Carla, e.g. use CarlaViz 0.9.15 for Carla 0.9.15.

@mjxu96
Copy link
Owner

mjxu96 commented Apr 2, 2024

by the way, your IP in your reply looks like a public IP. You might want to hide it for safety.

@RiaMatapurkar
Copy link

@mjxu96 Yes both are on the same host

@RiaMatapurkar
Copy link

command-->docker pull mjxu96/carlaviz:0.9.14
error --> during connect: this error may indicate that the docker daemon is not running: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=mjxu96%2Fcarlaviz&tag=0.9.14": open //./pipe/docker_engine: The system cannot find the file specified.

This is what I see now.

@mjxu96
Copy link
Owner

mjxu96 commented Apr 2, 2024

during connect: this error may indicate that the docker daemon is not running: Post

Could you try 0.9.14.1 or 0.9.15? And could you check if you can pull other non-carlaviz images?

@PierceG6
Copy link

PierceG6 commented Apr 2, 2024

@mjxu96 Thanks for the reply.
I tried the latest docker run command, the pulling was successful, but it shows error that not able to connect to the simulator. Could you please inform my next step, Thanks!

893dd71a3c67ac96c5376748cafe6b5

@mjxu96
Copy link
Owner

mjxu96 commented Apr 3, 2024

looks like it is almost there. Could you try to put the command into one line and discard the \ in the command?

@RiaMatapurkar
Copy link

@mjxu96 Thanks for all your suggestions I will try with 9.15 but my carla version is 9.14 source build, would that not be a problem?

@mjxu96
Copy link
Owner

mjxu96 commented Apr 3, 2024

Could you try CarlaViz 0.9.14.1? It can work with Carla 0.9.14

@RiaMatapurkar
Copy link

@mjxu96 Unfortunatly I get the same error as before:

error during connect: this error may indicate that the docker daemon is not running: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=mjxu96%2Fcarlaviz&tag=0.9.14.1": open //./pipe/docker_engine: The system cannot find the file specified.

@mjxu96
Copy link
Owner

mjxu96 commented Apr 4, 2024

@RiaMatapurkar could you check if you can pull other images from dockerhub? This error seems like your local docker daemon problem.

FYI the carlaviz images are hosted at https://hub.docker.com/r/mjxu96/carlaviz/tags

@RiaMatapurkar
Copy link

@mjxu96 I was able to but I will just check again to see if there is a problem on my end! Thanks for all your help, I will write you an update on Monday

@PierceG6
Copy link

PierceG6 commented Apr 5, 2024

@mjxu96 Thank you for your help!! now I can run the carlaviz.

Copy link

github-actions bot commented May 6, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 6, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants