· 5 years ago · Jan 29, 2020, 11:06 AM
1MacBook-Pro-Maxim:server lucio$ docker-compose up --b
2Creating network "server_default" with the default driver
3Building web
4Step 1/19 : FROM python:3.7
5 ---> b567432174fe
6Step 2/19 : ENV PYTHONUNBUFFERED 1
7 ---> Using cache
8 ---> 21d89f805e81
9Step 3/19 : RUN mkdir /code
10 ---> Using cache
11 ---> edfb6b308404
12Step 4/19 : WORKDIR /code
13 ---> Using cache
14 ---> dd5ec9cd4bdc
15Step 5/19 : ADD requirements.txt /code/
16 ---> Using cache
17 ---> 050d0b60ca03
18Step 6/19 : RUN pip install -r requirements.txt
19 ---> Using cache
20 ---> 6a0c1446a6ec
21Step 7/19 : ADD . /code/
22 ---> Using cache
23 ---> 2e736467ca17
24Step 8/19 : RUN echo 'alias manage="python manage.py"' >> ~/.bashrc
25 ---> Using cache
26 ---> 2718b34201a3
27Step 9/19 : RUN adduser --disabled-password --gecos '' django
28 ---> Using cache
29 ---> 07c2ba28f2d0
30Step 10/19 : RUN groupadd docker
31 ---> Using cache
32 ---> f828c10cbaae
33Step 11/19 : RUN usermod -aG docker django
34 ---> Using cache
35 ---> cad26ba3e9ca
36Step 12/19 : RUN mkdir ~/scripts/
37 ---> Using cache
38 ---> ca232b919bbd
39Step 13/19 : RUN chown -R django:django ~/
40 ---> Using cache
41 ---> 2830afbce4ba
42Step 14/19 : RUN chown -R django:django ~/scripts/
43 ---> Using cache
44 ---> 9cfe5f157c8e
45Step 15/19 : RUN chown -R django:django /code/
46 ---> Using cache
47 ---> 463954000cac
48Step 16/19 : ADD start.sh /home/django/scripts/
49 ---> Using cache
50 ---> f45405396dc8
51Step 17/19 : ADD wait_for_postgres.sh /home/django/scripts/
52 ---> Using cache
53 ---> 45e88c7db202
54Step 18/19 : RUN ["chmod", "+x", "/home/django/scripts/start.sh"]
55 ---> Using cache
56 ---> 6666cc2e4d85
57Step 19/19 : RUN ["chmod", "+x", "/home/django/scripts/wait_for_postgres.sh"]
58 ---> Using cache
59 ---> 82f2aaac5e4f
60Successfully built 82f2aaac5e4f
61Successfully tagged server_web:latest
62Creating server_clickhouse_1 ... done
63Creating server_postgres_1 ... done
64Creating server_web_1 ... done
65Attaching to server_postgres_1, server_clickhouse_1, server_web_1
66clickhouse_1 | Include not found: clickhouse_remote_servers
67clickhouse_1 | Include not found: clickhouse_compression
68clickhouse_1 | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
69clickhouse_1 | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
70clickhouse_1 | Include not found: networks
71postgres_1 | The files belonging to this database system will be owned by user "postgres".
72postgres_1 | This user must also own the server process.
73postgres_1 |
74postgres_1 | The database cluster will be initialized with locale "en_US.utf8".
75postgres_1 | The default database encoding has accordingly been set to "UTF8".
76postgres_1 | The default text search configuration will be set to "english".
77postgres_1 |
78postgres_1 | Data page checksums are disabled.
79postgres_1 |
80postgres_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
81postgres_1 | creating subdirectories ... ok
82postgres_1 | selecting default max_connections ... 100
83postgres_1 | selecting default shared_buffers ... 128MB
84postgres_1 | selecting default timezone ... Etc/UTC
85postgres_1 | selecting dynamic shared memory implementation ... posix
86postgres_1 | creating configuration files ... ok
87postgres_1 | running bootstrap script ... ok
88web_1 | Postgres еще не запустился, жду
89postgres_1 | performing post-bootstrap initialization ... ok
90postgres_1 | syncing data to disk ...
91postgres_1 | WARNING: enabling "trust" authentication for local connections
92postgres_1 | You can change this by editing pg_hba.conf or using the option -A, or
93postgres_1 | --auth-local and --auth-host, the next time you run initdb.
94postgres_1 | ok
95postgres_1 |
96postgres_1 | Success. You can now start the database server using:
97postgres_1 |
98postgres_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
99postgres_1 |
100postgres_1 | waiting for server to start....2020-01-29 11:01:16.755 UTC [44] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
101postgres_1 | 2020-01-29 11:01:16.775 UTC [45] LOG: database system was shut down at 2020-01-29 11:01:16 UTC
102postgres_1 | 2020-01-29 11:01:16.783 UTC [44] LOG: database system is ready to accept connections
103postgres_1 | done
104postgres_1 | server started
105web_1 | Postgres еще не запустился, жду
106postgres_1 | CREATE DATABASE
107postgres_1 |
108postgres_1 |
109postgres_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
110postgres_1 |
111postgres_1 | 2020-01-29 11:01:17.248 UTC [44] LOG: received fast shutdown request
112postgres_1 | waiting for server to shut down....2020-01-29 11:01:17.253 UTC [44] LOG: aborting any active transactions
113postgres_1 | 2020-01-29 11:01:17.259 UTC [44] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
114postgres_1 | 2020-01-29 11:01:17.260 UTC [46] LOG: shutting down
115postgres_1 | 2020-01-29 11:01:17.293 UTC [44] LOG: database system is shut down
116postgres_1 | done
117postgres_1 | server stopped
118postgres_1 |
119postgres_1 | PostgreSQL init process complete; ready for start up.
120postgres_1 |
121postgres_1 | 2020-01-29 11:01:17.374 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
122postgres_1 | 2020-01-29 11:01:17.376 UTC [1] LOG: listening on IPv6 address "::", port 5432
123postgres_1 | 2020-01-29 11:01:17.382 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
124postgres_1 | 2020-01-29 11:01:17.403 UTC [62] LOG: database system was shut down at 2020-01-29 11:01:17 UTC
125postgres_1 | 2020-01-29 11:01:17.410 UTC [1] LOG: database system is ready to accept connections
126clickhouse_1 | Include not found: clickhouse_remote_servers
127clickhouse_1 | Include not found: clickhouse_compression
128web_1 | Postgres запустился - запускаю сервер
129web_1 | CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0034_auto_20200124_1054, 0034_auto_20200124_1118 in apimanager).
130web_1 | To fix them run 'python manage.py makemigrations --merge'
131web_1 | CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0034_auto_20200124_1054, 0034_auto_20200124_1118 in apimanager).
132web_1 | To fix them run 'python manage.py makemigrations --merge'
133postgres_1 | 2020-01-29 11:01:23.597 UTC [72] ERROR: relation "apimanager_user" does not exist at character 8
134postgres_1 | 2020-01-29 11:01:23.597 UTC [72] STATEMENT: UPDATE "apimanager_user" SET "password" = 'pbkdf2_sha256$180000$dz3vQxHVL8Xt$Ug05TjBmjjbqa6iZGNs4VRdkHf+oC/4Vpf2Rpq8m5qM=', "last_login" = '2020-01-20T10:30:30.257000+00:00'::timestamptz, "is_superuser" = true, "username" = 'admin@example.com', "first_name" = 'Админ', "last_name" = 'Админович', "is_staff" = true, "is_active" = true, "date_joined" = '2019-12-23T11:02:53+00:00'::timestamptz, "email" = 'admin@example.com', "full_name" = 'Админенко Админ Админович2', "balance" = '9309.00', "api_key" = '7042549a3d775f5da889d319438a67fe139144c2', "secret_key" = 'e601806c4d615de62b7c5d685fca1e104766eda665037fce7116387f51c3' WHERE "apimanager_user"."id" = 1
135web_1 | Traceback (most recent call last):
136web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
137web_1 | return self.cursor.execute(sql, params)
138web_1 | psycopg2.errors.UndefinedTable: relation "apimanager_user" does not exist
139web_1 | LINE 1: UPDATE "apimanager_user" SET "password" = 'pbkdf2_sha256$180...
140web_1 | ^
141web_1 |
142web_1 |
143web_1 | The above exception was the direct cause of the following exception:
144web_1 |
145web_1 | Traceback (most recent call last):
146web_1 | File "/code/manage.py", line 21, in <module>
147web_1 | main()
148web_1 | File "/code/manage.py", line 17, in main
149web_1 | execute_from_command_line(sys.argv)
150web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
151web_1 | utility.execute()
152web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
153web_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
154web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
155web_1 | self.execute(*args, **cmd_options)
156web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
157web_1 | output = self.handle(*args, **options)
158web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
159web_1 | self.loaddata(fixture_labels)
160web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 114, in loaddata
161web_1 | self.load_label(fixture_label)
162web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 181, in load_label
163web_1 | obj.save(using=self.using)
164web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/serializers/base.py", line 223, in save
165web_1 | models.Model.save_base(self.object, using=using, raw=True, **kwargs)
166web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 784, in save_base
167web_1 | force_update, using, update_fields,
168web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 864, in _save_table
169web_1 | forced_update)
170web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 916, in _do_update
171web_1 | return filtered._update(values) > 0
172web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 771, in _update
173web_1 | return query.get_compiler(self.db).execute_sql(CURSOR)
174web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1485, in execute_sql
175web_1 | cursor = super().execute_sql(result_type)
176web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1137, in execute_sql
177web_1 | cursor.execute(sql, params)
178web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
179web_1 | return super().execute(sql, params)
180web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
181web_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
182web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
183web_1 | return executor(sql, params, many, context)
184web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
185web_1 | return self.cursor.execute(sql, params)
186web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
187web_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
188web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
189web_1 | return self.cursor.execute(sql, params)
190web_1 | django.db.utils.ProgrammingError: Problem installing fixture '/code/apimanager/fixtures/apimanager.json': Could not load apimanager.User(pk=1): relation "apimanager_user" does not exist
191web_1 | LINE 1: UPDATE "apimanager_user" SET "password" = 'pbkdf2_sha256$180...
192web_1 | ^
193web_1 |
194web_1 | Found another file with the destination path 'admin/js/SelectFilter2.js'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
195web_1 | Found another file with the destination path 'admin/js/admin/DateTimeShortcuts.js'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
196web_1 | Found another file with the destination path 'admin/js/admin/RelatedObjectLookups.js'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
197web_1 | Found another file with the destination path 'admin/css/base.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
198web_1 | Found another file with the destination path 'admin/css/dashboard.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
199web_1 | Found another file with the destination path 'admin/css/rtl.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
200web_1 | Found another file with the destination path 'admin/css/widgets.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
201web_1 | Found another file with the destination path 'admin/css/fonts.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
202web_1 | Found another file with the destination path 'admin/css/login.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
203web_1 | Found another file with the destination path 'admin/css/changelists.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
204web_1 | Found another file with the destination path 'admin/css/forms.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
205web_1 |
206web_1 | 454 static files copied to '/static'.
207web_1 | Watching for file changes with StatReloader
208web_1 | Performing system checks...
209web_1 |
210web_1 | System check identified no issues (0 silenced).
211web_1 |
212web_1 | You have 56 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, apimanager, auth, authtoken, contenttypes, jet, sessions.
213web_1 | Run 'python manage.py migrate' to apply them.
214web_1 | January 29, 2020 - 11:01:27
215web_1 | Django version 3.0.1, using settings 'settings.settings'
216web_1 | Starting development server at http://0.0.0.0:8000/
217web_1 | Quit the server with CONTROL-C.
218postgres_1 | 2020-01-29 11:01:49.757 UTC [74] ERROR: relation "django_session" does not exist at character 109
219postgres_1 | 2020-01-29 11:01:49.757 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:49.724070+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
220postgres_1 | 2020-01-29 11:01:50.933 UTC [74] ERROR: relation "django_session" does not exist at character 109
221postgres_1 | 2020-01-29 11:01:50.933 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:50.932542+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
222postgres_1 | 2020-01-29 11:01:51.020 UTC [74] ERROR: relation "django_session" does not exist at character 109
223postgres_1 | 2020-01-29 11:01:51.020 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.017681+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
224postgres_1 | 2020-01-29 11:01:51.100 UTC [74] ERROR: relation "django_session" does not exist at character 109
225postgres_1 | 2020-01-29 11:01:51.100 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.097918+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
226postgres_1 | 2020-01-29 11:01:51.311 UTC [74] ERROR: relation "django_session" does not exist at character 109
227postgres_1 | 2020-01-29 11:01:51.311 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" LIMIT 21
228postgres_1 | 2020-01-29 11:01:51.374 UTC [74] ERROR: relation "django_session" does not exist at character 109
229postgres_1 | 2020-01-29 11:01:51.374 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:49.724070+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
230postgres_1 | 2020-01-29 11:01:51.401 UTC [74] ERROR: relation "django_session" does not exist at character 109
231postgres_1 | 2020-01-29 11:01:51.401 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:49.724070+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
232postgres_1 | 2020-01-29 11:01:51.412 UTC [74] ERROR: relation "django_session" does not exist at character 109
233postgres_1 | 2020-01-29 11:01:51.412 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:49.724070+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
234postgres_1 | 2020-01-29 11:01:51.422 UTC [74] ERROR: relation "django_session" does not exist at character 109
235postgres_1 | 2020-01-29 11:01:51.422 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:49.724070+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
236postgres_1 | 2020-01-29 11:01:51.442 UTC [74] ERROR: relation "django_session" does not exist at character 109
237postgres_1 | 2020-01-29 11:01:51.442 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.440516+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
238web_1 | Internal Server Error: /
239web_1 | Traceback (most recent call last):
240web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py", line 199, in _get_session
241web_1 | return self._session_cache
242web_1 | AttributeError: 'SessionStore' object has no attribute '_session_cache'
243web_1 |
244web_1 | During handling of the above exception, another exception occurred:
245web_1 |
246web_1 | Traceback (most recent call last):
247web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
248web_1 | return self.cursor.execute(sql, params)
249web_1 | psycopg2.errors.UndefinedTable: relation "django_session" does not exist
250web_1 | LINE 1: ...ession_data", "django_session"."expire_date" FROM "django_se...
251web_1 | ^
252web_1 |
253web_1 |
254web_1 | The above exception was the direct cause of the following exception:
255web_1 |
256web_1 | Traceback (most recent call last):
257web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
258web_1 | response = get_response(request)
259web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
260web_1 | response = self.process_exception_by_middleware(e, request)
261web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
262web_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
263web_1 | File "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
264web_1 | return view_func(*args, **kwargs)
265web_1 | File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
266web_1 | return self.dispatch(request, *args, **kwargs)
267web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
268web_1 | response = self.handle_exception(exc)
269web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
270web_1 | self.raise_uncaught_exception(exc)
271web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
272web_1 | raise exc
273web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 493, in dispatch
274web_1 | self.initial(request, *args, **kwargs)
275web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 410, in initial
276web_1 | self.perform_authentication(request)
277web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 324, in perform_authentication
278web_1 | request.user
279web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/request.py", line 220, in user
280web_1 | self._authenticate()
281web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/request.py", line 373, in _authenticate
282web_1 | user_auth_tuple = authenticator.authenticate(self)
283web_1 | File "/usr/local/lib/python3.7/site-packages/rest_framework/authentication.py", line 123, in authenticate
284web_1 | if not user or not user.is_active:
285web_1 | File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 224, in inner
286web_1 | self._setup()
287web_1 | File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 360, in _setup
288web_1 | self._wrapped = self._setupfunc()
289web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/middleware.py", line 24, in <lambda>
290web_1 | request.user = SimpleLazyObject(lambda: get_user(request))
291web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/middleware.py", line 12, in get_user
292web_1 | request._cached_user = auth.get_user(request)
293web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/__init__.py", line 173, in get_user
294web_1 | user_id = _get_user_session_key(request)
295web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/__init__.py", line 58, in _get_user_session_key
296web_1 | return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY])
297web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py", line 64, in __getitem__
298web_1 | return self._session[key]
299web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py", line 204, in _get_session
300web_1 | self._session_cache = self.load()
301web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/db.py", line 43, in load
302web_1 | s = self._get_session_from_db()
303web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/db.py", line 34, in _get_session_from_db
304web_1 | expire_date__gt=timezone.now()
305web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
306web_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
307web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 411, in get
308web_1 | num = len(clone)
309web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 258, in __len__
310web_1 | self._fetch_all()
311web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 1261, in _fetch_all
312web_1 | self._result_cache = list(self._iterable_class(self))
313web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 57, in __iter__
314web_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
315web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1137, in execute_sql
316web_1 | cursor.execute(sql, params)
317web_1 | File "/usr/local/lib/python3.7/site-packages/debug_toolbar/panels/sql/tracking.py", line 192, in execute
318web_1 | return self._record(self.cursor.execute, sql, params)
319web_1 | File "/usr/local/lib/python3.7/site-packages/debug_toolbar/panels/sql/tracking.py", line 126, in _record
320web_1 | return method(sql, params)
321web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
322web_1 | return super().execute(sql, params)
323web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
324web_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
325web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
326web_1 | return executor(sql, params, many, context)
327web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
328web_1 | return self.cursor.execute(sql, params)
329web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
330web_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
331web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
332web_1 | return self.cursor.execute(sql, params)
333web_1 | django.db.utils.ProgrammingError: relation "django_session" does not exist
334web_1 | LINE 1: ...ession_data", "django_session"."expire_date" FROM "django_se...
335web_1 | ^
336web_1 |
337postgres_1 | 2020-01-29 11:01:51.908 UTC [74] ERROR: relation "django_session" does not exist at character 109
338postgres_1 | 2020-01-29 11:01:51.908 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.906270+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
339postgres_1 | 2020-01-29 11:01:52.016 UTC [74] ERROR: relation "django_session" does not exist at character 109
340postgres_1 | 2020-01-29 11:01:52.016 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" LIMIT 21
341postgres_1 | 2020-01-29 11:01:52.020 UTC [74] ERROR: relation "django_session" does not exist at character 109
342postgres_1 | 2020-01-29 11:01:52.020 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.906270+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
343postgres_1 | 2020-01-29 11:01:52.023 UTC [74] ERROR: relation "django_session" does not exist at character 109
344postgres_1 | 2020-01-29 11:01:52.023 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.906270+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
345postgres_1 | 2020-01-29 11:01:52.025 UTC [74] ERROR: relation "django_session" does not exist at character 109
346postgres_1 | 2020-01-29 11:01:52.025 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.906270+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
347postgres_1 | 2020-01-29 11:01:52.028 UTC [74] ERROR: relation "django_session" does not exist at character 109
348postgres_1 | 2020-01-29 11:01:52.028 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:51.906270+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
349postgres_1 | 2020-01-29 11:01:52.033 UTC [74] ERROR: relation "django_session" does not exist at character 109
350postgres_1 | 2020-01-29 11:01:52.033 UTC [74] STATEMENT: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > '2020-01-29T11:01:52.031553+00:00'::timestamptz AND "django_session"."session_key" = 'ebvturzjoa9clwhxg8deiewotgauwyll') LIMIT 21
351web_1 | Internal Server Error: /
352web_1 | Traceback (most recent call last):
353web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py", line 199, in _get_session
354web_1 | return self._session_cache
355web_1 | AttributeError: 'SessionStore' object has no attribute '_session_cache'
356web_1 |
357web_1 | During handling of the above exception, another exception occurred:
358web_1 |
359web_1 | Traceback (most recent call last):
360web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
361web_1 | return self.cursor.execute(sql, params)
362web_1 | psycopg2.errors.UndefinedTable: relation "django_session" does not exist
363web_1 | LINE 1: ...ession_data", "django_session"."expire_date" FROM "django_se...
364web_1 | ^
365web_1 |
366web_1 |
367web_1 | The above exception was the direct cause of the following exception:
368web_1 |
369web_1 | Traceback (most recent call last):
370web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
371web_1 | response = get_response(request)
372web_1 | File "/usr/local/lib/python3.7/site-packages/debug_toolbar/middleware.py", line 92, in __call__
373web_1 | panel.generate_stats(request, response)
374web_1 | File "/usr/local/lib/python3.7/site-packages/debug_toolbar/panels/request.py", line 58, in generate_stats
375web_1 | for k in sorted(request.session.keys())
376web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py", line 135, in keys
377web_1 | return self._session.keys()
378web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py", line 204, in _get_session
379web_1 | self._session_cache = self.load()
380web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/db.py", line 43, in load
381web_1 | s = self._get_session_from_db()
382web_1 | File "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/db.py", line 34, in _get_session_from_db
383web_1 | expire_date__gt=timezone.now()
384web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
385web_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
386web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 411, in get
387web_1 | num = len(clone)
388web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 258, in __len__
389web_1 | self._fetch_all()
390web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 1261, in _fetch_all
391web_1 | self._result_cache = list(self._iterable_class(self))
392web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 57, in __iter__
393web_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
394web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1137, in execute_sql
395web_1 | cursor.execute(sql, params)
396web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
397web_1 | return super().execute(sql, params)
398web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
399web_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
400web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
401web_1 | return executor(sql, params, many, context)
402web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
403web_1 | return self.cursor.execute(sql, params)
404web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
405web_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
406web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
407web_1 | return self.cursor.execute(sql, params)
408web_1 | django.db.utils.ProgrammingError: relation "django_session" does not exist
409web_1 | LINE 1: ...ession_data", "django_session"."expire_date" FROM "django_se...
410web_1 | ^
411web_1 |
412web_1 | [29/Jan/2020 11:01:52] "GET / HTTP/1.1" 500 155341