LoginSignup
0
0

More than 3 years have passed since last update.

db:migrateでcould not find ○○○ in any of the sources エラー

Posted at

環境

  • ruby 2.6.3
  • rbenv 1.1.2
  • Bundler 1.17.3

エラーについて

以前もあったエラーで、二度目に関わらずハマってしまったので個人的な備忘録として残します。
また、初学者であることから至らぬ点があればご指摘頂けると幸いです。

以下、docker-compose run web rails db:migrate時にエラー
初回のRails server起動時には問題ない。
bundle installしているのになぜ。。。

Could not find concurrent-ruby-1.1.6 in any of the sources
Run bundle install to install missing gems

bundleを確認

$ which bundle
/.rbenv/shims/bundle
$ bundle show rake
/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-13.0.1

どちらもrbenvを見ているので問題なさそう

解決方法

キャッシュの影響でbundle installが実行されない場合があるとのこと
再度buildしてみる

$ docker-compose build --no-cache

〜〜
Installing railties 5.2.4.3
Fetching ffi 1.13.1
Installing ffi 1.13.1 with native extensions
Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching sassc-rails 2.1.2
Installing sassc-rails 2.1.2
Fetching bootstrap 4.5.0
Installing bootstrap 4.5.0
Using bundler 1.17.2
Fetching regexp_parser 1.7.1
Installing regexp_parser 1.7.1
Fetching xpath 3.2.0
Installing xpath 3.2.0
Fetching capybara 3.33.0
Installing capybara 3.33.0
Fetching childprocess 3.0.0
Installing childprocess 3.0.0
Fetching chromedriver-helper 2.1.1
Installing chromedriver-helper 2.1.1
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching coffee-rails 4.2.2
Installing coffee-rails 4.2.2
Fetching hpricot 0.8.6
Installing hpricot 0.8.6 with native extensions
Fetching html2slim 0.2.0
Installing html2slim 0.2.0
Fetching jbuilder 2.10.0
Installing jbuilder 2.10.0
Fetching rb-fsevent 0.10.4
Installing rb-fsevent 0.10.4
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching ruby_dep 1.5.0
Installing ruby_dep 1.5.0
Fetching listen 3.1.5
Installing listen 3.1.5
Fetching mysql2 0.5.3
Installing mysql2 0.5.3 with native extensions
Fetching puma 3.12.6
Installing puma 3.12.6 with native extensions
Fetching rails 5.2.4.3
Installing rails 5.2.4.3
Fetching rubyzip 2.3.0
Installing rubyzip 2.3.0
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching sass-rails 5.1.0
Installing sass-rails 5.1.0
Fetching selenium-webdriver 3.142.7
Installing selenium-webdriver 3.142.7
Fetching temple 0.8.2
Installing temple 0.8.2
Fetching slim 4.1.0
Installing slim 4.1.0
Fetching slim-rails 3.2.0
Installing slim-rails 3.2.0
Fetching spring 2.1.0
Installing spring 2.1.0
Fetching spring-watcher-listen 2.0.1
Installing spring-watcher-listen 2.0.1
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching turbolinks 5.2.1
Installing turbolinks 5.2.1
Fetching uglifier 4.2.0
Installing uglifier 4.2.0
Fetching web-console 3.7.0
Installing web-console 3.7.0
Bundle complete! 20 Gemfile dependencies, 87 gems now installed.
Bundled gems are installed into `/usr/local/bundle`
〜〜

Post-install message from sass:
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
  https://sass-lang.com/blog/posts/7828841
Removing intermediate container 112336a73c42
 ---> ffeb222ab3be
Step 9/9 : ADD . $APP_ROOT
 ---> 4b7250caad7e
Successfully built 4b7250caad7e
Successfully tagged ss_app_web:latest

もう一度migration

$ docker-compose run web rails db:migrate  

これで問題なく更新できました
原因は少々曖昧ですが、誰かの役に立てれば幸いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0