質問するログイン新規登録

質問編集履歴

2

追記

2018/10/12 07:31

投稿

kozica
kozica

スコア58

title CHANGED
File without changes
body CHANGED
@@ -88,4 +88,24 @@
88
88
  1: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
89
89
  /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': cannot load such file -- rack/handler/unicorn (LoadError)
90
90
 
91
+ ```
92
+
93
+ ###回答からさらに追記
94
+ 後ろに -D developmentをつけたところ下記エラーが出てきました
95
+
96
+ ```
97
+ $ bundle exec unicorn_rails -c config/unicorn.rb -D development
98
+ bundler: failed to load command: unicorn_rails (/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/bin/unicorn_rails)
99
+ ArgumentError: rackup file (development) not readable
100
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:702:in `parse_rackup_file'
101
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:86:in `reload'
102
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:77:in `initialize'
103
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `new'
104
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `initialize'
105
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `new'
106
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
107
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/bin/unicorn_rails:23:in `load'
108
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/bin/unicorn_rails:23:in `<top (required)>'
109
+ master failed to start, check stderr log for details
110
+
91
111
  ```

1

追記

2018/10/12 07:31

投稿

kozica
kozica

スコア58

title CHANGED
File without changes
body CHANGED
@@ -49,4 +49,43 @@
49
49
  [2018-10-12 14:42:43] INFO WEBrick::HTTPServer#start: pid=2899 port=3000
50
50
 
51
51
  しかし、URLにアクセスしても502 nginxが出て反応がない
52
+ ```
53
+
54
+ ###回答から追記
55
+ エラー内容をみると
56
+ in `require': cannot load such file -- rack/handler/unicorn (LoadError)
57
+ ここが問題のようです
58
+ ```
59
+ $ bundle exec rails s unicorn
60
+ Exiting
61
+ Traceback (most recent call last):
62
+ 27: from bin/rails:9:in `<main>'
63
+ 26: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
64
+ 25: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
65
+ 24: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
66
+ 23: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
67
+ 22: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
68
+ 21: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
69
+ 20: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
70
+ 19: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
71
+ 18: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<main>'
72
+ 17: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:46:in `invoke'
73
+ 16: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command/base.rb:65:in `perform'
74
+ 15: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
75
+ 14: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
76
+ 13: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
77
+ 12: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `perform'
78
+ 11: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `tap'
79
+ 10: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:147:in `block in perform'
80
+ 9: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:47:in `start'
81
+ 8: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:76:in `print_boot_information'
82
+ 7: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:105:in `use_puma?'
83
+ 6: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/server.rb:301:in `server'
84
+ 5: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/handler.rb:16:in `get'
85
+ 4: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/handler.rb:74:in `try_require'
86
+ 3: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
87
+ 2: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
88
+ 1: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
89
+ /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': cannot load such file -- rack/handler/unicorn (LoadError)
90
+
52
91
  ```