forked from zanfranceschi/rinha-de-backend-2024-q1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.logs
500 lines (500 loc) · 34.3 KB
/
docker-compose.logs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
Network rinha-nginx-2024q1 Creating
Network rinha-nginx-2024q1 Created
Container gicornachini-api02-1 Creating
Container gicornachini-api01-1 Creating
Container gicornachini-db-1 Creating
Container gicornachini-db-1 Created
Container gicornachini-api01-1 Created
Container gicornachini-api02-1 Created
Container gicornachini-nginx-1 Creating
Container gicornachini-nginx-1 Created
Attaching to api01-1, api02-1, db-1, nginx-1
db-1 | The files belonging to this database system will be owned by user "postgres".
db-1 | This user must also own the server process.
db-1 |
db-1 | The database cluster will be initialized with locale "en_US.utf8".
db-1 | The default database encoding has accordingly been set to "UTF8".
db-1 | The default text search configuration will be set to "english".
db-1 |
db-1 | Data page checksums are disabled.
db-1 |
db-1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db-1 | creating subdirectories ... ok
db-1 | selecting dynamic shared memory implementation ... posix
db-1 | selecting default max_connections ... 100
db-1 | selecting default shared_buffers ... 128MB
db-1 | selecting default time zone ... Etc/UTC
db-1 | creating configuration files ... ok
db-1 | running bootstrap script ... ok
api02-1 | [2024-03-10 22:55:30 +0000] [1] [INFO] Starting gunicorn 21.2.0
api02-1 | [2024-03-10 22:55:30 +0000] [1] [INFO] Listening at: http://0.0.0.0:9999 (1)
api02-1 | [2024-03-10 22:55:30 +0000] [1] [INFO] Using worker: aiohttp.GunicornUVLoopWebWorker
api02-1 | [2024-03-10 22:55:30 +0000] [7] [INFO] Booting worker with pid: 7
api02-1 | [2024-03-10 22:55:30 +0000] [8] [INFO] Booting worker with pid: 8
nginx-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx-1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
api02-1 | [2024-03-10 22:55:30 +0000] [9] [INFO] Booting worker with pid: 9
api02-1 | INFO:gicornachini.db:initializing postgresql
nginx-1 | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
api02-1 | [2024-03-10 22:55:30 +0000] [7] [ERROR] Exception in gunicorn worker
api02-1 | Traceback (most recent call last):
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api02-1 | self.loop.run_until_complete(self._task)
api02-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api02-1 | await runner.setup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api02-1 | self._server = await self._make_server()
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api02-1 | await self._app.startup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api02-1 | await self.on_startup.send(self)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api02-1 | await receiver(*args, **kwargs) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api02-1 | await it.__anext__()
api02-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api02-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api02-1 | await self._fill_free_pool(False)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api02-1 | conn = await connect(
api02-1 | ^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api02-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api02-1 | await asyncio.wait_for(self._waiter, timeout)
api02-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api02-1 | return await fut
api02-1 | ^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api02-1 | state = self._conn.poll()
api02-1 | ^^^^^^^^^^^^^^^^^
api02-1 | psycopg2.OperationalError: Connection refused
api02-1 | Is the server running on that host and accepting TCP/IP connections?
api02-1 |
api02-1 | [2024-03-10 22:55:30 +0000] [7] [INFO] Worker exiting (pid: 7)
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
api01-1 | [2024-03-10 22:55:30 +0000] [1] [INFO] Starting gunicorn 21.2.0
api01-1 | [2024-03-10 22:55:30 +0000] [1] [INFO] Listening at: http://0.0.0.0:9999 (1)
api01-1 | [2024-03-10 22:55:30 +0000] [1] [INFO] Using worker: aiohttp.GunicornUVLoopWebWorker
api01-1 | [2024-03-10 22:55:30 +0000] [7] [INFO] Booting worker with pid: 7
api02-1 | [2024-03-10 22:55:30 +0000] [10] [INFO] Booting worker with pid: 10
api02-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:30 +0000] [8] [INFO] Booting worker with pid: 8
db-1 | performing post-bootstrap initialization ... ok
api02-1 | [2024-03-10 22:55:30 +0000] [8] [ERROR] Exception in gunicorn worker
api02-1 | Traceback (most recent call last):
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api02-1 | self.loop.run_until_complete(self._task)
api02-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api02-1 | await runner.setup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api02-1 | self._server = await self._make_server()
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api02-1 | await self._app.startup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api02-1 | await self.on_startup.send(self)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api02-1 | await receiver(*args, **kwargs) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api02-1 | await it.__anext__()
api02-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api02-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api02-1 | await self._fill_free_pool(False)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api02-1 | conn = await connect(
api02-1 | ^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api02-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api02-1 | await asyncio.wait_for(self._waiter, timeout)
api02-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api02-1 | return await fut
api02-1 | ^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api02-1 | state = self._conn.poll()
api02-1 | ^^^^^^^^^^^^^^^^^
api02-1 | psycopg2.OperationalError: Connection refused
api02-1 | Is the server running on that host and accepting TCP/IP connections?
api02-1 |
api02-1 | [2024-03-10 22:55:30 +0000] [8] [INFO] Worker exiting (pid: 8)
api01-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:30 +0000] [7] [ERROR] Exception in gunicorn worker
api01-1 | Traceback (most recent call last):
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api01-1 | self.loop.run_until_complete(self._task)
api01-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api01-1 | await runner.setup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api01-1 | self._server = await self._make_server()
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api01-1 | await self._app.startup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api01-1 | await self.on_startup.send(self)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api01-1 | await receiver(*args, **kwargs) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api01-1 | await it.__anext__()
api01-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api01-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api01-1 | await self._fill_free_pool(False)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api01-1 | conn = await connect(
api01-1 | ^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api01-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api01-1 | await asyncio.wait_for(self._waiter, timeout)
api01-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api01-1 | return await fut
api01-1 | ^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api01-1 | state = self._conn.poll()
api01-1 | ^^^^^^^^^^^^^^^^^
api01-1 | psycopg2.OperationalError: Connection refused
api01-1 | Is the server running on that host and accepting TCP/IP connections?
api01-1 |
api01-1 | [2024-03-10 22:55:30 +0000] [7] [INFO] Worker exiting (pid: 7)
api01-1 | [2024-03-10 22:55:30 +0000] [9] [INFO] Booting worker with pid: 9
api01-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:30 +0000] [8] [ERROR] Exception in gunicorn worker
api01-1 | Traceback (most recent call last):
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api01-1 | self.loop.run_until_complete(self._task)
api01-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api01-1 | await runner.setup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api01-1 | self._server = await self._make_server()
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api01-1 | await self._app.startup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api01-1 | await self.on_startup.send(self)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api01-1 | await receiver(*args, **kwargs) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api01-1 | await it.__anext__()
api01-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api01-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api01-1 | await self._fill_free_pool(False)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api01-1 | conn = await connect(
api01-1 | ^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api01-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api01-1 | await asyncio.wait_for(self._waiter, timeout)
api01-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api01-1 | return await fut
api01-1 | ^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api01-1 | state = self._conn.poll()
api01-1 | ^^^^^^^^^^^^^^^^^
api01-1 | psycopg2.OperationalError: Connection refused
api01-1 | Is the server running on that host and accepting TCP/IP connections?
api01-1 |
api01-1 | [2024-03-10 22:55:30 +0000] [8] [INFO] Worker exiting (pid: 8)
api02-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:30 +0000] [10] [INFO] Booting worker with pid: 10
api02-1 | INFO:gicornachini.db:initializing postgresql
api02-1 | [2024-03-10 22:55:30 +0000] [10] [ERROR] Exception in gunicorn worker
api02-1 | Traceback (most recent call last):
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api02-1 | self.loop.run_until_complete(self._task)
api02-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api02-1 | await runner.setup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api02-1 | self._server = await self._make_server()
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api02-1 | await self._app.startup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api02-1 | await self.on_startup.send(self)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api02-1 | await receiver(*args, **kwargs) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api02-1 | await it.__anext__()
api02-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api02-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api02-1 | await self._fill_free_pool(False)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api02-1 | conn = await connect(
api02-1 | ^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api02-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api02-1 | await asyncio.wait_for(self._waiter, timeout)
api02-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api02-1 | return await fut
api02-1 | ^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api02-1 | state = self._conn.poll()
api02-1 | ^^^^^^^^^^^^^^^^^
api02-1 | psycopg2.OperationalError: Connection refused
api02-1 | Is the server running on that host and accepting TCP/IP connections?
api02-1 |
api02-1 | [2024-03-10 22:55:30 +0000] [10] [INFO] Worker exiting (pid: 10)
api02-1 | [2024-03-10 22:55:30 +0000] [9] [ERROR] Exception in gunicorn worker
api02-1 | Traceback (most recent call last):
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api02-1 | self.loop.run_until_complete(self._task)
api02-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api02-1 | await runner.setup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api02-1 | self._server = await self._make_server()
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api02-1 | await self._app.startup()
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api02-1 | await self.on_startup.send(self)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api02-1 | await receiver(*args, **kwargs) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api02-1 | await it.__anext__()
api02-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api02-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api02-1 | await self._fill_free_pool(False)
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api02-1 | conn = await connect(
api02-1 | ^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api02-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api02-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api02-1 | await asyncio.wait_for(self._waiter, timeout)
api02-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api02-1 | return await fut
api02-1 | ^^^^^^^^^
api02-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api02-1 | state = self._conn.poll()
api02-1 | ^^^^^^^^^^^^^^^^^
api02-1 | psycopg2.OperationalError: Connection refused
api02-1 | Is the server running on that host and accepting TCP/IP connections?
api02-1 |
api02-1 | [2024-03-10 22:55:30 +0000] [9] [INFO] Worker exiting (pid: 9)
db-1 | initdb: warning: enabling "trust" authentication for local connections
db-1 | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
db-1 | syncing data to disk ... ok
db-1 |
db-1 |
db-1 | Success. You can now start the database server using:
db-1 |
db-1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
db-1 |
api02-1 | [2024-03-10 22:55:30 +0000] [11] [INFO] Booting worker with pid: 11
api01-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:30 +0000] [11] [INFO] Booting worker with pid: 11
db-1 | waiting for server to start....2024-03-10 22:55:30.944 UTC [49] LOG: starting PostgreSQL 16.2 (Debian 16.2-1.pgdg120+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
db-1 | 2024-03-10 22:55:30.944 UTC [49] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1 | 2024-03-10 22:55:30.946 UTC [52] LOG: database system was shut down at 2024-03-10 22:55:30 UTC
db-1 | 2024-03-10 22:55:30.949 UTC [49] LOG: database system is ready to accept connections
db-1 | done
db-1 | server started
api01-1 | [2024-03-10 22:55:30 +0000] [9] [ERROR] Exception in gunicorn worker
api01-1 | Traceback (most recent call last):
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api01-1 | self.loop.run_until_complete(self._task)
api01-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api01-1 | await runner.setup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api01-1 | self._server = await self._make_server()
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api01-1 | await self._app.startup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api01-1 | await self.on_startup.send(self)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api01-1 | await receiver(*args, **kwargs) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api01-1 | await it.__anext__()
api01-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api01-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api01-1 | await self._fill_free_pool(False)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api01-1 | conn = await connect(
api01-1 | ^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api01-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api01-1 | await asyncio.wait_for(self._waiter, timeout)
api01-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api01-1 | return await fut
api01-1 | ^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api01-1 | state = self._conn.poll()
api01-1 | ^^^^^^^^^^^^^^^^^
api01-1 | psycopg2.OperationalError: Connection refused
api01-1 | Is the server running on that host and accepting TCP/IP connections?
api01-1 |
api01-1 | [2024-03-10 22:55:31 +0000] [9] [INFO] Worker exiting (pid: 9)
api01-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:31 +0000] [10] [ERROR] Exception in gunicorn worker
api01-1 | Traceback (most recent call last):
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 57, in run
api01-1 | self.loop.run_until_complete(self._task)
api01-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/worker.py", line 94, in _run
api01-1 | await runner.setup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 295, in setup
api01-1 | self._server = await self._make_server()
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_runner.py", line 400, in _make_server
api01-1 | await self._app.startup()
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 456, in startup
api01-1 | await self.on_startup.send(self)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiosignal/__init__.py", line 36, in send
api01-1 | await receiver(*args, **kwargs) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 578, in _on_startup
api01-1 | await it.__anext__()
api01-1 | File "/gicornachini/gicornachini/db.py", line 11, in setup_db
api01-1 | app['db_pool'] = await aiopg.create_pool(dsn=dsn, minsize=1, maxsize=0)
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 300, in from_pool_fill
api01-1 | await self._fill_free_pool(False)
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/pool.py", line 336, in _fill_free_pool
api01-1 | conn = await connect(
api01-1 | ^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 1225, in _connect
api01-1 | await self._poll(self._waiter, self._timeout) # type: ignore
api01-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 881, in _poll
api01-1 | await asyncio.wait_for(self._waiter, timeout)
api01-1 | File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
api01-1 | return await fut
api01-1 | ^^^^^^^^^
api01-1 | File "/usr/local/lib/python3.12/site-packages/aiopg/connection.py", line 788, in _ready
api01-1 | state = self._conn.poll()
api01-1 | ^^^^^^^^^^^^^^^^^
api01-1 | psycopg2.OperationalError: Connection refused
api01-1 | Is the server running on that host and accepting TCP/IP connections?
api01-1 |
api01-1 | [2024-03-10 22:55:31 +0000] [10] [INFO] Worker exiting (pid: 10)
db-1 | CREATE DATABASE
db-1 |
db-1 |
db-1 | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init.sql
db-1 | CREATE TABLE
db-1 | CREATE TABLE
db-1 | CREATE INDEX
db-1 | INSERT 0 5
db-1 | 2024-03-10 22:55:31.162 UTC [62] WARNING: there is no transaction in progress
db-1 | psql:/docker-entrypoint-initdb.d/init.sql:29: WARNING: there is no transaction in progress
db-1 | COMMIT
db-1 | CREATE FUNCTION
db-1 | CREATE FUNCTION
db-1 |
db-1 |
db-1 | waiting for server to shut down...2024-03-10 22:55:31.164 UTC [49] LOG: received fast shutdown request
db-1 | .2024-03-10 22:55:31.164 UTC [49] LOG: aborting any active transactions
db-1 | 2024-03-10 22:55:31.166 UTC [49] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1
db-1 | 2024-03-10 22:55:31.167 UTC [50] LOG: shutting down
db-1 | 2024-03-10 22:55:31.167 UTC [50] LOG: checkpoint starting: shutdown immediate
db-1 | 2024-03-10 22:55:31.172 UTC [50] LOG: checkpoint complete: wrote 941 buffers (7.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.006 s, sync=0.001 s, total=0.006 s; sync files=0, longest=0.000 s, average=0.000 s; distance=4299 kB, estimate=4299 kB; lsn=0/191D838, redo lsn=0/191D838
db-1 | 2024-03-10 22:55:31.176 UTC [49] LOG: database system is shut down
db-1 | done
db-1 | server stopped
db-1 |
db-1 | PostgreSQL init process complete; ready for start up.
db-1 |
db-1 | 2024-03-10 22:55:31.282 UTC [1] LOG: starting PostgreSQL 16.2 (Debian 16.2-1.pgdg120+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
db-1 | 2024-03-10 22:55:31.282 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db-1 | 2024-03-10 22:55:31.282 UTC [1] LOG: listening on IPv6 address "::", port 5432
db-1 | 2024-03-10 22:55:31.282 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1 | 2024-03-10 22:55:31.284 UTC [67] LOG: database system was shut down at 2024-03-10 22:55:31 UTC
db-1 | 2024-03-10 22:55:31.287 UTC [1] LOG: database system is ready to accept connections
api01-1 | INFO:gicornachini.db:initializing postgresql
api02-1 | [2024-03-10 22:55:31 +0000] [12] [INFO] Booting worker with pid: 12
api02-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:31 +0000] [12] [INFO] Booting worker with pid: 12
api02-1 | [2024-03-10 22:55:31 +0000] [13] [INFO] Booting worker with pid: 13
api01-1 | [2024-03-10 22:55:31 +0000] [13] [INFO] Booting worker with pid: 13
api02-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | INFO:gicornachini.db:initializing postgresql
api02-1 | [2024-03-10 22:55:31 +0000] [14] [INFO] Booting worker with pid: 14
api02-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | [2024-03-10 22:55:31 +0000] [14] [INFO] Booting worker with pid: 14
api01-1 | INFO:gicornachini.db:initializing postgresql
api02-1 | INFO:gicornachini.db:initializing postgresql
api01-1 | INFO:gicornachini.db:initializing postgresql
db-1 | 2024-03-10 22:59:45.343 UTC [1] LOG: received fast shutdown request
db-1 | 2024-03-10 22:59:45.343 UTC [1] LOG: aborting any active transactions
db-1 | 2024-03-10 22:59:45.343 UTC [90] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.343 UTC [86] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.343 UTC [89] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.343 UTC [85] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.344 UTC [84] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.344 UTC [71] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.344 UTC [82] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.346 UTC [73] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.346 UTC [81] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.346 UTC [80] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.348 UTC [93] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.349 UTC [79] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.349 UTC [72] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.350 UTC [78] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.351 UTC [91] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.352 UTC [1] LOG: background worker "logical replication launcher" (PID 70) exited with exit code 1
db-1 | 2024-03-10 22:59:45.352 UTC [92] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.352 UTC [88] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.353 UTC [76] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.353 UTC [75] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.355 UTC [77] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.355 UTC [83] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.358 UTC [74] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.360 UTC [87] FATAL: terminating connection due to administrator command
db-1 | 2024-03-10 22:59:45.362 UTC [65] LOG: shutting down
db-1 | 2024-03-10 22:59:45.362 UTC [65] LOG: checkpoint starting: shutdown immediate
db-1 | 2024-03-10 22:59:45.365 UTC [65] LOG: checkpoint complete: wrote 735 buffers (6.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.004 s, sync=0.001 s, total=0.004 s; sync files=0, longest=0.000 s, average=0.000 s; distance=1939 kB, estimate=1939 kB; lsn=0/1B026D0, redo lsn=0/1B026D0
db-1 | 2024-03-10 22:59:45.369 UTC [1] LOG: database system is shut down
db-1 exited with code 0
db-1 exited with code 0
nginx-1 exited with code 0
nginx-1 exited with code 0
api01-1 | [2024-03-10 22:59:46 +0000] [1] [INFO] Handling signal: term
api02-1 | [2024-03-10 22:59:46 +0000] [1] [INFO] Handling signal: term
api01-1 | [2024-03-10 22:59:46 +0000] [13] [INFO] Error while closing socket [Errno 9] Bad file descriptor
api01-1 | INFO:gicornachini.db:closing postgresql
api01-1 | [2024-03-10 22:59:46 +0000] [13] [INFO] Worker exiting (pid: 13)
api01-1 | [2024-03-10 22:59:46 +0000] [14] [INFO] Error while closing socket [Errno 9] Bad file descriptor