前提・実現したいこと
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
![guest](/img/icon/icnUserSample.jpg)
あなたの回答
tips
プレビュー