質問編集履歴
2
追伸追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -497,3 +497,31 @@
|
|
497
497
|
|
498
498
|
|
499
499
|
恐縮ですがよろしくお願い申し上げます。
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
追伸 20200-02-07
|
504
|
+
|
505
|
+
----
|
506
|
+
|
507
|
+
以下を試しました
|
508
|
+
|
509
|
+
```
|
510
|
+
|
511
|
+
systemctl stop firewalld
|
512
|
+
|
513
|
+
systemctl restart docker
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
```
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
通信ができましたが、firewallの何が悪いのかまだ謎です。。。
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
こちらも参考としてリンクを張っておきます。
|
526
|
+
|
527
|
+
https://github.com/moby/moby/issues/32138
|
1
redmineのdcker-compose.ymlがいろいろ試した後のものになっていたので修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,11 +28,9 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
> ```
|
32
|
-
|
33
31
|
> docker-compose -v
|
34
32
|
|
35
|
-
|
33
|
+
|
36
34
|
|
37
35
|
|
38
36
|
|
@@ -102,356 +100,348 @@
|
|
102
100
|
|
103
101
|
- MARIADB_DATABASE=bitnami_redmine
|
104
102
|
|
103
|
+
volumes:
|
104
|
+
|
105
|
+
- 'mariadb_data:/bitnami'
|
106
|
+
|
107
|
+
redmine:
|
108
|
+
|
109
|
+
image: 'bitnami/redmine:latest'
|
110
|
+
|
111
|
+
environment:
|
112
|
+
|
113
|
+
- REDMINE_DB_USERNAME=bn_redmine
|
114
|
+
|
115
|
+
- REDMINE_DB_NAME=bitnami_redmine
|
116
|
+
|
105
117
|
ports:
|
106
118
|
|
119
|
+
- '80:3000'
|
120
|
+
|
121
|
+
volumes:
|
122
|
+
|
123
|
+
- 'redmine_data:/bitnami'
|
124
|
+
|
125
|
+
depends_on:
|
126
|
+
|
127
|
+
- mariadb
|
128
|
+
|
129
|
+
volumes:
|
130
|
+
|
131
|
+
mariadb_data:
|
132
|
+
|
133
|
+
driver: local
|
134
|
+
|
135
|
+
redmine_data:
|
136
|
+
|
137
|
+
driver: local
|
138
|
+
|
139
|
+
```
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
確認後に以下のコマンドで、コンテナを立ち上げました。
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
```
|
148
|
+
|
149
|
+
docker-compose up -d
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
コンテナを立ち上げてしばらく待ち、以下のコマンドでログを確認しました。
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
```
|
160
|
+
|
161
|
+
docker-compose logs
|
162
|
+
|
163
|
+
```
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
確認したところ、"redmine"側でエラーが発生しており、
|
168
|
+
|
169
|
+
"Error executing 'postInstallation': Failed to connect to mariadb:3306 after 36 tries"
|
170
|
+
|
171
|
+
との記述がありました。(以下エラーログ)
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
```
|
176
|
+
|
177
|
+
mariadb_1 | mariadb 05:22:19.39
|
178
|
+
|
179
|
+
mariadb_1 | mariadb 05:22:19.40 Welcome to the Bitnami mariadb container
|
180
|
+
|
181
|
+
mariadb_1 | mariadb 05:22:19.40 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mariadb
|
182
|
+
|
183
|
+
mariadb_1 | mariadb 05:22:19.40 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mariadb/issues
|
184
|
+
|
185
|
+
mariadb_1 | mariadb 05:22:19.40 Send us your feedback at containers@bitnami.com
|
186
|
+
|
187
|
+
mariadb_1 | mariadb 05:22:19.40
|
188
|
+
|
189
|
+
mariadb_1 | mariadb 05:22:19.40 INFO ==> ** Starting MariaDB setup **
|
190
|
+
|
191
|
+
mariadb_1 | mariadb 05:22:19.44 INFO ==> Validating settings in MYSQL_*/MARIADB_* env vars
|
192
|
+
|
193
|
+
mariadb_1 | mariadb 05:22:19.44 WARN ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
|
194
|
+
|
195
|
+
mariadb_1 | mariadb 05:22:19.48 INFO ==> Initializing mariadb database
|
196
|
+
|
197
|
+
mariadb_1 | mariadb 05:22:19.51 INFO ==> Installing database
|
198
|
+
|
199
|
+
redmine_1 |
|
200
|
+
|
201
|
+
redmine_1 | Welcome to the Bitnami redmine container
|
202
|
+
|
203
|
+
redmine_1 | Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redmine
|
204
|
+
|
205
|
+
redmine_1 | Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redmine/issues
|
206
|
+
|
207
|
+
redmine_1 | Send us your feedback at containers@bitnami.com
|
208
|
+
|
209
|
+
redmine_1 |
|
210
|
+
|
211
|
+
mariadb_1 | mariadb 05:22:23.05 INFO ==> Starting mariadb in background
|
212
|
+
|
213
|
+
redmine_1 | nami INFO Initializing redmine
|
214
|
+
|
215
|
+
redmine_1 | redmine INFO Configuring Redmine database...
|
216
|
+
|
217
|
+
redmine_1 | mysql-c INFO Trying to connect to MySQL server
|
218
|
+
|
219
|
+
mariadb_1 | mariadb 05:22:24.12 INFO ==> Configuring authentication
|
220
|
+
|
221
|
+
mariadb_1 | mariadb 05:22:24.17 INFO ==> Running mysql_upgrade
|
222
|
+
|
223
|
+
mariadb_1 | mariadb 05:22:24.35 INFO ==> Stopping mariadb
|
224
|
+
|
225
|
+
mariadb_1 | mariadb 05:22:26.38 INFO ==> ** MariaDB setup finished! **
|
226
|
+
|
227
|
+
mariadb_1 |
|
228
|
+
|
229
|
+
mariadb_1 | mariadb 05:22:26.42 INFO ==> ** Starting MariaDB **
|
230
|
+
|
231
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (mysqld 10.3.22-MariaDB) starting as process 1 ...
|
232
|
+
|
233
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Using Linux native AIO
|
234
|
+
|
235
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
|
236
|
+
|
237
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Uses event mutexes
|
238
|
+
|
239
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
|
240
|
+
|
241
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Number of pools: 1
|
242
|
+
|
243
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Using SSE2 crc32 instructions
|
244
|
+
|
245
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
|
246
|
+
|
247
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Completed initialization of buffer pool
|
248
|
+
|
249
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
|
250
|
+
|
251
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
|
252
|
+
|
253
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Creating shared tablespace for temporary tables
|
254
|
+
|
255
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
|
256
|
+
|
257
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
|
258
|
+
|
259
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Waiting for purge to start
|
260
|
+
|
261
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: 10.3.22 started; log sequence number 1625457; transaction id 21
|
262
|
+
|
263
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
|
264
|
+
|
265
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Plugin 'FEEDBACK' is disabled.
|
266
|
+
|
267
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Buffer pool(s) load completed at 200206 5:22:26
|
268
|
+
|
269
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Server socket created on IP: '0.0.0.0'.
|
270
|
+
|
271
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Warning] 'proxies_priv' entry '@% root@1643f97fe62c' ignored in --skip-name-resolve mode.
|
272
|
+
|
273
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Reading of all Master_info entries succeeded
|
274
|
+
|
275
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Added new Master_info '' to hash table
|
276
|
+
|
277
|
+
mariadb_1 | 2020-02-06 5:22:26 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
|
278
|
+
|
279
|
+
mariadb_1 | Version: '10.3.22-MariaDB' socket: '/opt/bitnami/mariadb/tmp/mysql.sock' port: 3306 Source distribution
|
280
|
+
|
281
|
+
redmine_1 | Error executing 'postInstallation': Failed to connect to mariadb:3306 after 36 tries
|
282
|
+
|
283
|
+
redmine_redmine_1 exited with code 1
|
284
|
+
|
285
|
+
```
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
このエラーからデータベース側に問題があると考え、データベースのコンテナにアクセスしました。
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
アクセスしたところ、ログイン及びデータベースの参照など問題なく行えたため、データベースに不具合がないことを確認(以下のコマンドが実行結果です)
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
```
|
298
|
+
|
299
|
+
docker exec -it <mariadb's ID> /bin/bash
|
300
|
+
|
301
|
+
--------------------------------------------------------------------------------
|
302
|
+
|
303
|
+
I have no name!@c97be876fcf9:/$ mysql -u root -p
|
304
|
+
|
305
|
+
Enter password:
|
306
|
+
|
307
|
+
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
308
|
+
|
309
|
+
Your MariaDB connection id is 9
|
310
|
+
|
311
|
+
Server version: 10.3.22-MariaDB Source distribution
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
MariaDB [(none)]> show databases;
|
324
|
+
|
325
|
+
+--------------------+
|
326
|
+
|
327
|
+
| Database |
|
328
|
+
|
329
|
+
+--------------------+
|
330
|
+
|
331
|
+
| bitnami_redmine |
|
332
|
+
|
333
|
+
| information_schema |
|
334
|
+
|
335
|
+
| mysql |
|
336
|
+
|
337
|
+
| performance_schema |
|
338
|
+
|
339
|
+
| test |
|
340
|
+
|
341
|
+
+--------------------+
|
342
|
+
|
343
|
+
5 rows in set (0.001 sec)
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
MariaDB [(none)]>
|
348
|
+
|
349
|
+
```
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
そこで"docker-compose.yml"のファイルの記述に問題があると考え、外部向けにポートを開放する記述をmariadbコンテナに記述してみましたが、うまく動きません。
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
```
|
362
|
+
|
363
|
+
ports:
|
364
|
+
|
107
365
|
- '3306:3306'
|
108
366
|
|
367
|
+
|
368
|
+
|
369
|
+
```
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
原因がredmineにあるのかdockerそのものにあるのか不明なため別の"docker-compose.yml"を作成しました。(以下の手順で作成)
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
```
|
386
|
+
|
387
|
+
docker-compose down -v
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
rm -rf docker-compose.yml
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
vi docker-compose.yml
|
396
|
+
|
397
|
+
```
|
398
|
+
|
399
|
+
|
400
|
+
|
109
|
-
|
401
|
+
以下を記述しました。
|
402
|
+
|
403
|
+
|
404
|
+
|
110
|
-
|
405
|
+
```
|
406
|
+
|
111
|
-
|
407
|
+
version: '3.1'
|
112
|
-
|
408
|
+
|
409
|
+
|
410
|
+
|
113
|
-
|
411
|
+
services:
|
412
|
+
|
413
|
+
|
414
|
+
|
114
|
-
|
415
|
+
wordpress:
|
416
|
+
|
115
|
-
image:
|
417
|
+
image: wordpress
|
418
|
+
|
419
|
+
restart: always
|
420
|
+
|
421
|
+
ports:
|
422
|
+
|
423
|
+
- 8080:80
|
116
424
|
|
117
425
|
environment:
|
118
426
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
- 'redmine_data:/bitnami'
|
134
|
-
|
135
|
-
depends_on:
|
136
|
-
|
137
|
-
- mariadb
|
138
|
-
|
139
|
-
volumes:
|
140
|
-
|
141
|
-
mariadb_data:
|
142
|
-
|
143
|
-
driver: local
|
144
|
-
|
145
|
-
redmine_data:
|
146
|
-
|
147
|
-
driver: local
|
148
|
-
|
149
|
-
```
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
確認後に以下のコマンドで、コンテナを立ち上げました。
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
```
|
158
|
-
|
159
|
-
docker-compose up -d
|
160
|
-
|
161
|
-
```
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
コンテナを立ち上げてしばらく待ち、以下のコマンドでログを確認しました。
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
```
|
170
|
-
|
171
|
-
docker-compose logs
|
172
|
-
|
173
|
-
```
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
確認したところ、"redmine"側でエラーが発生しており、
|
178
|
-
|
179
|
-
"Error executing 'postInstallation': Failed to connect to mariadb:3306 after 36 tries"
|
180
|
-
|
181
|
-
との記述がありました。(以下エラーログ)
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
```
|
186
|
-
|
187
|
-
mariadb_1 | mariadb 05:22:19.39
|
188
|
-
|
189
|
-
mariadb_1 | mariadb 05:22:19.40 Welcome to the Bitnami mariadb container
|
190
|
-
|
191
|
-
mariadb_1 | mariadb 05:22:19.40 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mariadb
|
192
|
-
|
193
|
-
mariadb_1 | mariadb 05:22:19.40 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mariadb/issues
|
194
|
-
|
195
|
-
mariadb_1 | mariadb 05:22:19.40 Send us your feedback at containers@bitnami.com
|
196
|
-
|
197
|
-
mariadb_1 | mariadb 05:22:19.40
|
198
|
-
|
199
|
-
mariadb_1 | mariadb 05:22:19.40 INFO ==> ** Starting MariaDB setup **
|
200
|
-
|
201
|
-
mariadb_1 | mariadb 05:22:19.44 INFO ==> Validating settings in MYSQL_*/MARIADB_* env vars
|
202
|
-
|
203
|
-
mariadb_1 | mariadb 05:22:19.44 WARN ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
|
204
|
-
|
205
|
-
mariadb_1 | mariadb 05:22:19.48 INFO ==> Initializing mariadb database
|
206
|
-
|
207
|
-
mariadb_1 | mariadb 05:22:19.51 INFO ==> Installing database
|
208
|
-
|
209
|
-
redmine_1 |
|
210
|
-
|
211
|
-
redmine_1 | Welcome to the Bitnami redmine container
|
212
|
-
|
213
|
-
redmine_1 | Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redmine
|
214
|
-
|
215
|
-
redmine_1 | Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redmine/issues
|
216
|
-
|
217
|
-
redmine_1 | Send us your feedback at containers@bitnami.com
|
218
|
-
|
219
|
-
redmine_1 |
|
220
|
-
|
221
|
-
mariadb_1 | mariadb 05:22:23.05 INFO ==> Starting mariadb in background
|
222
|
-
|
223
|
-
redmine_1 | nami INFO Initializing redmine
|
224
|
-
|
225
|
-
redmine_1 | redmine INFO Configuring Redmine database...
|
226
|
-
|
227
|
-
redmine_1 | mysql-c INFO Trying to connect to MySQL server
|
228
|
-
|
229
|
-
mariadb_1 | mariadb 05:22:24.12 INFO ==> Configuring authentication
|
230
|
-
|
231
|
-
mariadb_1 | mariadb 05:22:24.17 INFO ==> Running mysql_upgrade
|
232
|
-
|
233
|
-
mariadb_1 | mariadb 05:22:24.35 INFO ==> Stopping mariadb
|
234
|
-
|
235
|
-
mariadb_1 | mariadb 05:22:26.38 INFO ==> ** MariaDB setup finished! **
|
236
|
-
|
237
|
-
mariadb_1 |
|
238
|
-
|
239
|
-
mariadb_1 | mariadb 05:22:26.42 INFO ==> ** Starting MariaDB **
|
240
|
-
|
241
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (mysqld 10.3.22-MariaDB) starting as process 1 ...
|
242
|
-
|
243
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Using Linux native AIO
|
244
|
-
|
245
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
|
246
|
-
|
247
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Uses event mutexes
|
248
|
-
|
249
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
|
250
|
-
|
251
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Number of pools: 1
|
252
|
-
|
253
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Using SSE2 crc32 instructions
|
254
|
-
|
255
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
|
256
|
-
|
257
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Completed initialization of buffer pool
|
258
|
-
|
259
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
|
260
|
-
|
261
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
|
262
|
-
|
263
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Creating shared tablespace for temporary tables
|
264
|
-
|
265
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
|
266
|
-
|
267
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
|
268
|
-
|
269
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Waiting for purge to start
|
270
|
-
|
271
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: 10.3.22 started; log sequence number 1625457; transaction id 21
|
272
|
-
|
273
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
|
274
|
-
|
275
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Plugin 'FEEDBACK' is disabled.
|
276
|
-
|
277
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] InnoDB: Buffer pool(s) load completed at 200206 5:22:26
|
278
|
-
|
279
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Server socket created on IP: '0.0.0.0'.
|
280
|
-
|
281
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Warning] 'proxies_priv' entry '@% root@1643f97fe62c' ignored in --skip-name-resolve mode.
|
282
|
-
|
283
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Reading of all Master_info entries succeeded
|
284
|
-
|
285
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] Added new Master_info '' to hash table
|
286
|
-
|
287
|
-
mariadb_1 | 2020-02-06 5:22:26 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
|
288
|
-
|
289
|
-
mariadb_1 | Version: '10.3.22-MariaDB' socket: '/opt/bitnami/mariadb/tmp/mysql.sock' port: 3306 Source distribution
|
290
|
-
|
291
|
-
redmine_1 | Error executing 'postInstallation': Failed to connect to mariadb:3306 after 36 tries
|
292
|
-
|
293
|
-
redmine_redmine_1 exited with code 1
|
294
|
-
|
295
|
-
```
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
このエラーからデータベース側に問題があると考え、データベースのコンテナにアクセスしました。
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
アクセスしたところ、ログイン及びデータベースの参照など問題なく行えたため、データベースに不具合がないことを確認(以下のコマンドが実行結果です)
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
```
|
308
|
-
|
309
|
-
docker exec -it <mariadb's ID> /bin/bash
|
310
|
-
|
311
|
-
--------------------------------------------------------------------------------
|
312
|
-
|
313
|
-
I have no name!@c97be876fcf9:/$ mysql -u root -p
|
314
|
-
|
315
|
-
Enter password:
|
316
|
-
|
317
|
-
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
318
|
-
|
319
|
-
Your MariaDB connection id is 9
|
320
|
-
|
321
|
-
Server version: 10.3.22-MariaDB Source distribution
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
MariaDB [(none)]> show databases;
|
334
|
-
|
335
|
-
+--------------------+
|
336
|
-
|
337
|
-
| Database |
|
338
|
-
|
339
|
-
+--------------------+
|
340
|
-
|
341
|
-
| bitnami_redmine |
|
342
|
-
|
343
|
-
| information_schema |
|
344
|
-
|
345
|
-
| mysql |
|
346
|
-
|
347
|
-
| performance_schema |
|
348
|
-
|
349
|
-
| test |
|
350
|
-
|
351
|
-
+--------------------+
|
352
|
-
|
353
|
-
5 rows in set (0.001 sec)
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
MariaDB [(none)]>
|
358
|
-
|
359
|
-
```
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
そこで"docker-compose.yml"のファイルの記述に問題があると考え、外部向けにポートを開放する記述をmariadbコンテナに記述してみましたが、うまく動きません。
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
```
|
372
|
-
|
373
|
-
ports:
|
374
|
-
|
375
|
-
- '3306:3306'
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
```
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
原因がredmineにあるのかdockerそのものにあるのか不明なため別の"docker-compose.yml"を作成しました。(以下の手順で作成)
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
```
|
396
|
-
|
397
|
-
docker-compose down -v
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
rm -rf docker-compose.yml
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
vi docker-compose.yml
|
406
|
-
|
407
|
-
```
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
以下を記述しました。
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
```
|
416
|
-
|
417
|
-
version: '3.1'
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
services:
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
wordpress:
|
426
|
-
|
427
|
-
image: wordpress
|
427
|
+
WORDPRESS_DB_HOST: db
|
428
|
+
|
429
|
+
WORDPRESS_DB_USER: exampleuser
|
430
|
+
|
431
|
+
WORDPRESS_DB_PASSWORD: examplepass
|
432
|
+
|
433
|
+
WORDPRESS_DB_NAME: exampledb
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
db:
|
438
|
+
|
439
|
+
image: mysql:latest
|
428
440
|
|
429
441
|
restart: always
|
430
442
|
|
431
|
-
ports:
|
432
|
-
|
433
|
-
- 8080:80
|
434
|
-
|
435
443
|
environment:
|
436
444
|
|
437
|
-
WORDPRESS_DB_HOST: db
|
438
|
-
|
439
|
-
WORDPRESS_DB_USER: exampleuser
|
440
|
-
|
441
|
-
WORDPRESS_DB_PASSWORD: examplepass
|
442
|
-
|
443
|
-
WORDPRESS_DB_NAME: exampledb
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
db:
|
448
|
-
|
449
|
-
image: mysql:latest
|
450
|
-
|
451
|
-
restart: always
|
452
|
-
|
453
|
-
environment:
|
454
|
-
|
455
445
|
MYSQL_DATABASE: exampledb
|
456
446
|
|
457
447
|
MYSQL_USER: exampleuser
|