質問編集履歴

2

メモリ増量後追記

2016/07/12 13:12

投稿

hrc
hrc

スコア55

test CHANGED
File without changes
test CHANGED
@@ -50,187 +50,9 @@
50
50
 
51
51
 
52
52
 
53
- 以下はGemfileです。その下はEBのログです。すみません。どうかよろしくお願いします。
53
+ 以下はEBのログです。すみません。どうかよろしくお願いします。
54
-
55
-
56
-
57
- ```gemfile
54
+
58
-
59
- source 'https://rubygems.org'
55
+
60
-
61
-
62
-
63
- # Use mysql as the database for Active Record
64
-
65
- #gem 'mysql2', '~> 0.3.20'
66
-
67
- gem 'mysql2'
68
-
69
-
70
-
71
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
72
-
73
- gem 'rails', '4.2.3'
74
-
75
- # Use sqlite3 as the database for Active Record
76
-
77
- gem 'sqlite3'
78
-
79
- # Use SCSS for stylesheets
80
-
81
- gem 'sass-rails', '~> 5.0'
82
-
83
- # Use Uglifier as compressor for JavaScript assets
84
-
85
- gem 'uglifier', '>= 1.3.0'
86
-
87
- # Use CoffeeScript for .coffee assets and views
88
-
89
- gem 'coffee-rails', '~> 4.1.0'
90
-
91
- # See https://github.com/rails/execjs#readme for more supported runtimes
92
-
93
- # gem 'therubyracer', platforms: :ruby
94
-
95
-
96
-
97
-
98
-
99
- # i18n ActiveRecord
100
-
101
- gem 'i18n-active_record', :require => 'i18n/active_record'
102
-
103
-
104
-
105
- # For AWS EB
106
-
107
- gem 'puma', '~> 2.3', '>= 2.3.2'
108
-
109
-
110
-
111
- # Use jquery as the JavaScript library
112
-
113
- gem 'jquery-rails'
114
-
115
- # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
116
-
117
- gem 'turbolinks'
118
-
119
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
120
-
121
- gem 'jbuilder', '~> 2.0'
122
-
123
- # bundle exec rake doc:rails generates the API under doc/api.
124
-
125
- gem 'sdoc', '~> 0.4.0', group: :doc
126
-
127
-
128
-
129
- # Use ActiveModel has_secure_password
130
-
131
- # gem 'bcrypt', '~> 3.1.11'
132
-
133
- gem 'bcrypt-ruby', '~> 3.0.0'
134
-
135
-
136
-
137
- # Use Unicorn as the app server
138
-
139
- # gem 'unicorn'
140
-
141
-
142
-
143
- # Use Capistrano for deployment
144
-
145
- # gem 'capistrano-rails', group: :development
146
-
147
- # Slim
148
-
149
- gem 'slim-rails'
150
-
151
-
152
-
153
- # Foreign Key Constraint
154
-
155
- gem 'foreigner'
156
-
157
-
158
-
159
- # rename
160
-
161
- gem 'rename'
162
-
163
-
164
-
165
- # Devise & Omniauth
166
-
167
- gem 'devise'
168
-
169
- gem 'omniauth'
170
-
171
- gem 'omniauth-facebook'
172
-
173
- gem 'omniauth-twitter'
174
-
175
-
176
-
177
-
178
-
179
- # less(CSS)
180
-
181
- gem 'less-rails'
182
-
183
- # JavaScript Engine v8
184
-
185
- gem 'therubyracer'
186
-
187
- # JavaScript Excution Env
188
-
189
- gem 'execjs'
190
-
191
- # BootStrap
192
-
193
- gem 'twitter-bootstrap-rails'
194
-
195
-
196
-
197
- # GoogleMap
198
-
199
- gem "gmaps4rails"
200
-
201
- gem "geocoder"
202
-
203
-
204
-
205
- group :development, :test do
206
-
207
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
208
-
209
- gem 'byebug'
210
-
211
-
212
-
213
- # composite_primary_keys
214
-
215
- gem 'composite_primary_keys', '~> 8.1', '>= 8.1.3'
216
-
217
-
218
-
219
- # Access an IRB console on exception pages or by using <%= console %> in views
220
-
221
- gem 'web-console', '~> 2.0'
222
-
223
-
224
-
225
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
226
-
227
- gem 'spring'
228
-
229
- end
230
-
231
-
232
-
233
- ```
234
56
 
235
57
 
236
58
 
@@ -304,25 +126,209 @@
304
126
 
305
127
  Using execjs 2.7.0
306
128
 
307
- Using thor 0.19.1
308
-
309
- Using concurrent-ruby 1.0.2
310
-
311
- Using orm_adapter 0.5.0
312
-
313
- Using multipart-post 2.0.0
314
-
315
- Using geocoder 1.3.7
316
-
317
- Using gmaps4rails 2.1.2
318
-
319
- Using hashie 3.4.4
320
-
321
- Using multi_json 1.12.1
322
-
323
- Using jwt 1.5.1
324
-
325
- Using tilt 2.0.5
129
+ ・・・
130
+
131
+ Using multi_xml 0.5.5
132
+
133
+ Installing mysql2 0.3.21 with native extensions
134
+
135
+
136
+
137
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
138
+
139
+
140
+
141
+ current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.3.21/ext/mysql2
142
+
143
+ /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1t5zuj3.rb extconf.rb
144
+
145
+ Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1t5zuj3.rb extconf.rb 2>&1
146
+
147
+
148
+
149
+ Gem files will remain installed in /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.3.21 for inspection.
150
+
151
+ Results logged to /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/mysql2-0.3.21/gem_make.out
152
+
153
+ Using oauth 0.5.1
154
+
155
+ Using puma 2.16.0
156
+
157
+ Using bundler 1.12.1
158
+
159
+ Using ref 2.0.0
160
+
161
+ Using sass 3.4.22
162
+
163
+ Using temple 0.7.7
164
+
165
+ Installing sqlite3 1.3.11 with native extensions
166
+
167
+
168
+
169
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
170
+
171
+
172
+
173
+ current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/ext/sqlite3
174
+
175
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
176
+
177
+
178
+
179
+ current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/ext/sqlite3
180
+
181
+ /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-t6vved.rb extconf.rb
182
+
183
+ Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-t6vved.rb extconf.rb 2>&1
184
+
185
+
186
+
187
+ Gem files will remain installed in /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11 for inspection.
188
+
189
+ Results logged to /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/sqlite3-1.3.11/gem_make.out
190
+
191
+ Using i18n-active_record 0.1.0
192
+
193
+ Using rdoc 4.2.2
194
+
195
+ Using tzinfo 1.2.2
196
+
197
+ Installing nokogiri 1.6.8 with native extensions
198
+
199
+
200
+
201
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
202
+
203
+ current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.8/ext/nokogiri
204
+
205
+ /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1b5hlk5.rb extconf.rb
206
+
207
+ Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1b5hlk5.rb extconf.rb 2>&1
208
+
209
+
210
+
211
+ Gem files will remain installed in /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.8 for inspection.
212
+
213
+ Results logged to /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/nokogiri-1.6.8/gem_make.out
214
+
215
+ Using rack-test 0.6.3
216
+
217
+ Using warden 1.2.6
218
+
219
+ Using mime-types 3.1
220
+
221
+ An error occurred while installing bcrypt (3.1.11), and Bundler cannot continue.
222
+
223
+ Make sure that `gem install bcrypt -v '3.1.11'` succeeds before bundling. (Executor::NonZeroExitStatus)
224
+
225
+ [2016-07-12T00:29:27.386Z] INFO [3740] - [Application update app-882a-160712_092758@67/AppDeployStage0/AppDeployPreHook/10_bundle_install.sh] : Activity failed.
226
+
227
+
228
+
229
+ ```
230
+
231
+
232
+
233
+ 【追記】
234
+
235
+ コメント欄にあるSWAPを増やすのをやってみた結果はこちらです。
236
+
237
+
238
+
239
+ ```shell
240
+
241
+ $ eb deploy
242
+
243
+ WARNING: You have uncommitted changes.
244
+
245
+ Creating application version archive "app-1ca7-160712_215829".
246
+
247
+ Uploading vegewel/app-1ca7-160712_215829.zip to S3. This may take a while.
248
+
249
+ Upload Complete.
250
+
251
+ INFO: Environment update is starting.
252
+
253
+ INFO: Deploying new version to instance(s).
254
+
255
+ ERROR: [Instance: i-e1427b6e] Command failed on instance. Return code: 5 Output: (TRUNCATED)....3.0-static/nokogiri-1.6.8/gem_make.out
256
+
257
+ Using rack-test 0.6.3
258
+
259
+ Using warden 1.2.6
260
+
261
+ Using mime-types 3.1
262
+
263
+ An error occurred while installing bcrypt (3.1.11), and Bundler cannot continue.
264
+
265
+ Make sure that `gem install bcrypt -v '3.1.11'` succeeds before bundling.
266
+
267
+ Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
268
+
269
+ INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
270
+
271
+ ERROR: Unsuccessful command execution on instance id(s) 'i-e1427b6e'. Aborting the operation.
272
+
273
+ ERROR: Failed to deploy application.
274
+
275
+
276
+
277
+ ```
278
+
279
+
280
+
281
+ ログはこちら。
282
+
283
+
284
+
285
+ ```
286
+
287
+ -------------------------------------
288
+
289
+ /var/log/eb-activity.log
290
+
291
+ -------------------------------------
292
+
293
+ Using minitest 5.9.0
294
+
295
+ Using thread_safe 0.3.5
296
+
297
+ Using builder 3.2.2
298
+
299
+ Using erubis 2.7.0
300
+
301
+ Using mini_portile2 2.1.0
302
+
303
+ Using pkg-config 1.1.7
304
+
305
+ Using rack 1.6.4
306
+
307
+ Using mime-types-data 3.2016.0521
308
+
309
+ Using arel 6.0.3
310
+
311
+ Installing bcrypt 3.1.11 with native extensions
312
+
313
+
314
+
315
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
316
+
317
+
318
+
319
+ current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bcrypt-3.1.11/ext/mri
320
+
321
+ /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-2852-1lxs4pw.rb extconf.rb
322
+
323
+ Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-2852-1lxs4pw.rb extconf.rb 2>&1
324
+
325
+ Gem files will remain installed in /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bcrypt-ruby-3.0.1 for inspection.
326
+
327
+ Results logged to /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/bcrypt-ruby-3.0.1/gem_make.out
328
+
329
+ Using coffee-script-source 1.10.0
330
+
331
+ Using execjs 2.7.0
326
332
 
327
333
  Using libv8 3.16.14.15
328
334
 
@@ -334,13 +340,11 @@
334
340
 
335
341
  Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
336
342
 
337
-
338
-
339
- current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.3.21/ext/mysql2
343
+ current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.3.21/ext/mysql2
340
-
344
+
341
- /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1t5zuj3.rb extconf.rb
345
+ /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-2852-4yiecm.rb extconf.rb
342
-
346
+
343
- Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1t5zuj3.rb extconf.rb 2>&1
347
+ Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-2852-4yiecm.rb extconf.rb 2>&1
344
348
 
345
349
 
346
350
 
@@ -348,14 +352,6 @@
348
352
 
349
353
  Results logged to /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/mysql2-0.3.21/gem_make.out
350
354
 
351
- Using oauth 0.5.1
352
-
353
- Using puma 2.16.0
354
-
355
- Using bundler 1.12.1
356
-
357
- Using ref 2.0.0
358
-
359
355
  Using sass 3.4.22
360
356
 
361
357
  Using temple 0.7.7
@@ -366,78 +362,6 @@
366
362
 
367
363
  Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
368
364
 
369
-
370
-
371
- current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/ext/sqlite3
365
+
372
-
373
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
366
+
374
-
375
-
376
-
377
- current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/ext/sqlite3
378
-
379
- /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-t6vved.rb extconf.rb
380
-
381
- Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-t6vved.rb extconf.rb 2>&1
382
-
383
-
384
-
385
- Gem files will remain installed in /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11 for inspection.
386
-
387
- Results logged to /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/sqlite3-1.3.11/gem_make.out
388
-
389
- Using i18n-active_record 0.1.0
390
-
391
- Using rdoc 4.2.2
392
-
393
- Using tzinfo 1.2.2
394
-
395
- Installing nokogiri 1.6.8 with native extensions
396
-
397
-
398
-
399
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
400
-
401
- current directory: /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.8/ext/nokogiri
402
-
403
- /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1b5hlk5.rb extconf.rb
404
-
405
- Cannot allocate memory - /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160712-3817-1b5hlk5.rb extconf.rb 2>&1
406
-
407
-
408
-
409
- Gem files will remain installed in /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.6.8 for inspection.
410
-
411
- Results logged to /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/nokogiri-1.6.8/gem_make.out
412
-
413
- Using rack-test 0.6.3
414
-
415
- Using warden 1.2.6
416
-
417
- Using mime-types 3.1
418
-
419
- An error occurred while installing bcrypt (3.1.11), and Bundler cannot continue.
420
-
421
- Make sure that `gem install bcrypt -v '3.1.11'` succeeds before bundling. (Executor::NonZeroExitStatus)
422
-
423
- [2016-07-12T00:29:27.386Z] INFO [3740] - [Application update app-882a-160712_092758@67/AppDeployStage0/AppDeployPreHook/10_bundle_install.sh] : Activity failed.
424
-
425
- [2016-07-12T00:29:27.387Z] INFO [3740] - [Application update app-882a-160712_092758@67/AppDeployStage0/AppDeployPreHook] : Activity failed.
426
-
427
- [2016-07-12T00:29:27.387Z] INFO [3740] - [Application update app-882a-160712_092758@67/AppDeployStage0] : Activity failed.
428
-
429
- [2016-07-12T00:29:27.388Z] INFO [3740] - [Application update app-882a-160712_092758@67] : Completed activity. Result:
430
-
431
- Application update - Command CMD-AppDeploy failed
432
-
433
- [2016-07-12T00:32:02.833Z] INFO [4336] - [CMD-TailLogs] : Starting activity...
434
-
435
- [2016-07-12T00:32:02.834Z] INFO [4336] - [CMD-TailLogs/AddonsBefore] : Starting activity...
436
-
437
- [2016-07-12T00:32:02.834Z] INFO [4336] - [CMD-TailLogs/AddonsBefore] : Completed activity.
438
-
439
- [2016-07-12T00:32:02.834Z] INFO [4336] - [CMD-TailLogs/TailLogs] : Starting activity...
440
-
441
- [2016-07-12T00:32:02.834Z] INFO [4336] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
442
-
443
- ```
367
+ ```

1

エラー追記

2016/07/12 13:12

投稿

hrc
hrc

スコア55

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,50 @@
6
6
 
7
7
 
8
8
 
9
+ ちなみにエラーはこちらです。
10
+
11
+
12
+
13
+ ```
14
+
15
+ $ eb deploy
16
+
17
+ Creating application version archive "app-e203-160711_195226".
18
+
19
+ Uploading vegewel/app-e203-160711_195226.zip to S3. This may take a while.
20
+
21
+ Upload Complete.
22
+
23
+ INFO: Environment update is starting.
24
+
25
+ INFO: Environment health has transitioned from Ok to Info. Application update in progress (running for 8 seconds).
26
+
27
+ INFO: Deploying new version to instance(s).
28
+
29
+ ERROR: [Instance: i-e1427b6e] Command failed on instance. Return code: 5 Output: (TRUNCATED)...ogiri-1.6.8/gem_make.out
30
+
31
+ Installing rack-test 0.6.3
32
+
33
+ Installing warden 1.2.6
34
+
35
+ Installing mime-types 3.1
36
+
37
+ An error occurred while installing bcrypt (3.1.11), and Bundler cannot continue.
38
+
39
+ Make sure that `gem install bcrypt -v '3.1.11'` succeeds before bundling.
40
+
41
+ Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
42
+
43
+ INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
44
+
45
+ ERROR: Unsuccessful command execution on instance id(s) 'i-e1427b6e'. Aborting the operation.
46
+
47
+ ERROR: Failed to deploy application.
48
+
49
+ ```
50
+
51
+
52
+
9
53
  以下はGemfileです。その下はEBのログです。すみません。どうかよろしくお願いします。
10
54
 
11
55
 
@@ -396,6 +440,4 @@
396
440
 
397
441
  [2016-07-12T00:32:02.834Z] INFO [4336] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
398
442
 
399
-
400
-
401
443
  ```