Girder-DSA Installation on EC2 aws instance error

Hi,

I have no problem installing girder on my local ubuntu box but when I tried to install it on an Ubuntu EC2 AWS instance. I got the following error:

command : python3 deploy_docker.py start
Pulling dsarchive/dsa_girder:latest
Creating dsarchive/dsa_girder:latest - dsa_girder
Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, line 268, in _raise_for_status response.raise_for_status()
File “/usr/lib/python3/dist-packages/requests/models.py”, line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:http+docker://localhost/v1.41/containers/create?name=dsa_girder

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “deploy_docker.py”, line 1075, in
containers_start(**vars(args))
File “deploy_docker.py”, line 187, in containers_start
if globals()[func](
File “deploy_docker.py”, line 250, in container_start_girder
ctn = client.create_container(
File “/usr/local/lib/python3.8/dist-packages/docker/api/container.py”, line 42 8, in create_container
return self.create_container_from_config(config, name)
File “/usr/local/lib/python3.8/dist-packages/docker/api/container.py”, line 439, in create_container_from_config
return self._result(res, True)
File “/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, line 274, in _result
self._raise_for_status(response)
File “/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, line 270, in _raise_for_status
raise create_api_error_from_http_exception(e)
File “/usr/local/lib/python3.8/dist-packages/docker/errors.py”, line 31, in create_api_error_from_http_exception raise cls(e, response=response, explanation=explanation)
docker.errors.ImageNotFound: 404 Client Error for http+docker://localhost/v1.41/containers/create?name=dsa_girder: Not Found (“No such image: dsarchive/dsa_girder:latest”)

Thanks a lot in advance!

Best,
Sherif

Based on the error message, it looks like the docker image wasn’t pulled from docker hub. Can you do docker pull dsarchive/dsa_girder:latest from the command line? If not, then whatever prevents that from working is causing the issue. If so, then maybe docker is installed with a different control socket and/or executable than the python interface to docker expects.

David