SINDAN / sindan-docker

Ready-to-run Docker images containing server-side @SINDAN suite
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

TravisCI: open /var/lib/docker/tmp/docker-import-XXX/repositories: no such file or directory #1

Closed mi2428 closed 5 years ago

mi2428 commented 5 years ago

Travis build sometimes fails with below error.

#14 54.36 Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/jquery-rails-4.3.3.gem)
#14 54.66 Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/rails-5.2.3.gem)
#14 55.39 Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/jquery-rails-4.3.3.gem)
#14 55.70 Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/rails-5.2.3.gem)
#14 56.41 Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/jquery-rails-4.3.3.gem)
#14 56.73 Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/rails-5.2.3.gem)
#14 185.2 Gem::RemoteFetcher::UnknownHostError: no such name
#14 185.2 (https://rubygems.org/gems/jquery-rails-4.3.3.gem)
#14 185.2 An error occurred while installing jquery-rails (4.3.3), and Bundler cannot
#14 185.2 continue.
#14 185.2 Make sure that `gem install jquery-rails -v '4.3.3' --source
#14 185.2 'https://rubygems.org/'` succeeds before bundling.
#14 185.2 
#14 185.2 In Gemfile:
#14 185.2   jquery-rails
#14 185.2 
#14 185.2 
#14 185.2 Gem::RemoteFetcher::UnknownHostError: no such name
#14 185.2 (https://rubygems.org/gems/rails-5.2.3.gem)
#14 185.2 An error occurred while installing rails (5.2.3), and Bundler cannot continue.
#14 185.2 Make sure that `gem install rails -v '5.2.3' --source 'https://rubygems.org/'`
#14 185.2 succeeds before bundling.
#14 ERROR: executor failed running [/bin/sh -c apk add --no-cache --update       build-base  alpine-sdk tzdata shadow sudo ca-certificates       nodejs busybox-suid mariadb-dev mariadb-connector-c-dev libxml2-dev libxslt-dev libstdc++  && gem install bundler --no-document  && bundle config build.nokogiri --use-system-libraries  && bundle install --without development test --path vendor/bundle]: exit code: 5
------
 > [builder 7/8] RUN apk add --no-cache --update       build-base  alpine-sdk tzdata shadow sudo ca-certificates       nodejs busybox-suid mariadb-dev mariadb-connector-c-dev libxml2-dev libxslt-dev libstdc++  && gem install bundler --no-document  && bundle config build.nokogiri --use-system-libraries  && bundle install --without development test --path vendor/bundle:
------
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: executor failed running [/bin/sh -c apk add --no-cache --update       build-base  alpine-sdk tzdata shadow sudo ca-certificates       nodejs busybox-suid mariadb-dev mariadb-connector-c-dev libxml2-dev libxslt-dev libstdc++  && gem install bundler --no-document  && bundle config build.nokogiri --use-system-libraries  && bundle install --without development test --path vendor/bundle]: exit code: 5
open /var/lib/docker/tmp/docker-import-018774537/repositories: no such file or directory
travis_time:end:0fe329c0:start=1564744970352547902,finish=1564745165096321665,duration=194743773763
The command "bash .travis/test_building_visualization.sh" exited with 1.
mi2428 commented 5 years ago

http://www.zhuwu.me/blog/posts/solve-gem-installation-timeout-when-building-docker-image