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

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

新規登録して質問してみよう
ただいま回答率
85.46%
unicorn

Unicornは、汎用のRackアプリケーションサーバ。RackとWebサーバーの機能を併せ持ちます。レスポンス処理や、Nginx単体がRackの機能をサポートしていない事から、一般的にはNginx+Unicorn+Railsの構成を取って用います。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

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

Q&A

0回答

743閲覧

unicornとrailsを実行したいが長文のエラーが出てしまう。

manami0302

総合スコア4

unicorn

Unicornは、汎用のRackアプリケーションサーバ。RackとWebサーバーの機能を併せ持ちます。レスポンス処理や、Nginx単体がRackの機能をサポートしていない事から、一般的にはNginx+Unicorn+Railsの構成を取って用います。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

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

0グッド

1クリップ

投稿2021/06/27 11:39

前提・実現したいこと

unicornとrailsで環境を構築したいのですが、大量のエラーが出て何が原因かが全く分かりません。

発生している問題・エラーメッセージ

INFO -- : Refreshing Gem list /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': libssl.so.10: cannot open shared object file: No such file or directory - /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.so (LoadError) from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/mysql2-0.5.3/lib/mysql2.rb:36:in `<top (required)>' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:81:in `block (2 levels) in require' from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `each' from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `block in require' from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `each' from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `require' from /home/ec2-user/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/bundler.rb:114:in `require' from /var/www/html/Pet_/config/application.rb:7:in `<top (required)>' from /var/www/html/Pet_/config/environment.rb:2:in `require_relative' from /var/www/html/Pet_/config/environment.rb:2:in `<top (required)>' from config.ru:4:in `require_relative' from config.ru:4:in `block in <main>' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `instance_eval' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `initialize' from config.ru:1:in `new' from config.ru:1:in `<main>' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/unicorn-6.0.0/lib/unicorn.rb:54:in `eval' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/unicorn-6.0.0/lib/unicorn.rb:54:in `block in builder' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/unicorn-6.0.0/bin/unicorn_rails:139:in `block in rails_builder' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/unicorn-6.0.0/lib/unicorn/http_server.rb:826:in `build_app!' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/unicorn-6.0.0/lib/unicorn/http_server.rb:140:in `start' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/gems/unicorn-6.0.0/bin/unicorn_rails:209:in `<top (required)>' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/bin/unicorn_rails:23:in `load' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/bin/unicorn_rails:23:in `<main>' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/bin/ruby_executable_hooks:24:in `eval' from /var/www/html/Pet_/vendor/bundle/ruby/2.5.0/bin/ruby_executable_hooks:24:in `<main>'

/var/www/html/Pet_/が公開フォルダです。

試したこと

・LoadErrorが見えるのでそれぞれのファイルを確認しましたが、パス通り存在していました。
・unicornとrubyのバージョン違いの問題かもしれないとの事を見つけたのでunicornのバージョンも一度下げてみましたが無意味でした。
・上に逆の発想で Refreshing Gem listと出ているので、全てをbundle upgrade最新のものにしてみましたが無意味でした。

補足情報(FW/ツールのバージョンなど)

ruby 2.5.3
rails 2.5.4
unicorn 6.0.0

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

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

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

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.46%

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

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

質問する

関連した質問