carla-rl
carla-rl copied to clipboard
connection error
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 met the same error. Have you figured it out? How did you solve the problem?
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
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
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.