-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.logs
148 lines (148 loc) · 11.1 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
Network tiagorconceicao-node_default Creating
Network tiagorconceicao-node_default Created
Container tiagorconceicao-node-redis-1 Creating
Container tiagorconceicao-node-db-1 Creating
Container tiagorconceicao-node-redis-1 Created
Container tiagorconceicao-node-db-1 Created
Container api_1 Creating
Container api_2 Creating
Container api_2 Created
Container api_1 Created
Container tiagorconceicao-node-nginx-1 Creating
Container tiagorconceicao-node-nginx-1 Created
Attaching to api_1, api_2, db-1, nginx-1, redis-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
redis-1 | 1:C 08 Mar 2024 21:32:33.517 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis-1 | 1:C 08 Mar 2024 21:32:33.517 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis-1 | 1:C 08 Mar 2024 21:32:33.517 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=1, just started
redis-1 | 1:C 08 Mar 2024 21:32:33.517 * Configuration loaded
redis-1 | 1:M 08 Mar 2024 21:32:33.517 * monotonic clock: POSIX clock_gettime
redis-1 | 1:M 08 Mar 2024 21:32:33.518 * Running mode=standalone, port=6379.
redis-1 | 1:M 08 Mar 2024 21:32:33.518 * Server initialized
redis-1 | 1:M 08 Mar 2024 21:32:33.518 * Ready to accept connections tcp
db-1 | running bootstrap script ... ok
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-08 21:32:35.865 UTC [50] 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-08 21:32:35.867 UTC [50] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1 | 2024-03-08 21:32:35.876 UTC [53] LOG: database system was shut down at 2024-03-08 21:32:34 UTC
db-1 | 2024-03-08 21:32:35.914 UTC [50] 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: running /docker-entrypoint-initdb.d/1-ddl.sql
db-1 | CREATE ROLE
db-1 | CREATE TABLE
db-1 | CREATE TABLE
db-1 |
db-1 |
db-1 | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/2-dml.sql
db-1 | INSERT 0 5
db-1 | ALTER SEQUENCE
db-1 |
db-1 |
db-1 | waiting for server to shut down...2024-03-08 21:32:36.242 UTC [50] LOG: received fast shutdown request
db-1 | .2024-03-08 21:32:36.244 UTC [50] LOG: aborting any active transactions
db-1 | 2024-03-08 21:32:36.252 UTC [50] LOG: background worker "logical replication launcher" (PID 56) exited with exit code 1
db-1 | 2024-03-08 21:32:36.252 UTC [51] LOG: shutting down
db-1 | 2024-03-08 21:32:36.254 UTC [51] LOG: checkpoint starting: shutdown immediate
db-1 | 2024-03-08 21:32:36.726 UTC [51] LOG: checkpoint complete: wrote 939 buffers (5.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.223 s, sync=0.240 s, total=0.475 s; sync files=312, longest=0.209 s, average=0.001 s; distance=4296 kB, estimate=4296 kB; lsn=0/191CA98, redo lsn=0/191CA98
db-1 | 2024-03-08 21:32:36.732 UTC [50] 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-08 21:32:36.766 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-08 21:32:36.766 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db-1 | 2024-03-08 21:32:36.766 UTC [1] LOG: listening on IPv6 address "::", port 5432
db-1 | 2024-03-08 21:32:36.771 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1 | 2024-03-08 21:32:36.778 UTC [70] LOG: database system was shut down at 2024-03-08 21:32:36 UTC
db-1 | 2024-03-08 21:32:36.785 UTC [1] LOG: database system is ready to accept connections
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
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
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
api_1 |
api_1 | > [email protected] start
api_1 | > node dist/index.js
api_1 |
api_2 |
api_2 | > [email protected] start
api_2 | > node dist/index.js
api_2 |
nginx-1 | 2024/03/08 21:32:40 [error] 29#29: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.20.0.1, server: localhost, request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://172.20.0.5:3000/clientes/1/extrato", host: "localhost:9999"
nginx-1 | 2024/03/08 21:32:40 [error] 29#29: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.20.0.1, server: localhost, request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://172.20.0.4:3000/clientes/1/extrato", host: "localhost:9999"
api_2 | ✅️ Server ready! Listening at http://[::]:3000 | 2024-03-08T21:32:42.048Z
api_1 | ✅️ Server ready! Listening at http://[::]:3000 | 2024-03-08T21:32:42.051Z
nginx-1 | 2024/03/08 21:32:42 [error] 29#29: *4 no live upstreams while connecting to upstream, client: 172.20.0.1, server: localhost, request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://backend/clientes/1/extrato", host: "localhost:9999"
nginx-1 | 2024/03/08 21:32:44 [error] 29#29: *5 no live upstreams while connecting to upstream, client: 172.20.0.1, server: localhost, request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://backend/clientes/1/extrato", host: "localhost:9999"
nginx-1 | 2024/03/08 21:32:46 [error] 29#29: *6 no live upstreams while connecting to upstream, client: 172.20.0.1, server: localhost, request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://backend/clientes/1/extrato", host: "localhost:9999"
nginx-1 | 2024/03/08 21:32:48 [error] 29#29: *7 no live upstreams while connecting to upstream, client: 172.20.0.1, server: localhost, request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://backend/clientes/1/extrato", host: "localhost:9999"
nginx-1 | 2024/03/08 21:32:50 [error] 29#29: *8 no live upstreams while connecting to upstream, client: 172.20.0.1, server: localhost, request: "GET /clientes/1/extrato HTTP/1.1", upstream: "http://backend/clientes/1/extrato", host: "localhost:9999"
redis-1 | 1:M 08 Mar 2024 21:34:35.930 * 10000 changes in 60 seconds. Saving...
redis-1 | 1:M 08 Mar 2024 21:34:35.931 * Background saving started by pid 161
redis-1 | 161:C 08 Mar 2024 21:34:35.942 * DB saved on disk
redis-1 | 161:C 08 Mar 2024 21:34:35.942 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
redis-1 | 1:M 08 Mar 2024 21:34:36.031 * Background saving terminated with success
redis-1 | 1:M 08 Mar 2024 21:35:37.027 * 10000 changes in 60 seconds. Saving...
redis-1 | 1:M 08 Mar 2024 21:35:37.027 * Background saving started by pid 237
redis-1 | 237:C 08 Mar 2024 21:35:37.038 * DB saved on disk
redis-1 | 237:C 08 Mar 2024 21:35:37.038 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
redis-1 | 1:M 08 Mar 2024 21:35:37.128 * Background saving terminated with success
redis-1 | 1:M 08 Mar 2024 21:36:38.017 * 10000 changes in 60 seconds. Saving...
redis-1 | 1:M 08 Mar 2024 21:36:38.017 * Background saving started by pid 312
redis-1 | 312:C 08 Mar 2024 21:36:38.029 * DB saved on disk
redis-1 | 312:C 08 Mar 2024 21:36:38.030 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
redis-1 | 1:M 08 Mar 2024 21:36:38.117 * Background saving terminated with success
nginx-1 exited with code 0
nginx-1 exited with code 0
api_1 exited with code 0
api_1 exited with code 137
api_2 exited with code 0
api_2 exited with code 137
redis-1 | 1:signal-handler (1709933836) Received SIGTERM scheduling shutdown...
db-1 | 2024-03-08 21:37:16.731 UTC [1] LOG: received fast shutdown request
db-1 | 2024-03-08 21:37:16.743 UTC [1] LOG: aborting any active transactions
db-1 | 2024-03-08 21:37:16.745 UTC [1] LOG: background worker "logical replication launcher" (PID 73) exited with exit code 1
db-1 | 2024-03-08 21:37:16.745 UTC [68] LOG: shutting down
db-1 | 2024-03-08 21:37:16.748 UTC [68] LOG: checkpoint starting: shutdown immediate
redis-1 | 1:M 08 Mar 2024 21:37:16.749 * User requested shutdown...
redis-1 | 1:M 08 Mar 2024 21:37:16.749 * Saving the final RDB snapshot before exiting.
redis-1 | 1:M 08 Mar 2024 21:37:16.761 * DB saved on disk
redis-1 | 1:M 08 Mar 2024 21:37:16.761 # Redis is now ready to exit, bye bye...
db-1 | 2024-03-08 21:37:16.913 UTC [68] LOG: checkpoint complete: wrote 620 buffers (3.8%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.021 s, sync=0.114 s, total=0.168 s; sync files=31, longest=0.106 s, average=0.004 s; distance=16739 kB, estimate=16739 kB; lsn=0/29758B8, redo lsn=0/29758B8
db-1 | 2024-03-08 21:37:16.917 UTC [1] LOG: database system is shut down
redis-1 exited with code 0
redis-1 exited with code 0
db-1 exited with code 0