質問編集履歴

8

ログ追記

2019/01/10 09:35

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -308,84 +308,128 @@
308
308
 
309
309
  db_1 | 2019-01-10T05:03:10.054645Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
310
310
 
311
- db_1 | 2019-01-10T05:03:10.054671Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
312
-
313
- db_1 | 2019-01-10T05:03:10.054925Z 0 [Note] InnoDB: Waiting for purge to start
314
-
315
- db_1 | 2019-01-10T05:03:10.107856Z 0 [Note] InnoDB: 5.7.24 started; log sequence number 12371170
316
-
317
- db_1 | 2019-01-10T05:03:10.108690Z 0 [Note] Plugin 'FEDERATED' is disabled.
318
-
319
- db_1 | 2019-01-10T05:03:10.110223Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
320
-
321
- db_1 | 2019-01-10T05:03:10.113372Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190110 5:03:10
322
-
323
- db_1 | 2019-01-10T05:03:10.114298Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
324
-
325
- db_1 | 2019-01-10T05:03:10.114473Z 0 [Warning] CA certificate ca.pem is self signed.
326
-
327
- db_1 | 2019-01-10T05:03:10.116684Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
328
-
329
- db_1 | 2019-01-10T05:03:10.116746Z 0 [Note] IPv6 is available.
330
-
331
- db_1 | 2019-01-10T05:03:10.116756Z 0 [Note] - '::' resolves to '::';
332
-
333
- db_1 | 2019-01-10T05:03:10.116770Z 0 [Note] Server socket created on IP: '::'.
334
-
335
- db_1 | 2019-01-10T05:03:10.120395Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
336
-
337
- db_1 | 2019-01-10T05:03:10.121685Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
338
-
339
- db_1 | 2019-01-10T05:03:10.121736Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
340
-
341
- db_1 | 2019-01-10T05:03:10.121747Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
342
-
343
- db_1 | 2019-01-10T05:03:10.121767Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
344
-
345
- db_1 | 2019-01-10T05:03:10.121773Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
346
-
347
- db_1 | 2019-01-10T05:03:10.121785Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
348
-
349
- db_1 | 2019-01-10T05:03:10.134299Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
350
-
351
- db_1 | 2019-01-10T05:03:10.134388Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
352
-
353
- db_1 | 2019-01-10T05:03:10.141648Z 0 [Note] Event Scheduler: Loaded 0 events
354
-
355
- db_1 | 2019-01-10T05:03:10.142052Z 0 [Note] mysqld: ready for connections.
356
-
357
- db_1 | Version: '5.7.24' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
358
-
359
- web_1 | Bundler::LockfileError: You must use Bundler 2 or greater with this lockfile.
360
-
361
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version'
362
-
363
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:95:in `initialize'
364
-
365
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `new'
366
-
367
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `initialize'
368
-
369
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `new'
370
-
371
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `to_definition'
372
-
373
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:12:in `evaluate'
374
-
375
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:33:in `build'
376
-
377
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:128:in `definition'
378
-
379
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:94:in `setup'
380
-
381
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/setup.rb:20:in `<top (required)>'
382
-
383
- web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
384
-
385
- web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
386
-
387
- web_1 | bundler: failed to load command: rails (/usr/local/bundle/bin/rails)
388
-
389
- web-app-sample_web_1 exited with code 1
390
-
391
- ```
311
+ ```
312
+
313
+
314
+
315
+
316
+
317
+ ##ログ6
318
+
319
+
320
+
321
+ `development.log`
322
+
323
+ ```
324
+
325
+ Started GET "/" for 172.20.0.1 at 2019-01-10 09:29:06 +0000
326
+
327
+ Cannot render console from 172.20.0.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
328
+
329
+
330
+
331
+ ActiveRecord::NoDatabaseError (Unknown database 'web-app-sample_development'):
332
+
333
+
334
+
335
+ activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:26:in `rescue in mysql2_connection'
336
+
337
+ activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:12:in `mysql2_connection'
338
+
339
+ activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:811:in `new_connection'
340
+
341
+ activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:855:in `checkout_new_connection'
342
+
343
+ activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:834:in `try_to_checkout_new_connection'
344
+
345
+ activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:795:in `acquire_connection'
346
+
347
+ activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:523:in `checkout'
348
+
349
+ activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
350
+
351
+ activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:1010:in `retrieve_connection'
352
+
353
+ activerecord (5.2.2) lib/active_record/connection_handling.rb:118:in `retrieve_connection'
354
+
355
+ activerecord (5.2.2) lib/active_record/connection_handling.rb:90:in `connection'
356
+
357
+ activerecord (5.2.2) lib/active_record/migration.rb:554:in `call'
358
+
359
+ actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
360
+
361
+ activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks'
362
+
363
+ actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
364
+
365
+ actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
366
+
367
+ actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
368
+
369
+ web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app'
370
+
371
+ web-console (3.7.0) lib/web_console/middleware.rb:22:in `block in call'
372
+
373
+ web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch'
374
+
375
+ web-console (3.7.0) lib/web_console/middleware.rb:20:in `call'
376
+
377
+ actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
378
+
379
+ railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app'
380
+
381
+ railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call'
382
+
383
+ activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged'
384
+
385
+ activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged'
386
+
387
+ activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged'
388
+
389
+ railties (5.2.2) lib/rails/rack/logger.rb:26:in `call'
390
+
391
+ sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
392
+
393
+ actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
394
+
395
+ actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call'
396
+
397
+ rack (2.0.6) lib/rack/method_override.rb:22:in `call'
398
+
399
+ rack (2.0.6) lib/rack/runtime.rb:22:in `call'
400
+
401
+ activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
402
+
403
+ actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
404
+
405
+ actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call'
406
+
407
+ rack (2.0.6) lib/rack/sendfile.rb:111:in `call'
408
+
409
+ railties (5.2.2) lib/rails/engine.rb:524:in `call'
410
+
411
+ puma (3.12.0) lib/puma/configuration.rb:225:in `call'
412
+
413
+ puma (3.12.0) lib/puma/server.rb:658:in `handle_request'
414
+
415
+ puma (3.12.0) lib/puma/server.rb:472:in `process_client'
416
+
417
+ puma (3.12.0) lib/puma/server.rb:332:in `block in run'
418
+
419
+ puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'
420
+
421
+ ```
422
+
423
+
424
+
425
+ `docker-compose run web rake db:create`の実行結果
426
+
427
+ ```
428
+
429
+ $ docker-compose run web rake db:create
430
+
431
+ Starting web-app-sample_db_1 ... done
432
+
433
+ You must use Bundler 2 or greater with this lockfile.
434
+
435
+ ```

7

ログ追加

2019/01/10 09:35

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -58,27 +58,11 @@
58
58
 
59
59
  db_1 | 2019-01-07T14:57:34.589678Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
60
60
 
61
- db_1 | 2019-01-07T14:57:34.592606Z 0 [Note] mysqld (mysqld 5.7.24) starting as process 1 ...
62
-
63
- db_1 | 2019-01-07T14:57:34.598069Z 0 [Note] InnoDB: PUNCH HOLE support available
64
-
65
- db_1 | 2019-01-07T14:57:34.598137Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
66
-
67
- db_1 | 2019-01-07T14:57:34.598146Z 0 [Note] InnoDB: Uses event mutexes
61
+
68
-
69
- db_1 | 2019-01-07T14:57:34.598162Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
62
+
70
-
71
- db_1 | 2019-01-07T14:57:34.598169Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
72
-
73
- db_1 | 2019-01-07T14:57:34.598176Z 0 [Note] InnoDB: Using Linux native AIO
74
-
75
- db_1 | 2019-01-07T14:57:34.598605Z 0 [Note] InnoDB: Number of pools: 1
63
+
76
-
64
+
77
- db_1 | 2019-01-07T14:57:34.599635Z 0 [Note] InnoDB: Using CPU crc32 instructions
65
+
78
-
79
- db_1 | 2019-01-07T14:57:34.605949Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
80
-
81
- db_1 | 2019-01-07T14:57:34.657069Z 0 [Note] InnoDB: Completed initialization of buffer pool
82
66
 
83
67
  ```
84
68
 
@@ -224,6 +208,162 @@
224
208
 
225
209
  web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `new'
226
210
 
211
+
212
+
213
+
214
+
215
+
216
+
217
+ ```
218
+
219
+
220
+
221
+
222
+
223
+ ##ログ4
224
+
225
+
226
+
227
+ `Dockerfile`
228
+
229
+ ```
230
+
231
+ FROM ruby:2.4.0
232
+
233
+ ENV LANG C.UTF-8
234
+
235
+ RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
236
+
237
+ RUN gem install bundler
238
+
239
+ WORKDIR /tmp
240
+
241
+ ADD Gemfile Gemfile
242
+
243
+ ADD Gemfile.lock Gemfile.lock
244
+
245
+ RUN bundle install
246
+
247
+ ENV APP_HOME /web-app-sample
248
+
249
+ RUN mkdir -p $APP_HOME
250
+
251
+ WORKDIR $APP_HOME
252
+
253
+ ADD . $APP_HOME
254
+
255
+ ```
256
+
257
+
258
+
259
+ ##ログ5
260
+
261
+
262
+
263
+ `docker-compose up`
264
+
265
+ ```
266
+
267
+ <master>tto8569:web-app-sample$ docker-compose up
268
+
269
+ Starting web-app-sample_db_1 ... done
270
+
271
+ Starting web-app-sample_web_1 ... done
272
+
273
+ Attaching to web-app-sample_db_1, web-app-sample_web_1
274
+
275
+ db_1 | 2019-01-10T05:03:09.992503Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
276
+
277
+ db_1 | 2019-01-10T05:03:09.993695Z 0 [Note] mysqld (mysqld 5.7.24) starting as process 1 ...
278
+
279
+ db_1 | 2019-01-10T05:03:09.996189Z 0 [Note] InnoDB: PUNCH HOLE support available
280
+
281
+ db_1 | 2019-01-10T05:03:09.996224Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
282
+
283
+ db_1 | 2019-01-10T05:03:09.996231Z 0 [Note] InnoDB: Uses event mutexes
284
+
285
+ db_1 | 2019-01-10T05:03:09.996237Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
286
+
287
+ db_1 | 2019-01-10T05:03:09.996242Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
288
+
289
+ db_1 | 2019-01-10T05:03:09.996247Z 0 [Note] InnoDB: Using Linux native AIO
290
+
291
+ db_1 | 2019-01-10T05:03:09.996431Z 0 [Note] InnoDB: Number of pools: 1
292
+
293
+ db_1 | 2019-01-10T05:03:09.996511Z 0 [Note] InnoDB: Using CPU crc32 instructions
294
+
295
+ db_1 | 2019-01-10T05:03:09.997929Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
296
+
297
+ db_1 | 2019-01-10T05:03:10.005073Z 0 [Note] InnoDB: Completed initialization of buffer pool
298
+
299
+ db_1 | 2019-01-10T05:03:10.006796Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
300
+
301
+ db_1 | 2019-01-10T05:03:10.018033Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
302
+
303
+ db_1 | 2019-01-10T05:03:10.028264Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
304
+
305
+ db_1 | 2019-01-10T05:03:10.028329Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
306
+
307
+ db_1 | 2019-01-10T05:03:10.053855Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
308
+
309
+ db_1 | 2019-01-10T05:03:10.054645Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
310
+
311
+ db_1 | 2019-01-10T05:03:10.054671Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
312
+
313
+ db_1 | 2019-01-10T05:03:10.054925Z 0 [Note] InnoDB: Waiting for purge to start
314
+
315
+ db_1 | 2019-01-10T05:03:10.107856Z 0 [Note] InnoDB: 5.7.24 started; log sequence number 12371170
316
+
317
+ db_1 | 2019-01-10T05:03:10.108690Z 0 [Note] Plugin 'FEDERATED' is disabled.
318
+
319
+ db_1 | 2019-01-10T05:03:10.110223Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
320
+
321
+ db_1 | 2019-01-10T05:03:10.113372Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190110 5:03:10
322
+
323
+ db_1 | 2019-01-10T05:03:10.114298Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
324
+
325
+ db_1 | 2019-01-10T05:03:10.114473Z 0 [Warning] CA certificate ca.pem is self signed.
326
+
327
+ db_1 | 2019-01-10T05:03:10.116684Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
328
+
329
+ db_1 | 2019-01-10T05:03:10.116746Z 0 [Note] IPv6 is available.
330
+
331
+ db_1 | 2019-01-10T05:03:10.116756Z 0 [Note] - '::' resolves to '::';
332
+
333
+ db_1 | 2019-01-10T05:03:10.116770Z 0 [Note] Server socket created on IP: '::'.
334
+
335
+ db_1 | 2019-01-10T05:03:10.120395Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
336
+
337
+ db_1 | 2019-01-10T05:03:10.121685Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
338
+
339
+ db_1 | 2019-01-10T05:03:10.121736Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
340
+
341
+ db_1 | 2019-01-10T05:03:10.121747Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
342
+
343
+ db_1 | 2019-01-10T05:03:10.121767Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
344
+
345
+ db_1 | 2019-01-10T05:03:10.121773Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
346
+
347
+ db_1 | 2019-01-10T05:03:10.121785Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
348
+
349
+ db_1 | 2019-01-10T05:03:10.134299Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
350
+
351
+ db_1 | 2019-01-10T05:03:10.134388Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
352
+
353
+ db_1 | 2019-01-10T05:03:10.141648Z 0 [Note] Event Scheduler: Loaded 0 events
354
+
355
+ db_1 | 2019-01-10T05:03:10.142052Z 0 [Note] mysqld: ready for connections.
356
+
357
+ db_1 | Version: '5.7.24' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
358
+
359
+ web_1 | Bundler::LockfileError: You must use Bundler 2 or greater with this lockfile.
360
+
361
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version'
362
+
363
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:95:in `initialize'
364
+
365
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `new'
366
+
227
367
  web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `initialize'
228
368
 
229
369
  web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `new'
@@ -232,48 +372,20 @@
232
372
 
233
373
  web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:12:in `evaluate'
234
374
 
375
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:33:in `build'
376
+
377
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:128:in `definition'
378
+
379
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:94:in `setup'
380
+
381
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/setup.rb:20:in `<top (required)>'
382
+
383
+ web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
384
+
385
+ web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
386
+
387
+ web_1 | bundler: failed to load command: rails (/usr/local/bundle/bin/rails)
388
+
235
-
389
+ web-app-sample_web_1 exited with code 1
236
-
237
-
390
+
238
-
239
-
240
-
241
- ```
391
+ ```
242
-
243
-
244
-
245
-
246
-
247
- ##ログ4
248
-
249
-
250
-
251
- `Dockerfile`
252
-
253
- ```
254
-
255
- FROM ruby:2.4.0
256
-
257
- ENV LANG C.UTF-8
258
-
259
- RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
260
-
261
- RUN gem install bundler
262
-
263
- WORKDIR /tmp
264
-
265
- ADD Gemfile Gemfile
266
-
267
- ADD Gemfile.lock Gemfile.lock
268
-
269
- RUN bundle install
270
-
271
- ENV APP_HOME /web-app-sample
272
-
273
- RUN mkdir -p $APP_HOME
274
-
275
- WORKDIR $APP_HOME
276
-
277
- ADD . $APP_HOME
278
-
279
- ```

6

ログ追記

2019/01/10 05:04

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -80,66 +80,6 @@
80
80
 
81
81
  db_1 | 2019-01-07T14:57:34.657069Z 0 [Note] InnoDB: Completed initialization of buffer pool
82
82
 
83
- db_1 | 2019-01-07T14:57:34.671108Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
84
-
85
- db_1 | 2019-01-07T14:57:34.696849Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
86
-
87
- db_1 | 2019-01-07T14:57:34.717479Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
88
-
89
- db_1 | 2019-01-07T14:57:34.717555Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
90
-
91
- db_1 | 2019-01-07T14:57:34.765548Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
92
-
93
- db_1 | 2019-01-07T14:57:34.766631Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
94
-
95
- db_1 | 2019-01-07T14:57:34.766662Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
96
-
97
- db_1 | 2019-01-07T14:57:34.767347Z 0 [Note] InnoDB: Waiting for purge to start
98
-
99
- db_1 | 2019-01-07T14:57:34.820153Z 0 [Note] InnoDB: 5.7.24 started; log sequence number 12370772
100
-
101
- db_1 | 2019-01-07T14:57:34.820879Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
102
-
103
- db_1 | 2019-01-07T14:57:34.821139Z 0 [Note] Plugin 'FEDERATED' is disabled.
104
-
105
- db_1 | 2019-01-07T14:57:34.826607Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190107 14:57:34
106
-
107
- db_1 | 2019-01-07T14:57:34.830860Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
108
-
109
- db_1 | 2019-01-07T14:57:34.831714Z 0 [Warning] CA certificate ca.pem is self signed.
110
-
111
- db_1 | 2019-01-07T14:57:34.839230Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
112
-
113
- db_1 | 2019-01-07T14:57:34.839486Z 0 [Note] IPv6 is available.
114
-
115
- db_1 | 2019-01-07T14:57:34.839578Z 0 [Note] - '::' resolves to '::';
116
-
117
- db_1 | 2019-01-07T14:57:34.839617Z 0 [Note] Server socket created on IP: '::'.
118
-
119
- db_1 | 2019-01-07T14:57:34.842645Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
120
-
121
- db_1 | 2019-01-07T14:57:34.844373Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
122
-
123
- db_1 | 2019-01-07T14:57:34.844449Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
124
-
125
- db_1 | 2019-01-07T14:57:34.844638Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
126
-
127
- db_1 | 2019-01-07T14:57:34.844822Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
128
-
129
- db_1 | 2019-01-07T14:57:34.844833Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
130
-
131
- db_1 | 2019-01-07T14:57:34.844975Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
132
-
133
- db_1 | 2019-01-07T14:57:34.847792Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
134
-
135
- db_1 | 2019-01-07T14:57:34.847818Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
136
-
137
- db_1 | 2019-01-07T14:57:34.859163Z 0 [Note] Event Scheduler: Loaded 0 events
138
-
139
- db_1 | 2019-01-07T14:57:34.859526Z 0 [Note] mysqld: ready for connections.
140
-
141
- db_1 | Version: '5.7.24' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
142
-
143
83
  ```
144
84
 
145
85
 
@@ -292,50 +232,48 @@
292
232
 
293
233
  web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:12:in `evaluate'
294
234
 
295
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:33:in `build'
296
-
297
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:128:in `definition'
298
-
299
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:94:in `setup'
300
-
301
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/setup.rb:20:in `<top (required)>'
302
-
303
- web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
304
-
305
- web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
306
-
307
- web-app-sample_web_1 exited with code 1
235
+
308
-
309
- web_1 | bundler: failed to load command: rails (/usr/local/bundle/bin/rails)
236
+
310
-
311
- web_1 | Bundler::LockfileError: You must use Bundler 2 or greater with this lockfile.
312
-
313
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version'
314
-
315
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:95:in `initialize'
316
-
317
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `new'
318
-
319
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `initialize'
320
-
321
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `new'
322
-
323
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `to_definition'
324
-
325
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:12:in `evaluate'
326
-
327
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:33:in `build'
328
-
329
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:128:in `definition'
330
-
331
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:94:in `setup'
332
-
333
- web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/setup.rb:20:in `<top (required)>'
334
-
335
- web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
336
-
337
- web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
338
-
339
- web-app-sample_web_1 exited with code 1
237
+
238
+
340
-
239
+
240
+
341
- ```
241
+ ```
242
+
243
+
244
+
245
+
246
+
247
+ ##ログ4
248
+
249
+
250
+
251
+ `Dockerfile`
252
+
253
+ ```
254
+
255
+ FROM ruby:2.4.0
256
+
257
+ ENV LANG C.UTF-8
258
+
259
+ RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
260
+
261
+ RUN gem install bundler
262
+
263
+ WORKDIR /tmp
264
+
265
+ ADD Gemfile Gemfile
266
+
267
+ ADD Gemfile.lock Gemfile.lock
268
+
269
+ RUN bundle install
270
+
271
+ ENV APP_HOME /web-app-sample
272
+
273
+ RUN mkdir -p $APP_HOME
274
+
275
+ WORKDIR $APP_HOME
276
+
277
+ ADD . $APP_HOME
278
+
279
+ ```

5

タイトル修正

2019/01/09 23:54

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -262,6 +262,8 @@
262
262
 
263
263
  `ログ1`のNginxのimageを記載して、再度`docker-compose exec web /bin/bash`を実行したら入れた。
264
264
 
265
+ 入れたがNginxが起動しているのと、Nginxの初期画面が表示されているので、errorログは出ず、論点からもずれ
266
+
265
267
 
266
268
 
267
269
  ##ログ3

4

ログ追加

2019/01/08 15:40

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -261,3 +261,79 @@
261
261
  なぜか*web*の方が起動しない。理由不明。*/bin/bash*に入れないので、Logも確認できず。
262
262
 
263
263
  `ログ1`のNginxのimageを記載して、再度`docker-compose exec web /bin/bash`を実行したら入れた。
264
+
265
+
266
+
267
+ ##ログ3
268
+
269
+
270
+
271
+ `docker-compose up`実行後の*web*の状態
272
+
273
+ ```
274
+
275
+ web_1 | bundler: failed to load command: rails (/usr/local/bundle/bin/rails)
276
+
277
+ web_1 | Bundler::LockfileError: You must use Bundler 2 or greater with this lockfile.
278
+
279
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version'
280
+
281
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:95:in `initialize'
282
+
283
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `new'
284
+
285
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `initialize'
286
+
287
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `new'
288
+
289
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `to_definition'
290
+
291
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:12:in `evaluate'
292
+
293
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:33:in `build'
294
+
295
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:128:in `definition'
296
+
297
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:94:in `setup'
298
+
299
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/setup.rb:20:in `<top (required)>'
300
+
301
+ web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
302
+
303
+ web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
304
+
305
+ web-app-sample_web_1 exited with code 1
306
+
307
+ web_1 | bundler: failed to load command: rails (/usr/local/bundle/bin/rails)
308
+
309
+ web_1 | Bundler::LockfileError: You must use Bundler 2 or greater with this lockfile.
310
+
311
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version'
312
+
313
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/lockfile_parser.rb:95:in `initialize'
314
+
315
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `new'
316
+
317
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:72:in `initialize'
318
+
319
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `new'
320
+
321
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:200:in `to_definition'
322
+
323
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/dsl.rb:12:in `evaluate'
324
+
325
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/definition.rb:33:in `build'
326
+
327
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:128:in `definition'
328
+
329
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:94:in `setup'
330
+
331
+ web_1 | /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/setup.rb:20:in `<top (required)>'
332
+
333
+ web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
334
+
335
+ web_1 | /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
336
+
337
+ web-app-sample_web_1 exited with code 1
338
+
339
+ ```

3

ログ追記

2019/01/08 15:27

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -213,3 +213,51 @@
213
213
  - 3000:80
214
214
 
215
215
  ```
216
+
217
+
218
+
219
+ ##ログ2
220
+
221
+ `docker-compose.yml`のソースコードが
222
+
223
+ ```ruby
224
+
225
+ version: '2'
226
+
227
+ services:
228
+
229
+ db:
230
+
231
+ image: mysql:5.7
232
+
233
+ environment:
234
+
235
+ - MYSQL_ROOT_PASSWORD=password
236
+
237
+ web:
238
+
239
+ build: .
240
+
241
+ command: bundle exec rails s -p 3000 -b '0.0.0.0'
242
+
243
+ volumes:
244
+
245
+ - .:/web-app-sample
246
+
247
+ ports:
248
+
249
+ - "3000:3000"
250
+
251
+ depends_on:
252
+
253
+ - db
254
+
255
+ ```
256
+
257
+ の状態で`docker-compose exec web /bin/bash`を実行したら`ERROR: No container found for web_1`というエラーが発生。
258
+
259
+ `docker ps`で起動中のコンテナを確認したら、*mysql*のみ
260
+
261
+ なぜか*web*の方が起動しない。理由不明。*/bin/bash*に入れないので、Logも確認できず。
262
+
263
+ `ログ1`のNginxのimageを記載して、再度`docker-compose exec web /bin/bash`を実行したら入れた。

2

ログ追記

2019/01/08 14:49

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -172,7 +172,7 @@
172
172
 
173
173
  `docker-compose.yml`
174
174
 
175
- ```
175
+ ```ruby
176
176
 
177
177
  version: '3'
178
178
 

1

ログ追記

2019/01/08 14:35

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -163,3 +163,53 @@
163
163
 
164
164
 
165
165
  よろしくお願い致します。
166
+
167
+
168
+
169
+
170
+
171
+ ##ログ1
172
+
173
+ `docker-compose.yml`
174
+
175
+ ```
176
+
177
+ version: '3'
178
+
179
+ services:
180
+
181
+ db:
182
+
183
+ image: mysql:5.7
184
+
185
+ environment:
186
+
187
+ - MYSQL_ROOT_PASSWORD=password
188
+
189
+ web:
190
+
191
+ build: .
192
+
193
+ command: bundle exec rails s -p 3000 -b '0.0.0.0'
194
+
195
+ volumes:
196
+
197
+ - .:/web-app-sample
198
+
199
+ ports:
200
+
201
+ - "3000:3000"
202
+
203
+ depends_on:
204
+
205
+ - db
206
+
207
+ web:
208
+
209
+ image: nginx:latest
210
+
211
+ ports:
212
+
213
+ - 3000:80
214
+
215
+ ```