#エラー内容
先日のsqlite3 1.4.0がリリースされたことにより、このようなエラーが出るようになってしまいました。
ActiveRecord::ConnectionNotEstablished
No connection pool with 'primary' found.
エラーメッセージの下に記載されたコード↓
def retrieve_connection(spec_name) #:nodoc: pool = retrieve_connection_pool(spec_name) raise ConnectionNotEstablished, "No connection pool with '#{spec_name}' found." unless pool pool.connection end
#参考にしたサイト
sqlite3_adapter has conflict with new version of sqlite3 gem
また、エラーが
Gem::LoadError: can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
このように出たため、Gemfileも以下のとおり修正済です。
rb
1group :development, :test do 2 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 3 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 4 gem 'sqlite3', '~> 1.3.6' 5end 6 7
※herokuを使用したいため、開発環境でsqliteを指定しています。
その後、bundle installし、rails sで再起動しますが、上記のエラー画面が解消されません。
ネット上では、gemfileの記述を修正すればよしと書いてあるサイトのみだったので、なぜ解決できないのかこれ以上先に進めない状態です。
どなたかお知恵をいただけると幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/15 09:16
2019/02/15 11:40
2019/02/15 12:16