質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

1582閲覧

runtime errorについて

tomo-t

総合スコア14

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/04/01 00:45

Ruby on rails を仮想環境で環境構築しています。
ただ、rails serverを立ち上げようとすると、runtime errorが起き、ページが表示されません。

rails

1Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`. 2=> Booting Puma 3=> Rails 6.0.2.2 application starting in development 4=> Run `rails server --help` for more startup options 5/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.2.2/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call 6/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.2.2/lib/action_dispatch/middleware/static.rb:110: warning: The called method `initialize' is defined here 7A server is already running. Check /home/vagrant/myapp/tmp/pids/server.pid. 8Exiting 9[vagrant@localhost myapp]$ cat tmp/pids/server.pid 1011637[vagrant@localhost myapp]$ kill -9 11637 11[vagrant@localhost myapp]$ rails s -b 0.0.0.0 12Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`. 13=> Booting Puma 14=> Rails 6.0.2.2 application starting in development 15=> Run `rails server --help` for more startup options 16/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.2.2/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call 17/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.2.2/lib/action_dispatch/middleware/static.rb:110: warning: The called method `initialize' is defined here 18Puma starting in single mode... 19* Version 4.3.3 (ruby 2.7.0-p0), codename: Mysterious Traveller 20* Min threads: 5, max threads: 5 21* Environment: development 22* Listening on tcp://0.0.0.0:3000 23Use Ctrl-C to stop 24Started GET "/" for 10.0.2.2 at 2020-03-31 12:55:53 +0000 25Cannot render console from 10.0.2.2! Allowed networks: 127.0.0.0/127.255.255.255, ::1 26 (23.6ms) SELECT sqlite_version(*) 27 28RuntimeError (Your version of SQLite (3.7.17) is too old. Active Record supports SQLite >= 3.8.): 29 30activerecord (6.0.2.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:340:in `check_version' 31activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:890:in `block in new_connection' 32activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:889:in `tap' 33activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:889:in `new_connection' 34activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:933:in `checkout_new_connection' 35activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:912:in `try_to_checkout_new_connection' 36activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:873:in `acquire_connection' 37activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:595:in `checkout' 38activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:439:in `connection' 39activerecord (6.0.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:1121:in `retrieve_connection' 40activerecord (6.0.2.2) lib/active_record/connection_handling.rb:238:in `retrieve_connection' 41activerecord (6.0.2.2) lib/active_record/connection_handling.rb:206:in `connection' 42activerecord (6.0.2.2) lib/active_record/migration.rb:562:in `call' 43actionpack (6.0.2.2) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' 44activesupport (6.0.2.2) lib/active_support/callbacks.rb:101:in `run_callbacks' 45actionpack (6.0.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' 46actionpack (6.0.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' 47actionpack (6.0.2.2) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call' 48actionpack (6.0.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call' 49web-console (4.0.1) lib/web_console/middleware.rb:132:in `call_app' 50web-console (4.0.1) lib/web_console/middleware.rb:19:in `block in call' 51web-console (4.0.1) lib/web_console/middleware.rb:17:in `catch' 52web-console (4.0.1) lib/web_console/middleware.rb:17:in `call' 53actionpack (6.0.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' 54railties (6.0.2.2) lib/rails/rack/logger.rb:38:in `call_app' 55railties (6.0.2.2) lib/rails/rack/logger.rb:26:in `block in call' 56activesupport (6.0.2.2) lib/active_support/tagged_logging.rb:80:in `block in tagged' 57activesupport (6.0.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' 58activesupport (6.0.2.2) lib/active_support/tagged_logging.rb:80:in `tagged' 59railties (6.0.2.2) lib/rails/rack/logger.rb:26:in `call' 60sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' 61actionpack (6.0.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' 62actionpack (6.0.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' 63rack (2.2.2) lib/rack/method_override.rb:24:in `call' 64rack (2.2.2) lib/rack/runtime.rb:22:in `call' 65activesupport (6.0.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' 66actionpack (6.0.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' 67actionpack (6.0.2.2) lib/action_dispatch/middleware/static.rb:126:in `call' 68rack (2.2.2) lib/rack/sendfile.rb:110:in `call' 69actionpack (6.0.2.2) lib/action_dispatch/middleware/host_authorization.rb:83:in `call' 70webpacker (4.2.2) lib/webpacker/dev_server_proxy.rb:23:in `perform_request' 71rack-proxy (0.6.5) lib/rack/proxy.rb:57:in `call' 72railties (6.0.2.2) lib/rails/engine.rb:526:in `call' 73puma (4.3.3) lib/puma/configuration.rb:228:in `call' 74puma (4.3.3) lib/puma/server.rb:682:in `handle_request' 75puma (4.3.3) lib/puma/server.rb:472:in `process_client' 76puma (4.3.3) lib/puma/server.rb:328:in `block in run' 77puma (4.3.3) lib/puma/thread_pool.rb:134:in `block in spawn_thread' 78/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/actionview-6.0.2.2/lib/action_view/unbound_template.rb:24: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call 79/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/actionview-6.0.2.2/lib/action_view/template.rb:130: warning: The called method `initialize' is defined here 80/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railties/collection_cache_association_loading.rb:7: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call 81/home/vagrant/myapp/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railties/collection_cache_association_loading.rb:12: warning: The called method `relation_from_options' is defined here`` 82 83このようなコード文が出てきます。 84 85エラー文の通り、sqlite3 >=3.8.0をインストールするようコマンドに打ち込んでも、sqlite3 3.7.17をrunし続けるのでどうすればよいか分かりません。 86知っている方がいたら教えていただきたいです。 87 88(環境情報) 89ruby 2.7.0 90rails 6.0.2.2 91bundler version 2.1.4 92rbenv 1.1.2

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

maisumakun

2020/04/01 00:46

「sqlite3 >=3.8.0をインストールするよう」どんなコマンドを実行しましたか?
tomo-t

2020/04/01 00:49

https://qiita.com/8zca/items/175efb0612070530d186 このサイトを参考にさせていただきまして、 # 3.29をダウンロード $ wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz $ tar xzvf sqlite-autoconf-3290000.tar.gz $ cd sqlite-autoconf-3290000 # もとから入っているsqliteと競合しないように /opt/sqlite/sqlite3 にインストールします $ ./configure --prefix=/opt/sqlite/sqlite3 $ make $ sudo make install # バージョン確認 $ /opt/sqlite/sqlite3/bin/sqlite3 --version 3.29.0 2019-07-10 17:32:03 fc82b73eaac8b36950e527f12c4b5dc1e147e6f4ad2217ae43ad82882a88bfa6 を実行しました
guest

回答1

0

自己解決

解決方法を具体的には難しいんですが、ググって出てきた解決法を片っ端からやったらできました

投稿2020/04/08 01:56

tomo-t

総合スコア14

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問