carla-rl icon indicating copy to clipboard operation
carla-rl copied to clipboard

connection error

Open xiaoyuanzh opened this issue 4 years ago • 4 comments

Hi if I run observation_space, action_space = self.remotes[0].recv() Then, /home/cecilia/anaconda3/envs/ros/lib/python3.8/site-packages/gym/logger.py:30: UserWarning: WARN: Box bound precision lowered by casting to float32 warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow')) Trying to make client on port 2021 Got TCPConnectionError..sleeping for 1 (127.0.0.1:2000) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2003) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 Got TCPConnectionError..sleeping for 1 (127.0.0.1:2006) failed to connect: [Errno 111] Connection refused (127.0.0.1:2012) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2015) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2009) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2018) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2021) failed to connect: [Errno 111] Connection refused Trying to make client on port 2000 Trying to make client on port 2003 Trying to make client on port 2006 Trying to make client on port 2012 Trying to make client on port 2015 Trying to make client on port 2009 Trying to make client on port 2018 Trying to make client on port 2021

xiaoyuanzh avatar May 17 '20 15:05 xiaoyuanzh

I met the same error. Have you figured it out? How did you solve the problem?

li630925405 avatar Jun 08 '20 08:06 li630925405

I met the issue, and it is related docker permission. You just need to add your username to docker, such that you don't need to do sudo docker etc. to execute

yshen47 avatar Oct 23 '20 00:10 yshen47

Hi if I run observation_space, action_space = self.remotes[0].recv() Then, /home/cecilia/anaconda3/envs/ros/lib/python3.8/site-packages/gym/logger.py:30: UserWarning: WARN: Box bound precision lowered by casting to float32 warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow')) Trying to make client on port 2021 Got TCPConnectionError..sleeping for 1 (127.0.0.1:2000) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2003) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 Got TCPConnectionError..sleeping for 1 (127.0.0.1:2006) failed to connect: [Errno 111] Connection refused (127.0.0.1:2012) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2015) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2009) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2018) failed to connect: [Errno 111] Connection refused Got TCPConnectionError..sleeping for 1 (127.0.0.1:2021) failed to connect: [Errno 111] Connection refused Trying to make client on port 2000 Trying to make client on port 2003 Trying to make client on port 2006 Trying to make client on port 2012 Trying to make client on port 2015 Trying to make client on port 2009 Trying to make client on port 2018 Trying to make client on port 2021

I meet the same problems, have you done

parkerhzb avatar Apr 05 '22 07:04 parkerhzb

For those having the same issue, this is because the code tries to launch multiple containers which all communicate via 127.0.0.1. This might not work if you don't have access to root or if you are working on a server with namespaces. I have forked this repo and solved this issue by using a Docker Compose to create a pseudo-network for the containers to communicate on. Feel free to use it.

nvelingker avatar Nov 10 '22 03:11 nvelingker