forked from zanfranceschi/rinha-de-backend-2024-q1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.logs
152 lines (152 loc) · 13 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
Network saulomendonca-rails_default Creating
Network saulomendonca-rails_default Created
Container saulomendonca-rails-db-1 Creating
Container saulomendonca-rails-db-1 Created
Container saulomendonca-rails-api1-1 Creating
Container saulomendonca-rails-api2-1 Creating
Container saulomendonca-rails-api1-1 Created
Container saulomendonca-rails-api2-1 Created
Container nginx Creating
Container nginx Created
Attaching to nginx, api1-1, api2-1, db-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 ... UTC
db-1 | creating configuration files ... ok
db-1 | running bootstrap script ... ok
db-1 | sh: locale: not found
db-1 | 2024-03-09 22:59:20.714 UTC [30] WARNING: no usable system locales were found
db-1 | performing post-bootstrap initialization ... ok
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 |
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 | waiting for server to start....2024-03-09 22:59:22.435 UTC [36] LOG: starting PostgreSQL 16.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
db-1 | 2024-03-09 22:59:22.438 UTC [36] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1 | 2024-03-09 22:59:22.447 UTC [39] LOG: database system was shut down at 2024-03-09 22:59:21 UTC
db-1 | 2024-03-09 22:59:22.458 UTC [36] LOG: database system is ready to accept connections
db-1 | done
db-1 | server started
db-1 | CREATE DATABASE
db-1 |
db-1 |
db-1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db-1 |
db-1 | waiting for server to shut down....2024-03-09 22:59:22.614 UTC [36] LOG: received fast shutdown request
db-1 | 2024-03-09 22:59:22.618 UTC [36] LOG: aborting any active transactions
db-1 | 2024-03-09 22:59:22.621 UTC [36] LOG: background worker "logical replication launcher" (PID 42) exited with exit code 1
db-1 | 2024-03-09 22:59:22.621 UTC [37] LOG: shutting down
db-1 | 2024-03-09 22:59:22.624 UTC [37] LOG: checkpoint starting: shutdown immediate
db-1 | 2024-03-09 22:59:23.108 UTC [37] LOG: checkpoint complete: wrote 925 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.216 s, sync=0.254 s, total=0.487 s; sync files=301, longest=0.225 s, average=0.001 s; distance=4269 kB, estimate=4269 kB; lsn=0/191BA78, redo lsn=0/191BA78
db-1 | 2024-03-09 22:59:23.114 UTC [36] 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-09 22:59:23.211 UTC [1] LOG: starting PostgreSQL 16.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
db-1 | 2024-03-09 22:59:23.211 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db-1 | 2024-03-09 22:59:23.211 UTC [1] LOG: listening on IPv6 address "::", port 5432
db-1 | 2024-03-09 22:59:23.218 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1 | 2024-03-09 22:59:23.225 UTC [52] LOG: database system was shut down at 2024-03-09 22:59:23 UTC
db-1 | 2024-03-09 22:59:23.231 UTC [1] LOG: database system is ready to accept connections
nginx | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx | 2024/03/09 22:59:27 [error] 28#28: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://192.168.176.3:3000/clientes/1/extrato", host: "localhost:9999"
nginx | 2024/03/09 22:59:27 [error] 28#28: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://192.168.176.4:3000/clientes/1/extrato", host: "localhost:9999"
nginx | 2024/03/09 22:59:29 [error] 29#29: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://192.168.176.3:3000/clientes/1/extrato", host: "localhost:9999"
nginx | 2024/03/09 22:59:29 [error] 29#29: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://192.168.176.4:3000/clientes/1/extrato", host: "localhost:9999"
nginx | 2024/03/09 22:59:31 [error] 30#30: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://192.168.176.3:3000/clientes/1/extrato", host: "localhost:9999"
nginx | 2024/03/09 22:59:31 [error] 30#30: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://192.168.176.4:3000/clientes/1/extrato", host: "localhost:9999"
api2-1 | => Booting Puma
api2-1 | => Rails 7.1.3.2 application starting in production
api2-1 | => Run `bin/rails server --help` for more startup options
db-1 | 2024-03-09 22:59:33.068 UTC [50] LOG: checkpoint starting: immediate force wait
db-1 | 2024-03-09 22:59:33.098 UTC [50] LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.009 s, sync=0.006 s, total=0.030 s; sync files=3, longest=0.003 s, average=0.002 s; distance=0 kB, estimate=0 kB; lsn=0/191BE98, redo lsn=0/191BE60
api2-1 | Puma starting in single mode...
api2-1 | * Puma version: 6.4.2 (ruby 3.3.0-p0) ("The Eagle of Durango")
api2-1 | * Min threads: 40
api2-1 | * Max threads: 40
api2-1 | * Environment: production
api2-1 | * PID: 1
api2-1 | * Listening on http://0.0.0.0:3000
api2-1 | Use Ctrl-C to stop
api1-1 | Dropped database 'rinha_production'
api1-1 | Created database 'rinha_production'
api1-1 | == 20240301012615 CreateClients: migrating ====================================
api1-1 | -- create_table(:clients)
api1-1 | -> 0.0128s
api1-1 | == 20240301012615 CreateClients: migrated (0.0129s) ===========================
api1-1 |
api1-1 | == 20240301012808 CreateTransactions: migrating ===============================
api1-1 | -- create_table(:transactions)
api1-1 | -> 0.0193s
api1-1 | == 20240301012808 CreateTransactions: migrated (0.0193s) ======================
api1-1 |
nginx | 2024/03/09 22:59:33 [error] 31#31: *10 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://192.168.176.3:3000/clientes/1/extrato", host: "localhost:9999"
nginx | 2024/03/09 22:59:33 [error] 28#28: *13 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://api/clientes/1/extrato", host: "localhost:9999"
api1-1 | => Booting Puma
api1-1 | => Rails 7.1.3.2 application starting in production
api1-1 | => Run `bin/rails server --help` for more startup options
nginx | 2024/03/09 22:59:35 [error] 28#28: *14 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://api/clientes/1/extrato", host: "localhost:9999"
api1-1 | Puma starting in single mode...
api1-1 | * Puma version: 6.4.2 (ruby 3.3.0-p0) ("The Eagle of Durango")
api1-1 | * Min threads: 40
api1-1 | * Max threads: 40
api1-1 | * Environment: production
api1-1 | * PID: 1
api1-1 | * Listening on http://0.0.0.0:3000
api1-1 | Use Ctrl-C to stop
nginx | 2024/03/09 22:59:37 [error] 28#28: *15 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://api/clientes/1/extrato", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *40 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *38 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *21 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *33 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *41 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *35 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *43 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 29#29: *42 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
nginx | 2024/03/09 22:59:44 [error] 30#30: *57 no live upstreams while connecting to upstream, client: 192.168.176.1, server: , request: "POST /clientes/1/transacoes HTTP/1.1", upstream: "http://api/clientes/1/transacoes", host: "localhost:9999"
db-1 | 2024-03-09 23:01:23.924 UTC [99] FATAL: terminating connection due to unexpected postmaster exit
api2-1 | FATAL: terminating connection due to unexpected postmaster exit
db-1 | 2024-03-09 23:01:23.927 UTC [100] FATAL: terminating connection due to unexpected postmaster exit
db-1 | 2024-03-09 23:01:23.927 UTC [111] FATAL: terminating connection due to unexpected postmaster exit
api1-1 | FATAL: terminating connection due to unexpected postmaster exit
db-1 | 2024-03-09 23:01:23.950 UTC [91] FATAL: terminating connection due to unexpected postmaster exit
db-1 | 2024-03-09 23:01:24.015 UTC [289] FATAL: terminating connection due to unexpected postmaster exit
db-1 | 2024-03-09 23:01:24.015 UTC [285] FATAL: terminating connection due to unexpected postmaster exit
api1-1 | FATAL: terminating connection due to unexpected postmaster exit
db-1 | 2024-03-09 23:01:24.019 UTC [110] FATAL: terminating connection due to unexpected postmaster exit
db-1 exited with code 137
nginx exited with code 137
api1-1 | - Gracefully stopping, waiting for requests to finish
api2-1 | - Gracefully stopping, waiting for requests to finish
api1-1 | Exiting
api2-1 | Exiting
api1-1 exited with code 0
api1-1 exited with code 1
api2-1 exited with code 0