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

Error while fetching server API version #16

Open
JonathasJivago opened this issue Feb 22, 2021 · 3 comments
Open

Error while fetching server API version #16

JonathasJivago opened this issue Feb 22, 2021 · 3 comments

Comments

@JonathasJivago
Copy link

I got the following error when trying to run a simple python script.

Traceback (most recent call last):
File "/app/./test_sandbox.py", line 10, in
result = epicbox.run('python', 'python3 main.py', files=files, limits=limits)
File "/usr/local/lib/python3.9/site-packages/epicbox/sandboxes.py", line 225, in run
with create(profile_name, command=command, files=files, limits=limits,
File "/usr/local/lib/python3.9/site-packages/epicbox/sandboxes.py", line 70, in create
c = _create_sandbox_container(sandbox_id, profile.docker_image,
File "/usr/local/lib/python3.9/site-packages/epicbox/sandboxes.py", line 108, in _create_sandbox_container
docker_client = utils.get_docker_client()
File "/usr/local/lib/python3.9/site-packages/epicbox/utils.py", line 33, in get_docker_client
client = docker.DockerClient(base_url=base_url or config.DOCKER_URL,
File "/usr/local/lib/python3.9/site-packages/docker/client.py", line 45, in init
self.api = APIClient(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/docker/api/client.py", line 197, in init
self._version = self._retrieve_server_version()
File "/usr/local/lib/python3.9/site-packages/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

@SullivanCastro
Copy link

Did you find the solution ?

@JonathasJivago
Copy link
Author

No!

@ajaypraj
Copy link

I am getting similar issue:
Task vcenterapp.celery_automation_app.monitor_orch[eb14bdfa-1f1b-4a36-b5c8-442fc4
990078] raised unexpected: DockerException("Error while fetching server API version: ('Connection aborted.', FileNotFoundError
(2, 'No such file or directory'))")
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/local/lib/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/docker/transport/unixconn.py", line 43, in connect
sock.connect(self.unix_socket)
File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 628, in connect
raise _SocketError(result, strerror(result))
FileNotFoundError: [Errno 2] No such file or directory

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

No branches or pull requests

3 participants