FHIR Chat · Error running docker-compose up · inferno

Stream: inferno

Topic: Error running docker-compose up


view this post on Zulip Padma Nippani (Sep 28 2020 at 14:26):

I have Docker Desktop installed in a Windows VM. I cloned the inferno project using git clone https://github.com/onc-healthit/inferno. In the inferno directory, I am tried to run:
docker-compose up and got the following error:
File "docker-compose", line 3, in <module>
File "compose\cli\main.py", line 67, in main
File "compose\cli\main.py", line 123, in perform_command
File "compose\cli\command.py", line 69, in project_from_options
File "compose\cli\command.py", line 132, in get_project
File "compose\cli\docker_client.py", line 43, in get_client
File "compose\cli\docker_client.py", line 170, in docker_client
File "site-packages\docker\api\client.py", line 188, in __init__
File "site-packages\docker\api\client.py", line 213, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')
[1988] Failed to execute script docker-compose

I then tried to do a build using docker-compose up --build and get the same error:
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose\cli\main.py", line 67, in main
File "compose\cli\main.py", line 123, in perform_command
File "compose\cli\command.py", line 69, in project_from_options
File "compose\cli\command.py", line 132, in get_project
File "compose\cli\docker_client.py", line 43, in get_client
File "compose\cli\docker_client.py", line 170, in docker_client
File "site-packages\docker\api\client.py", line 188, in __init__
File "site-packages\docker\api\client.py", line 213, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')
[11720] Failed to execute script docker-compose

Any suggestions on how to resolve this error are greatly appreciated

view this post on Zulip Robert Scanlon (Sep 28 2020 at 15:36):

Hi @Padma Nippani -- I haven't seen that issue before, but it looks like Docker isn't configured properly somehow? What version of Docker Desktop (and Docker Compose) are you running? Are you able to run the Docker "hello-world" example successfully (docker run hello-world)?

view this post on Zulip Padma Nippani (Sep 28 2020 at 16:17):

Hi Robert,

Thank you very much for your quick response. I am trying docker version and docker run hello-world and get an error. It does appear that my docker desktop is not installed correctly. Trying to correct that now and will update here soon

view this post on Zulip Padma Nippani (Sep 28 2020 at 18:55):

I realized that I was seeing errors with docker desktop installation on my windows VM. I installed it on my mac and running docker-compose up now displays the following error building ruby server:
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/

Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/

Could not fetch specs from https://rubygems.org/
ERROR: Service 'ruby_server' failed to build : The command '/bin/sh -c bundle install' returned a non-zero code: 17

view this post on Zulip Robert Scanlon (Sep 28 2020 at 19:24):

Inferno is a ruby app, which downloads dependencies from https://rubygems.org when you first run it. Would there by any reason why that might be blocked on your network?

view this post on Zulip Padma Nippani (Sep 28 2020 at 19:39):

Thanks Robert. I can access https://rubygems.org from my browser so the site is not blocked on our network.

view this post on Zulip Padma Nippani (Sep 28 2020 at 19:42):

I looked at docker configuration and had to add file sharing to the directory where I was installing. Now I get the following error:
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 12.3.3
Installing rake 12.3.3
Fetching concurrent-ruby 1.1.6
Installing concurrent-ruby 1.1.6
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.1

Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/minitest-5.14.1.gem)

Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/minitest-5.14.1.gem)

Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/minitest-5.14.1.gem)

Gem::RemoteFetcher::UnknownHostError: no such name
(https://rubygems.org/gems/minitest-5.14.1.gem)
An error occurred while installing minitest (5.14.1), and Bundler cannot
continue.
Make sure that gem install minitest -v '5.14.1' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile:
fhir_client was resolved to 4.0.3, which depends on
activesupport was resolved to 5.2.4.3, which depends on
minitest
ERROR: Service 'ruby_server' failed to build : The command '/bin/sh -c bundle install' returned a non-zero code: 5

view this post on Zulip Robert Scanlon (Sep 28 2020 at 20:11):

That's really strange, I don't understand why it was able to fetch the first 3 libraries but then fail with a host lookup error on the forth, when they are all coming from the same spot. Does it always fail in that exact spot now?

view this post on Zulip Padma Nippani (Sep 28 2020 at 20:55):

I was able to sudo gem install to install minitest and continue. But now, I keep getting an error for a different gem. Sometimes, is the the same one that I have already installed. I am unable to get out of the cycle to fetching and installing gems. I am running on a mac and checked that file sharing is set up for the directories.


Last updated: Apr 12 2022 at 19:14 UTC