· 6 years ago · Apr 18, 2019, 02:54 PM
1p_rytvinsky at BY1-AL-139 in ~/projects/xtimonx/rating_test (master)
2$ git pull
3remote: Enumerating objects: 23, done.
4remote: Counting objects: 100% (23/23), done.
5remote: Compressing objects: 100% (5/5), done.
6remote: Total 14 (delta 9), reused 14 (delta 9), pack-reused 0
7Unpacking objects: 100% (14/14), done.
8From https://github.com/xtimonx5/rating_test
9 25377eb..76e13ef master -> origin/master
10Updating 25377eb..76e13ef
11Fast-forward
12 .gitignore | 2 +-
13 __init__.py | 0
14 rating/__init__.py | 0
15 rating/common/apps.py | 7 +++++++
16 rating/common/consumer.py | 9 ++++++++-
17 rating/common/mv_refresher.py | 15 +++++++++++++++
18 rating/logs/amqp.log | 0
19 rating/rating/settings.py | 2 +-
20 8 files changed, 32 insertions(+), 3 deletions(-)
21 create mode 100644 __init__.py
22 create mode 100644 rating/__init__.py
23 create mode 100644 rating/common/mv_refresher.py
24 create mode 100755 rating/logs/amqp.log
25
26p_rytvinsky at BY1-AL-139 in ~/projects/xtimonx/rating_test (master)
27$ docker-compose build
28db uses an image, skipping
29rabbitmq uses an image, skipping
30redis uses an image, skipping
31Building app
32Step 1/40 : FROM python:3.7.3
33 ---> 59a8c21b72d4
34Step 2/40 : ARG BUILD_USER=django
35 ---> Using cache
36 ---> ad3558d94f5e
37Step 3/40 : ARG BUILD_USER_GROUP=django
38 ---> Using cache
39 ---> d31b7ff9e0dd
40Step 4/40 : ARG BUILD_USER_PASSWORD=django
41 ---> Using cache
42 ---> 9e47d573320d
43Step 5/40 : ARG BUILD_USER_SHELL=/bin/bash
44 ---> Using cache
45 ---> 2113459a1f6f
46Step 6/40 : ARG BUILD_USER_UID=1000
47 ---> Using cache
48 ---> 17e20f305c67
49Step 7/40 : ARG BUILD_USER_GID=1000
50 ---> Using cache
51 ---> 13d64fbf944c
52Step 8/40 : ARG BUILD_USER_HOME=/home/django
53 ---> Using cache
54 ---> f3162c92a795
55Step 9/40 : ARG BUILD_PROJECT_PATH=/opt/django
56 ---> Using cache
57 ---> 1b0357313db1
58Step 10/40 : ARG BUILD_PROJECT_PORT=8000
59 ---> Using cache
60 ---> 11c4fc7ee4a1
61Step 11/40 : ENV DJANGO_USER=${BUILD_USER}
62 ---> Using cache
63 ---> ee3f7db34a9f
64Step 12/40 : ENV DJANGO_USER_GROUP=${BUILD_USER_GROUP}
65 ---> Using cache
66 ---> 6aa2918f8612
67Step 13/40 : ENV DJANGO_USER_PASSWORD=${BUILD_USER_PASSWORD}
68 ---> Using cache
69 ---> d220b0f851b6
70Step 14/40 : ENV DJANGO_USER_SHELL=${BUILD_USER_SHELL}
71 ---> Using cache
72 ---> 29839824fc18
73Step 15/40 : ENV DJANGO_USER_UID=${BUILD_USER_UID}
74 ---> Using cache
75 ---> 6535e60c1d67
76Step 16/40 : ENV DJANGO_USER_GID=${BUILD_USER_GID}
77 ---> Using cache
78 ---> 063c0f4c54ad
79Step 17/40 : ENV DJANGO_USER_HOME=${BUILD_USER_HOME}
80 ---> Using cache
81 ---> 68d84d1f4ccd
82Step 18/40 : ENV PROJECT_PATH=${BUILD_PROJECT_PATH}
83 ---> Using cache
84 ---> 9337ad7f4a45
85Step 19/40 : ENV PROJECT_PORT=${BUILD_PROJECT_PORT}
86 ---> Using cache
87 ---> eef577cb0d14
88Step 20/40 : RUN echo "Acquire::ForceIPv4 \"true\";" > /etc/apt/apt.conf.d/99force-ipv4
89 ---> Using cache
90 ---> 595282f73e28
91Step 21/40 : RUN set -x && addgroup --gid ${DJANGO_USER_GID} ${DJANGO_USER_GROUP} && adduser --system --uid ${DJANGO_USER_UID} --gid ${DJANGO_USER_GID} --shell ${DJANGO_USER_SHELL} ${DJANGO_USER} && echo "${DJANGO_USER}:${DJANGO_USER_PASSWORD}" | chpasswd
92 ---> Using cache
93 ---> 6992ce332ff2
94Step 22/40 : RUN mkdir -p ${PROJECT_PATH}; chown -R "${BUILD_USER}:${BUILD_USER}" ${PROJECT_PATH};
95 ---> Using cache
96 ---> c55bfc63a4ca
97Step 23/40 : RUN apt-get update && apt-get install -y --no-install-recommends -o Acquire::ForceIPv4=true curl git build-essential linux-headers-amd64 postgresql-client postgresql-contrib libpq-dev libpcre3 libpcre3-dev gettext cron ;
98 ---> Using cache
99 ---> 6cc13d321ad7
100Step 24/40 : RUN pip3 install --upgrade pip
101 ---> Using cache
102 ---> a4b46e194dcc
103Step 25/40 : COPY system-requirements.txt /
104 ---> Using cache
105 ---> ec1003eb2498
106Step 26/40 : RUN pip3 install -r /system-requirements.txt
107 ---> Using cache
108 ---> 2bf8fd131ad6
109Step 27/40 : ENV GOSU_VERSION 1.10
110 ---> Using cache
111 ---> ebc3901e0d62
112Step 28/40 : RUN set -x && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" && export GNUPGHOME="$(mktemp -d)" && for server in ha.pool.sks-keyservers.net hkp://p80.pool.sks-keyservers.net:80 keyserver.ubuntu.com hkp://keyserver.ubuntu.com:80 pgp.mit.edu; do gpg --keyserver "$server" --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && break || echo "Trying new server..."; done && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc && chmod +xs /usr/local/bin/gosu && gosu nobody true && apt-get purge -y --auto-remove ca-certificates wget
113 ---> Using cache
114 ---> 642b80d0af39
115Step 29/40 : RUN apt-get update && apt-get install -y openssh-server && mkdir /var/run/sshd && sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config && sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd && /usr/bin/ssh-keygen -A
116 ---> Using cache
117 ---> c098c1e18385
118Step 30/40 : ENV NOTVISIBLE "in users profile"
119 ---> Using cache
120 ---> f066d93b12f6
121Step 31/40 : RUN echo "export VISIBLE=now" >> /etc/profile
122 ---> Using cache
123 ---> 455d9c34f92d
124Step 32/40 : RUN rm -rf /var/lib/apt/lists/*
125 ---> Using cache
126 ---> 4ff355277a48
127Step 33/40 : COPY run.sh /opt/
128 ---> Using cache
129 ---> 5a9ff33d7fd8
130Step 34/40 : RUN chown ${BUILD_USER}:${BUILD_USER} /opt/run.sh
131 ---> Using cache
132 ---> 18a135960956
133Step 35/40 : RUN chmod +x /opt/run.sh
134 ---> Using cache
135 ---> bcaac8b1650d
136Step 36/40 : USER ${BUILD_USER}
137 ---> Using cache
138 ---> 302cf4c3bb5c
139Step 37/40 : RUN echo 'db:5432:*:rating:rating' > ~/.pgpass; chmod 600 ~/.pgpass;
140 ---> Using cache
141 ---> 67340ebf616f
142Step 38/40 : WORKDIR ${PROJECT_PATH}
143 ---> Using cache
144 ---> f10911feb97b
145Step 39/40 : VOLUME ${PROJECT_PATH} /mnt
146 ---> Using cache
147 ---> 5d9639fd12c9
148Step 40/40 : EXPOSE ${PROJECT_PORT} 22
149 ---> Using cache
150 ---> b03d8436278e
151Successfully built b03d8436278e
152Successfully tagged rating_test_app:latest
153
154p_rytvinsky at BY1-AL-139 in ~/projects/xtimonx/rating_test (master)
155$ docker-compose up
156Starting rating_test_db_1 ... done
157Starting rating_test_redis_1 ... done
158Starting rating_test_rabbitmq_1 ... done
159Starting rating_test_app_1 ... done
160Attaching to rating_test_rabbitmq_1, rating_test_db_1, rating_test_redis_1, rating_test_app_1
161redis_1 | 1:C 18 Apr 2019 14:49:23.666 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
162redis_1 | 1:C 18 Apr 2019 14:49:23.666 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=1, just started
163redis_1 | 1:C 18 Apr 2019 14:49:23.666 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
164redis_1 | 1:M 18 Apr 2019 14:49:23.668 * Running mode=standalone, port=6379.
165redis_1 | 1:M 18 Apr 2019 14:49:23.669 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
166redis_1 | 1:M 18 Apr 2019 14:49:23.669 # Server initialized
167redis_1 | 1:M 18 Apr 2019 14:49:23.669 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
168redis_1 | 1:M 18 Apr 2019 14:49:23.681 * DB loaded from disk: 0.012 seconds
169redis_1 | 1:M 18 Apr 2019 14:49:23.681 * Ready to accept connections
170app_1 | Exception in thread Thread-3:
171app_1 | Traceback (most recent call last):
172app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
173app_1 | self.connect()
174app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 195, in connect
175app_1 | self.connection = self.get_new_connection(conn_params)
176app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 178, in get_new_connection
177app_1 | connection = Database.connect(**conn_params)
178app_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
179app_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
180app_1 | psycopg2.OperationalError: could not connect to server: Connection refused
181app_1 | Is the server running on host "db" (172.21.0.4) and accepting
182app_1 | TCP/IP connections on port 5432?
183app_1 |
184app_1 |
185app_1 | The above exception was the direct cause of the following exception:
186app_1 |
187app_1 | Traceback (most recent call last):
188app_1 | File "/usr/local/lib/python3.7/threading.py", line 917, in _bootstrap_inner
189app_1 | self.run()
190app_1 | File "/opt/django/common/mv_refresher.py", line 13, in run
191app_1 | with connection.cursor() as cursor:
192app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 256, in cursor
193app_1 | return self._cursor()
194app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 233, in _cursor
195app_1 | self.ensure_connection()
196app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
197app_1 | self.connect()
198app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 89, in __exit__
199app_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
200app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
201app_1 | self.connect()
202app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 195, in connect
203app_1 | self.connection = self.get_new_connection(conn_params)
204app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 178, in get_new_connection
205app_1 | connection = Database.connect(**conn_params)
206app_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
207app_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
208app_1 | django.db.utils.OperationalError: could not connect to server: Connection refused
209app_1 | Is the server running on host "db" (172.21.0.4) and accepting
210app_1 | TCP/IP connections on port 5432?
211app_1 |
212app_1 |
213app_1 | Traceback (most recent call last):
214app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
215app_1 | self.connect()
216app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 195, in connect
217app_1 | self.connection = self.get_new_connection(conn_params)
218app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 178, in get_new_connection
219app_1 | connection = Database.connect(**conn_params)
220app_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
221app_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
222app_1 | psycopg2.OperationalError: could not connect to server: Connection refused
223app_1 | Is the server running on host "db" (172.21.0.4) and accepting
224app_1 | TCP/IP connections on port 5432?
225app_1 |
226app_1 |
227app_1 | The above exception was the direct cause of the following exception:
228app_1 |
229app_1 | Traceback (most recent call last):
230app_1 | File "manage.py", line 21, in <module>
231app_1 | main()
232app_1 | File "manage.py", line 17, in main
233app_1 | execute_from_command_line(sys.argv)
234app_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
235app_1 | utility.execute()
236app_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
237app_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
238app_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
239app_1 | self.execute(*args, **cmd_options)
240app_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
241app_1 | output = self.handle(*args, **options)
242app_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
243app_1 | res = handle_func(*args, **kwargs)
244app_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 87, in handle
245app_1 | executor = MigrationExecutor(connection, self.migration_progress_callback)
246app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 18, in __init__
247app_1 | self.loader = MigrationLoader(self.connection)
248app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 49, in __init__
249app_1 | self.build_graph()
250app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/loader.py", line 212, in build_graph
251app_1 | self.applied_migrations = recorder.applied_migrations()
252app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 73, in applied_migrations
253app_1 | if self.has_table():
254app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 56, in has_table
255app_1 | return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())
256app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 256, in cursor
257app_1 | return self._cursor()
258app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 233, in _cursor
259app_1 | self.ensure_connection()
260app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
261app_1 | self.connect()
262app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 89, in __exit__
263app_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
264app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
265app_1 | self.connect()
266app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 195, in connect
267app_1 | self.connection = self.get_new_connection(conn_params)
268app_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 178, in get_new_connection
269app_1 | connection = Database.connect(**conn_params)
270app_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
271app_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
272app_1 | django.db.utils.OperationalError: could not connect to server: Connection refused
273app_1 | Is the server running on host "db" (172.21.0.4) and accepting
274app_1 | TCP/IP connections on port 5432?
275app_1 |
276db_1 | 2019-04-18 14:49:28.650 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
277db_1 | 2019-04-18 14:49:28.650 UTC [1] LOG: listening on IPv6 address "::", port 5432
278db_1 | 2019-04-18 14:49:28.654 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
279db_1 | 2019-04-18 14:49:28.772 UTC [22] LOG: database system was interrupted; last known up at 2019-04-18 09:15:15 UTC
280app_1 | Watching for file changes with StatReloader
281db_1 | 2019-04-18 14:49:29.986 UTC [23] FATAL: the database system is starting up
282db_1 | 2019-04-18 14:49:30.394 UTC [24] FATAL: the database system is starting up
283db_1 | 2019-04-18 14:49:33.830 UTC [22] LOG: database system was not properly shut down; automatic recovery in progress
284db_1 | 2019-04-18 14:49:33.926 UTC [22] LOG: redo starts at 0/1634558
285db_1 | 2019-04-18 14:49:33.927 UTC [22] LOG: invalid record length at 0/1634590: wanted 24, got 0
286db_1 | 2019-04-18 14:49:33.927 UTC [22] LOG: redo done at 0/1634558
287db_1 | 2019-04-18 14:49:34.168 UTC [1] LOG: database system is ready to accept connections
288rabbitmq_1 | 2019-04-18 14:49:39.939 [info] <0.238.0>
289rabbitmq_1 | Starting RabbitMQ 3.7.14 on Erlang 21.3.5
290rabbitmq_1 | Copyright (C) 2007-2019 Pivotal Software, Inc.
291rabbitmq_1 | Licensed under the MPL. See https://www.rabbitmq.com/
292rabbitmq_1 |
293rabbitmq_1 | ## ##
294rabbitmq_1 | ## ## RabbitMQ 3.7.14. Copyright (C) 2007-2019 Pivotal Software, Inc.
295rabbitmq_1 | ########## Licensed under the MPL. See https://www.rabbitmq.com/
296rabbitmq_1 | ###### ##
297rabbitmq_1 | ########## Logs: <stdout>
298rabbitmq_1 |
299rabbitmq_1 | Starting broker...
300rabbitmq_1 | 2019-04-18 14:49:39.942 [info] <0.238.0>
301rabbitmq_1 | node : rabbit@fcdf1e0cf794
302rabbitmq_1 | home dir : /var/lib/rabbitmq
303rabbitmq_1 | config file(s) : /etc/rabbitmq/rabbitmq.conf
304rabbitmq_1 | cookie hash : f3/VOrjdozJfEH2QQglLXQ==
305rabbitmq_1 | log(s) : <stdout>
306rabbitmq_1 | database dir : /var/lib/rabbitmq/mnesia/rabbit@fcdf1e0cf794
307rabbitmq_1 | 2019-04-18 14:49:39.969 [info] <0.238.0> Running boot step pre_boot defined by app rabbit
308rabbitmq_1 | 2019-04-18 14:49:39.970 [info] <0.238.0> Running boot step rabbit_core_metrics defined by app rabbit
309rabbitmq_1 | 2019-04-18 14:49:39.971 [info] <0.238.0> Running boot step rabbit_alarm defined by app rabbit
310rabbitmq_1 | 2019-04-18 14:49:39.996 [info] <0.259.0> Memory high watermark set to 799 MiB (838465945 bytes) of 1999 MiB (2096164864 bytes) total
311rabbitmq_1 | 2019-04-18 14:49:40.035 [info] <0.272.0> Enabling free disk space monitoring
312rabbitmq_1 | 2019-04-18 14:49:40.035 [info] <0.272.0> Disk free limit set to 50MB
313rabbitmq_1 | 2019-04-18 14:49:40.045 [info] <0.238.0> Running boot step code_server_cache defined by app rabbit
314rabbitmq_1 | 2019-04-18 14:49:40.045 [info] <0.238.0> Running boot step file_handle_cache defined by app rabbit
315rabbitmq_1 | 2019-04-18 14:49:40.045 [info] <0.283.0> Limiting to approx 1048476 file handles (943626 sockets)
316rabbitmq_1 | 2019-04-18 14:49:40.045 [info] <0.284.0> FHC read buffering: OFF
317rabbitmq_1 | 2019-04-18 14:49:40.045 [info] <0.284.0> FHC write buffering: ON
318rabbitmq_1 | 2019-04-18 14:49:40.046 [info] <0.238.0> Running boot step worker_pool defined by app rabbit
319rabbitmq_1 | 2019-04-18 14:49:40.047 [info] <0.238.0> Running boot step database defined by app rabbit
320rabbitmq_1 | 2019-04-18 14:49:40.059 [info] <0.238.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
321rabbitmq_1 | 2019-04-18 14:49:40.090 [info] <0.238.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
322rabbitmq_1 | 2019-04-18 14:49:40.091 [info] <0.238.0> Peer discovery backend rabbit_peer_discovery_classic_config does not support registration, skipping registration.
323rabbitmq_1 | 2019-04-18 14:49:40.092 [info] <0.238.0> Running boot step database_sync defined by app rabbit
324rabbitmq_1 | 2019-04-18 14:49:40.093 [info] <0.238.0> Running boot step codec_correctness_check defined by app rabbit
325rabbitmq_1 | 2019-04-18 14:49:40.094 [info] <0.238.0> Running boot step external_infrastructure defined by app rabbit
326rabbitmq_1 | 2019-04-18 14:49:40.094 [info] <0.238.0> Running boot step rabbit_registry defined by app rabbit
327rabbitmq_1 | 2019-04-18 14:49:40.094 [info] <0.238.0> Running boot step rabbit_auth_mechanism_cr_demo defined by app rabbit
328rabbitmq_1 | 2019-04-18 14:49:40.094 [info] <0.238.0> Running boot step rabbit_queue_location_random defined by app rabbit
329rabbitmq_1 | 2019-04-18 14:49:40.096 [info] <0.238.0> Running boot step rabbit_event defined by app rabbit
330rabbitmq_1 | 2019-04-18 14:49:40.097 [info] <0.238.0> Running boot step rabbit_auth_mechanism_amqplain defined by app rabbit
331rabbitmq_1 | 2019-04-18 14:49:40.097 [info] <0.238.0> Running boot step rabbit_auth_mechanism_plain defined by app rabbit
332rabbitmq_1 | 2019-04-18 14:49:40.098 [info] <0.238.0> Running boot step rabbit_exchange_type_direct defined by app rabbit
333rabbitmq_1 | 2019-04-18 14:49:40.098 [info] <0.238.0> Running boot step rabbit_exchange_type_fanout defined by app rabbit
334rabbitmq_1 | 2019-04-18 14:49:40.099 [info] <0.238.0> Running boot step rabbit_exchange_type_headers defined by app rabbit
335rabbitmq_1 | 2019-04-18 14:49:40.100 [info] <0.238.0> Running boot step rabbit_exchange_type_topic defined by app rabbit
336rabbitmq_1 | 2019-04-18 14:49:40.100 [info] <0.238.0> Running boot step rabbit_mirror_queue_mode_all defined by app rabbit
337rabbitmq_1 | 2019-04-18 14:49:40.101 [info] <0.238.0> Running boot step rabbit_mirror_queue_mode_exactly defined by app rabbit
338rabbitmq_1 | 2019-04-18 14:49:40.102 [info] <0.238.0> Running boot step rabbit_mirror_queue_mode_nodes defined by app rabbit
339rabbitmq_1 | 2019-04-18 14:49:40.103 [info] <0.238.0> Running boot step rabbit_priority_queue defined by app rabbit
340rabbitmq_1 | 2019-04-18 14:49:40.103 [info] <0.238.0> Priority queues enabled, real BQ is rabbit_variable_queue
341rabbitmq_1 | 2019-04-18 14:49:40.103 [info] <0.238.0> Running boot step rabbit_queue_location_client_local defined by app rabbit
342rabbitmq_1 | 2019-04-18 14:49:40.104 [info] <0.238.0> Running boot step rabbit_queue_location_min_masters defined by app rabbit
343rabbitmq_1 | 2019-04-18 14:49:40.104 [info] <0.238.0> Running boot step kernel_ready defined by app rabbit
344rabbitmq_1 | 2019-04-18 14:49:40.105 [info] <0.238.0> Running boot step rabbit_sysmon_minder defined by app rabbit
345rabbitmq_1 | 2019-04-18 14:49:40.105 [info] <0.238.0> Running boot step rabbit_epmd_monitor defined by app rabbit
346rabbitmq_1 | 2019-04-18 14:49:40.109 [info] <0.238.0> Running boot step guid_generator defined by app rabbit
347rabbitmq_1 | 2019-04-18 14:49:40.138 [info] <0.238.0> Running boot step rabbit_node_monitor defined by app rabbit
348rabbitmq_1 | 2019-04-18 14:49:40.139 [info] <0.308.0> Starting rabbit_node_monitor
349rabbitmq_1 | 2019-04-18 14:49:40.139 [info] <0.238.0> Running boot step delegate_sup defined by app rabbit
350rabbitmq_1 | 2019-04-18 14:49:40.142 [info] <0.238.0> Running boot step rabbit_memory_monitor defined by app rabbit
351rabbitmq_1 | 2019-04-18 14:49:40.142 [info] <0.238.0> Running boot step core_initialized defined by app rabbit
352rabbitmq_1 | 2019-04-18 14:49:40.142 [info] <0.238.0> Running boot step upgrade_queues defined by app rabbit
353rabbitmq_1 | 2019-04-18 14:49:40.164 [info] <0.238.0> Running boot step rabbit_connection_tracking_handler defined by app rabbit
354rabbitmq_1 | 2019-04-18 14:49:40.164 [info] <0.238.0> Running boot step rabbit_exchange_parameters defined by app rabbit
355rabbitmq_1 | 2019-04-18 14:49:40.165 [info] <0.238.0> Running boot step rabbit_mirror_queue_misc defined by app rabbit
356rabbitmq_1 | 2019-04-18 14:49:40.166 [info] <0.238.0> Running boot step rabbit_policies defined by app rabbit
357rabbitmq_1 | 2019-04-18 14:49:40.167 [info] <0.238.0> Running boot step rabbit_policy defined by app rabbit
358rabbitmq_1 | 2019-04-18 14:49:40.168 [info] <0.238.0> Running boot step rabbit_queue_location_validator defined by app rabbit
359rabbitmq_1 | 2019-04-18 14:49:40.168 [info] <0.238.0> Running boot step rabbit_vhost_limit defined by app rabbit
360rabbitmq_1 | 2019-04-18 14:49:40.169 [info] <0.238.0> Running boot step recovery defined by app rabbit
361rabbitmq_1 | 2019-04-18 14:49:40.174 [info] <0.335.0> Making sure data directory '/var/lib/rabbitmq/mnesia/rabbit@fcdf1e0cf794/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L' for vhost '/' exists
362rabbitmq_1 | 2019-04-18 14:49:40.204 [info] <0.335.0> Starting message stores for vhost '/'
363rabbitmq_1 | 2019-04-18 14:49:40.205 [info] <0.339.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_transient": using rabbit_msg_store_ets_index to provide index
364rabbitmq_1 | 2019-04-18 14:49:40.227 [info] <0.335.0> Started message store of type transient for vhost '/'
365rabbitmq_1 | 2019-04-18 14:49:40.228 [info] <0.342.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": using rabbit_msg_store_ets_index to provide index
366rabbitmq_1 | 2019-04-18 14:49:40.238 [warning] <0.342.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": rebuilding indices from scratch
367rabbitmq_1 | 2019-04-18 14:49:40.247 [info] <0.335.0> Started message store of type persistent for vhost '/'
368rabbitmq_1 | 2019-04-18 14:49:40.250 [info] <0.238.0> Running boot step empty_db_check defined by app rabbit
369rabbitmq_1 | 2019-04-18 14:49:40.250 [info] <0.238.0> Running boot step rabbit_looking_glass defined by app rabbit
370rabbitmq_1 | 2019-04-18 14:49:40.250 [info] <0.238.0> Running boot step rabbit_core_metrics_gc defined by app rabbit
371rabbitmq_1 | 2019-04-18 14:49:40.251 [info] <0.238.0> Running boot step background_gc defined by app rabbit
372rabbitmq_1 | 2019-04-18 14:49:40.253 [info] <0.238.0> Running boot step connection_tracking defined by app rabbit
373rabbitmq_1 | 2019-04-18 14:49:40.253 [info] <0.238.0> Setting up a table for connection tracking on this node: tracked_connection_on_node_rabbit@fcdf1e0cf794
374rabbitmq_1 | 2019-04-18 14:49:40.254 [info] <0.238.0> Setting up a table for per-vhost connection counting on this node: tracked_connection_per_vhost_on_node_rabbit@fcdf1e0cf794
375rabbitmq_1 | 2019-04-18 14:49:40.255 [info] <0.238.0> Running boot step routing_ready defined by app rabbit
376rabbitmq_1 | 2019-04-18 14:49:40.255 [info] <0.238.0> Running boot step pre_flight defined by app rabbit
377rabbitmq_1 | 2019-04-18 14:49:40.255 [info] <0.238.0> Running boot step notify_cluster defined by app rabbit
378rabbitmq_1 | 2019-04-18 14:49:40.257 [info] <0.238.0> Running boot step networking defined by app rabbit
379rabbitmq_1 | 2019-04-18 14:49:40.260 [warning] <0.365.0> Setting Ranch options together with socket options is deprecated. Please use the new map syntax that allows specifying socket options separately from other options.
380rabbitmq_1 | 2019-04-18 14:49:40.262 [info] <0.379.0> started TCP listener on [::]:5672
381rabbitmq_1 | 2019-04-18 14:49:40.263 [info] <0.238.0> Running boot step direct_client defined by app rabbit
382rabbitmq_1 | completed with 0 plugins.
383rabbitmq_1 | 2019-04-18 14:49:40.510 [info] <0.8.0> Server startup complete; 0 plugins started.
384rabbitmq_1 | 2019-04-18 14:49:40.623 [info] <0.383.0> accepting AMQP connection <0.383.0> (172.21.0.5:33230 -> 172.21.0.2:5672)
385rabbitmq_1 | 2019-04-18 14:49:40.631 [info] <0.383.0> connection <0.383.0> (172.21.0.5:33230 -> 172.21.0.2:5672): user 'user' authenticated and granted access to vhost '/'
386rabbitmq_1 | 2019-04-18 14:49:41.041 [info] <0.401.0> accepting AMQP connection <0.401.0> (172.21.0.5:33234 -> 172.21.0.2:5672)
387rabbitmq_1 | 2019-04-18 14:49:41.048 [info] <0.401.0> connection <0.401.0> (172.21.0.5:33234 -> 172.21.0.2:5672): user 'user' authenticated and granted access to vhost '/'
388db_1 | 2019-04-18 14:50:01.164 UTC [31] ERROR: function refresh_leaderboard_mv() does not exist at character 8
389db_1 | 2019-04-18 14:50:01.164 UTC [31] HINT: No function matches the given name and argument types. You might need to add explicit type casts.
390db_1 | 2019-04-18 14:50:01.164 UTC [31] STATEMENT: SELECT refresh_leaderboard_mv();
391db_1 | 2019-04-18 14:51:01.174 UTC [33] ERROR: function refresh_leaderboard_mv() does not exist at character 8
392db_1 | 2019-04-18 14:51:01.174 UTC [33] HINT: No function matches the given name and argument types. You might need to add explicit type casts.
393db_1 | 2019-04-18 14:51:01.174 UTC [33] STATEMENT: SELECT refresh_leaderboard_mv();