質問編集履歴

1

Heroku logs の追加

2018/05/24 12:21

投稿

DAIKI291
DAIKI291

スコア12

test CHANGED
File without changes
test CHANGED
@@ -1,7 +1,3 @@
1
- ローカルで問題なく作動するアプリが、Herokuにデプロイ後web上で表示されないので、お力を貸していただきたいですm(__)m
2
-
3
-
4
-
5
1
  ruby on rails チュートリアルを使って練習中です。
6
2
 
7
3
  第2章のアプリ、を実装、ローカルで問題なく作動したので、Herokuへデプロイ。
@@ -12,190 +8,180 @@
12
8
 
13
9
 
14
10
 
11
+ ```heroku logs 上部数行は省略
15
12
 
13
+ /app/vendor/bundle/ruby/2.4.0/bin/puma:23:in `<top (required)>'
16
14
 
17
- ```ログ画面
15
+ 2018-05-24T08:18:40.479150+00:00 heroku[web.1]: Process exited with status 1
18
16
 
19
- -----> Ruby app detected
17
+ 2018-05-24T08:18:40.499328+00:00 heroku[web.1]: State changed from starting to crashed
20
18
 
21
- -----> Compiling Ruby/Rails
19
+ 2018-05-24T12:06:24.000000+00:00 app[api]: Build started by user idsaikyo@icloud.com
22
20
 
23
- -----> Using Ruby version: ruby-2.4.1
21
+ 2018-05-24T12:06:42.519873+00:00 heroku[web.1]: State changed from crashed to starting
24
22
 
25
- -----> Installing dependencies using bundler 1.15.2
23
+ 2018-05-24T12:06:42.299075+00:00 app[api]: Deploy 9e96a716 by user idsaikyo@icloud.com
26
24
 
27
- Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
25
+ 2018-05-24T12:06:42.000000+00:00 app[api]: Build succeeded
28
26
 
29
- Fetching gem metadata from https://rubygems.org/.........
27
+ 2018-05-24T12:06:42.299075+00:00 app[api]: Release v11 created by user idsaikyo@icloud.com
30
28
 
31
- Fetching version metadata from https://rubygems.org/..
29
+ 2018-05-24T12:06:45.163716+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
32
30
 
33
- Fetching dependency metadata from https://rubygems.org/.
31
+ 2018-05-24T12:06:46.750457+00:00 app[web.1]: Puma starting in single mode...
34
32
 
35
- Using rake 12.3.1
33
+ 2018-05-24T12:06:46.750478+00:00 app[web.1]: * Version 3.11.4 (ruby 2.4.1-p111), codename: Love Song
36
34
 
37
- Using concurrent-ruby 1.0.5
35
+ 2018-05-24T12:06:46.750480+00:00 app[web.1]: * Min threads: 5, max threads: 5
38
36
 
39
- Using minitest 5.11.3
37
+ 2018-05-24T12:06:46.750482+00:00 app[web.1]: * Environment: production
40
38
 
41
- Using thread_safe 0.3.6
39
+ 2018-05-24T12:06:48.563020+00:00 app[web.1]: * Listening on tcp://0.0.0.0:18347
42
40
 
43
- Using builder 3.2.3
41
+ 2018-05-24T12:06:48.563459+00:00 app[web.1]: Use Ctrl-C to stop
44
42
 
45
- Using erubi 1.7.1
43
+ 2018-05-24T12:06:49.972615+00:00 heroku[web.1]: State changed from starting to up
46
44
 
47
- Using mini_portile2 2.3.0
45
+ 2018-05-24T12:07:54.822041+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] Started GET "/" for 211.126.214.25 at 2018-05-24 12:07:54 +0000
48
46
 
49
- Using crass 1.0.4
47
+ 2018-05-24T12:07:54.824970+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] Processing by UsersController#index as HTML
50
48
 
51
- Using rack 2.0.5
49
+ 2018-05-24T12:07:54.833572+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] Rendering users/index.html.erb within layouts/application
52
50
 
53
- Using nio4r 2.3.1
51
+ 2018-05-24T12:07:56.161962+00:00 heroku[router]: at=info method=GET path="/" host=polar-oasis-73327.herokuapp.com request_id=922623b8-a297-4be6-aa53-d5acdada3702 fwd="211.126.214.25" dyno=web.1 connect=0ms service=1342ms status=500 bytes=1827 protocol=https
54
52
 
55
- Using websocket-extensions 0.1.3
53
+ 2018-05-24T12:07:56.159462+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] User Load (3.0ms) SELECT "users".* FROM "users"
56
54
 
57
- Using arel 8.0.0
55
+ 2018-05-24T12:07:56.160016+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] Rendered users/index.html.erb within layouts/application (1326.4ms)
58
56
 
59
- Using mini_mime 1.0.0
57
+ 2018-05-24T12:07:56.160258+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] Completed 500 Internal Server Error in 1335ms (ActiveRecord: 1299.4ms)
60
58
 
61
- Using bundler 1.15.2
59
+ 2018-05-24T12:07:56.161141+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702]
62
60
 
63
- Using coffee-script-source 1.12.2
61
+ 2018-05-24T12:07:56.161162+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] ActionView::Template::Error (PG::UndefinedTable: ERROR: relation "users" does not exist
64
62
 
65
- Using execjs 2.7.0
63
+ 2018-05-24T12:07:56.161164+00:00 app[web.1]: LINE 1: SELECT "users".* FROM "users"
66
64
 
67
- Using method_source 0.9.0
65
+ 2018-05-24T12:07:56.161165+00:00 app[web.1]: ^
68
66
 
69
- Using thor 0.20.0
67
+ 2018-05-24T12:07:56.161167+00:00 app[web.1]: : SELECT "users".* FROM "users"):
70
68
 
71
- Using ffi 1.9.23
69
+ 2018-05-24T12:07:56.161333+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] 12: </thead>
72
70
 
73
- Using multi_json 1.13.1
71
+ 2018-05-24T12:07:56.161335+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] 13:
74
72
 
75
- Using pg 0.20.0
73
+ 2018-05-24T12:07:56.161336+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] 14: <tbody>
76
74
 
77
- Using puma 3.11.4
75
+ 2018-05-24T12:07:56.161338+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] 15: <% @users.each do |user| %>
78
76
 
79
- Using rails_serve_static_assets 0.0.5
77
+ 2018-05-24T12:07:56.161339+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] 16: <tr>
80
78
 
81
- Using rails_stdout_logging 0.0.5
79
+ 2018-05-24T12:07:56.161343+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] 17: <td><%= user.name %></td>
82
80
 
83
- Using rb-fsevent 0.10.3
81
+ 2018-05-24T12:07:56.161345+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] 18: <td><%= user.email %></td>
84
82
 
85
- Using tilt 2.0.8
83
+ 2018-05-24T12:07:56.161348+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702]
86
84
 
87
- Using turbolinks-source 5.1.0
85
+ 2018-05-24T12:07:56.161379+00:00 app[web.1]: [922623b8-a297-4be6-aa53-d5acdada3702] app/views/users/index.html.erb:15:in `_app_views_users_index_html_erb__3798662740040190546_14162720'
88
86
 
89
- Using i18n 1.0.1
87
+ 2018-05-24T12:15:36.000000+00:00 app[api]: Build started by user idsaikyo@icloud.com
90
88
 
91
- Using tzinfo 1.2.5
89
+ 2018-05-24T12:15:54.403557+00:00 heroku[web.1]: Restarting
92
90
 
93
- Using nokogiri 1.8.2
91
+ 2018-05-24T12:15:54.404506+00:00 heroku[web.1]: State changed from up to starting
94
92
 
95
- Using rack-test 1.0.0
93
+ 2018-05-24T12:15:53.915065+00:00 app[api]: Release v12 created by user idsaikyo@icloud.com
96
94
 
97
- Using sprockets 3.7.1
95
+ 2018-05-24T12:15:54.000000+00:00 app[api]: Build succeeded
98
96
 
99
- Using websocket-driver 0.6.5
97
+ 2018-05-24T12:15:53.915065+00:00 app[api]: Deploy 0680cc85 by user idsaikyo@icloud.com
100
98
 
101
- Using mail 2.7.0
99
+ 2018-05-24T12:15:55.268389+00:00 heroku[web.1]: Stopping all processes with SIGTERM
102
100
 
103
- Using uglifier 4.1.10
101
+ 2018-05-24T12:15:55.277265+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
104
102
 
105
- Using coffee-script 2.4.1
103
+ 2018-05-24T12:15:55.278302+00:00 app[web.1]: === puma shutdown: 2018-05-24 12:15:55 +0000 ===
106
104
 
107
- Using rb-inotify 0.9.10
105
+ 2018-05-24T12:15:55.278306+00:00 app[web.1]: - Goodbye!
108
106
 
109
- Using rails_12factor 0.0.3
107
+ 2018-05-24T12:15:55.278702+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.4.0/bin/puma)
110
108
 
111
- Using turbolinks 5.1.1
109
+ 2018-05-24T12:15:55.278737+00:00 app[web.1]: SignalException: SIGTERM
112
110
 
113
- Using activesupport 5.1.6
111
+ 2018-05-24T12:15:55.278744+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/puma-3.11.4/lib/puma/launcher.rb:398:in `block in setup_signals'
114
112
 
115
- Using loofah 2.2.2
113
+ 2018-05-24T12:15:55.278747+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/puma-3.11.4/lib/puma/single.rb:106:in `join'
116
114
 
117
- Using sass-listen 4.0.0
115
+ 2018-05-24T12:15:55.278749+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/puma-3.11.4/lib/puma/single.rb:106:in `run'
118
116
 
119
- Using rails-dom-testing 2.0.3
117
+ 2018-05-24T12:15:55.278750+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/puma-3.11.4/lib/puma/launcher.rb:184:in `run'
120
118
 
121
- Using globalid 0.4.1
119
+ 2018-05-24T12:15:55.278752+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/puma-3.11.4/lib/puma/cli.rb:78:in `run'
122
120
 
123
- Using activemodel 5.1.6
121
+ 2018-05-24T12:15:55.278754+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/puma-3.11.4/bin/puma:10:in `<top (required)>'
124
122
 
125
- Using jbuilder 2.7.0
123
+ 2018-05-24T12:15:55.278755+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/bin/puma:23:in `load'
126
124
 
127
- Using sass 3.5.6
125
+ 2018-05-24T12:15:55.278757+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/bin/puma:23:in `<top (required)>'
128
126
 
129
- Using rails-html-sanitizer 1.0.4
127
+ 2018-05-24T12:15:55.555489+00:00 heroku[web.1]: Process exited with status 1
130
128
 
131
- Using activejob 5.1.6
129
+ 2018-05-24T12:15:57.521558+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
132
130
 
133
- Using activerecord 5.1.6
131
+ 2018-05-24T12:15:59.456018+00:00 app[web.1]: Puma starting in single mode...
134
132
 
135
- Using actionview 5.1.6
133
+ 2018-05-24T12:15:59.456057+00:00 app[web.1]: * Version 3.11.4 (ruby 2.4.1-p111), codename: Love Song
136
134
 
137
- Using actionpack 5.1.6
135
+ 2018-05-24T12:15:59.456063+00:00 app[web.1]: * Min threads: 5, max threads: 5
138
136
 
139
- Using actioncable 5.1.6
137
+ 2018-05-24T12:15:59.456065+00:00 app[web.1]: * Environment: production
140
138
 
141
- Using actionmailer 5.1.6
139
+ 2018-05-24T12:16:01.183633+00:00 app[web.1]: * Listening on tcp://0.0.0.0:14752
142
140
 
143
- Using railties 5.1.6
141
+ 2018-05-24T12:16:01.184121+00:00 app[web.1]: Use Ctrl-C to stop
144
142
 
145
- Using sprockets-rails 3.2.1
143
+ 2018-05-24T12:16:01.690928+00:00 heroku[web.1]: State changed from starting to up
146
144
 
147
- Using coffee-rails 4.2.2
145
+ 2018-05-24T12:16:57.650001+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] Started GET "/" for 211.126.214.25 at 2018-05-24 12:16:57 +0000
148
146
 
149
- Using rails 5.1.6
147
+ 2018-05-24T12:16:57.652766+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] Processing by UsersController#index as HTML
150
148
 
151
- Using sass-rails 5.0.7
149
+ 2018-05-24T12:16:57.661394+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] Rendering users/index.html.erb within layouts/application
152
150
 
153
- Bundle complete! 18 Gemfile dependencies, 59 gems now installed.
151
+ 2018-05-24T12:16:57.705291+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] User Load (1.9ms) SELECT "users".* FROM "users"
154
152
 
155
- Gems in the groups development and test were not installed.
153
+ 2018-05-24T12:16:57.705909+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] Rendered users/index.html.erb within layouts/application (44.4ms)
156
154
 
157
- Bundled gems are installed into ./vendor/bundle.
155
+ 2018-05-24T12:16:57.706122+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] Completed 500 Internal Server Error in 53ms (ActiveRecord: 17.3ms)
158
156
 
159
- Bundle completed (3.05s)
157
+ 2018-05-24T12:16:57.706821+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7]
160
158
 
161
- Cleaning up the bundler cache.
159
+ 2018-05-24T12:16:57.706851+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] ActionView::Template::Error (PG::UndefinedTable: ERROR: relation "users" does not exist
162
160
 
163
- The latest bundler is 1.16.2, but you are currently running 1.15.2.
161
+ 2018-05-24T12:16:57.706853+00:00 app[web.1]: LINE 1: SELECT "users".* FROM "users"
164
162
 
165
- To update, run `gem install bundler`
163
+ 2018-05-24T12:16:57.706855+00:00 app[web.1]: ^
166
164
 
167
- -----> Installing node-v8.10.0-linux-x64
165
+ 2018-05-24T12:16:57.706857+00:00 app[web.1]: : SELECT "users".* FROM "users"):
168
166
 
169
- -----> Detecting rake tasks
167
+ 2018-05-24T12:16:57.706990+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] 12: </thead>
170
168
 
171
- -----> Preparing app for Rails asset pipeline
169
+ 2018-05-24T12:16:57.706991+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] 13:
172
170
 
173
- Running: rake assets:precompile
171
+ 2018-05-24T12:16:57.706993+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] 14: <tbody>
174
172
 
175
- Yarn executable was not detected in the system.
173
+ 2018-05-24T12:16:57.706995+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] 15: <% @users.each do |user| %>
176
174
 
177
- Download Yarn at https://yarnpkg.com/en/docs/install
175
+ 2018-05-24T12:16:57.706997+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] 16: <tr>
178
176
 
179
- Asset precompilation completed (1.54s)
177
+ 2018-05-24T12:16:57.706998+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] 17: <td><%= user.name %></td>
180
178
 
181
- Cleaning assets
179
+ 2018-05-24T12:16:57.707000+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] 18: <td><%= user.email %></td>
182
180
 
183
- Running: rake assets:clean
181
+ 2018-05-24T12:16:57.707004+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7]
184
182
 
185
- -----> Discovering process types
183
+ 2018-05-24T12:16:57.707031+00:00 app[web.1]: [dca49acb-949c-4a05-8ba1-2519e4b80df7] app/views/users/index.html.erb:15:in `_app_views_users_index_html_erb__441087315589969421_25269480'
186
184
 
187
- Procfile declares types -> web
188
-
189
- Default types for buildpack -> console, rake, worker
190
-
191
- -----> Compressing...
192
-
193
- Done: 34.3M
194
-
195
- -----> Launching...
196
-
197
- Released v10
198
-
199
- https://polar-oasis-73327.herokuapp.com/ deployed to Heroku
185
+ 2018-05-24T12:16:57.706378+00:00 heroku[router]: at=info method=GET path="/" host=polar-oasis-73327.herokuapp.com request_id=dca49acb-949c-4a05-8ba1-2519e4b80df7 fwd="211.126.214.25" dyno=web.1 connect=1ms service=60ms status=500 bytes=1827 protocol=https
200
186
 
201
187
  ```