Closed gustavopdias closed 3 years ago
Hi Gustavo, so I have a full understanding of what's happening, can you do the following:
1) verify that all three containers are up and running docker ps
2) disclose the environment variables in .env (excluding secrets such as DJANGO_SECRET_KEY, POSTGRES_USER, and POSTGRES_PASSWORD) so that I can see that they are configured correctly
3) make sure that you have not assigned values to environment variables anywhere other than .env (sometimes I declare them in a bash startup script, and docker prioritizes this over the contents of .env)
Let me know the answers to these questions and we'll go from there. I'm almost certain that this is an issue with how your docker containers are being built or started up. Thanks!
It might also be helpful to see the startup logs from when you ran
docker-compose -f docker-compose-voice.yml up --build
If the db service did not start up correctly.
docker ps gives me:
All 3 containers are up and running. My .env is configured like this:
I am searching for assigned values outside of this .env file. I'll edit this comment if find any.
I managed to run the command successfully! Indeed, it seems like the issue was that the db service did not start up correctly when I built the containers. Here are the logs for both times I ran the command docker-compose -f docker-compose-voice.yml up --build
. The first is the failed one:
C:\Users\gusta\rxc-voice>docker-compose -f docker-compose-prod.yml up --build
WARNING: The REACT_APP_SITE_ID variable is not set. Defaulting to a blank string.
Creating network "rxc-voice_default" with the default driver
Creating volume "rxc-voice_db-data" with default driver
Building api
Step 1/8 : FROM python:3
---> a7cda474cef4
Step 2/8 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 6d9690c4ff61
Step 3/8 : RUN mkdir /backend
---> Using cache
---> a454384377c1
Step 4/8 : COPY backend/RxcVoiceApi/ /backend
---> 4e3056e11919
Step 5/8 : WORKDIR /backend
---> Running in 1c052408c8b1
Removing intermediate container 1c052408c8b1
---> ea7e73b79c9c
Step 6/8 : RUN pip install -r requirements.txt
---> Running in a8687cd3f969
Collecting Django==3.1.2
Downloading Django-3.1.2-py3-none-any.whl (7.8 MB)
Collecting django_guardian==2.3.0
Downloading django_guardian-2.3.0-py3-none-any.whl (106 kB)
Collecting djangorestframework==3.12.2
Downloading djangorestframework-3.12.2-py3-none-any.whl (957 kB)
Collecting django-cors-headers==3.3.0
Downloading django_cors_headers-3.3.0-py3-none-any.whl (14 kB)
Collecting gunicorn==20.0.4
Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB)
Collecting mailchimp3==3.0.14
Downloading mailchimp3-3.0.14-py2.py3-none-any.whl (94 kB)
Collecting oauth2==1.9.0.post1
Downloading oauth2-1.9.0.post1-py2.py3-none-any.whl (25 kB)
Collecting premailer==3.7.0
Downloading premailer-3.7.0-py2.py3-none-any.whl (18 kB)
Collecting psycopg2-binary==2.8.6
Downloading psycopg2_binary-2.8.6-cp38-cp38-manylinux1_x86_64.whl (3.0 MB)
Collecting sendgrid==6.3.1
Downloading sendgrid-6.3.1-py3-none-any.whl (71 kB)
Collecting six==1.15.0
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting whitenoise==5.2.0
Downloading whitenoise-5.2.0-py2.py3-none-any.whl (19 kB)
Collecting sqlparse>=0.2.2
Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB)
Collecting asgiref~=3.2.10
Downloading asgiref-3.2.10-py3-none-any.whl (19 kB)
Collecting pytz
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.8/site-packages (from gunicorn==20.0.4->-r requirements.txt (line 5)) (50.0.1)
Collecting requests>=2.7.0
Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting httplib2
Downloading httplib2-0.19.1-py3-none-any.whl (95 kB)
Collecting cachetools
Downloading cachetools-4.2.1-py3-none-any.whl (12 kB)
Collecting cssselect
Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting lxml
Downloading lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl (5.4 MB)
Collecting cssutils
Downloading cssutils-2.2.0-py3-none-any.whl (405 kB)
Collecting python-http-client>=3.2.1
Downloading python_http_client-3.3.2.tar.gz (7.8 kB)
Collecting chardet<5,>=3.0.2
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting idna<3,>=2.5
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
Collecting pyparsing<3,>=2.4.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Building wheels for collected packages: python-http-client
Building wheel for python-http-client (setup.py): started
Building wheel for python-http-client (setup.py): finished with status 'done'
Created wheel for python-http-client: filename=python_http_client-3.3.2-py3-none-any.whl size=8356 sha256=7cea69a4c48bf6d8774cb9504f489b6e7edf033e4e3aae793d5ff47520373263
Stored in directory: /root/.cache/pip/wheels/44/4d/e2/5ac1ad325b9a9bc0d81de055af71696fa4f49d8a7779377605
Successfully built python-http-client
Installing collected packages: sqlparse, asgiref, pytz, Django, django-guardian, djangorestframework, django-cors-headers, gunicorn, chardet, certifi, idna, urllib3, requests, mailchimp3, pyparsing, httplib2, oauth2, cachetools, cssselect, lxml, cssutils, premailer, psycopg2-binary, python-http-client, sendgrid, six, whitenoise
Successfully installed Django-3.1.2 asgiref-3.2.10 cachetools-4.2.1 certifi-2020.12.5 chardet-4.0.0 cssselect-1.1.0 cssutils-2.2.0 django-cors-headers-3.3.0 django-guardian-2.3.0 djangorestframework-3.12.2 gunicorn-20.0.4 httplib2-0.19.1 idna-2.10 lxml-4.6.3 mailchimp3-3.0.14 oauth2-1.9.0.post1 premailer-3.7.0 psycopg2-binary-2.8.6 pyparsing-2.4.7 python-http-client-3.3.2 pytz-2021.1 requests-2.25.1 sendgrid-6.3.1 six-1.15.0 sqlparse-0.4.1 urllib3-1.26.4 whitenoise-5.2.0
WARNING: You are using pip version 20.2.2; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Removing intermediate container a8687cd3f969
---> f19d43385a9b
Step 7/8 : ADD . /backend/
---> 3650a1e9270f
Step 8/8 : EXPOSE 8000
---> Running in f373dad5d385
Removing intermediate container f373dad5d385
---> bc0a7ab32d22
Successfully built bc0a7ab32d22
Successfully tagged rxc-voice_api:latest
Building polis
Step 1/11 : FROM node as builder
---> 40ce906a3734
Step 2/11 : RUN mkdir /polis-app
---> Using cache
---> b6155b35bdc1
Step 3/11 : COPY polis-app/ /polis-app
---> Using cache
---> 877b06d79e6d
Step 4/11 : COPY scripts/ /scripts
---> eb370b671ec4
Step 5/11 : WORKDIR /polis-app
---> Running in 0b3106003296
Removing intermediate container 0b3106003296
---> 800f637c06e6
Step 6/11 : EXPOSE 3000
---> Running in b31dc21f8695
Removing intermediate container b31dc21f8695
---> b53dcc371eb7
Step 7/11 : ARG REACT_APP_SITE_ID
---> Running in af1f3264f361
Removing intermediate container af1f3264f361
---> f5bed2fcbf7b
Step 8/11 : ENV REACT_APP_SITE_ID=${REACT_APP_SITE_ID}
---> Running in 771ca82ca719
Removing intermediate container 771ca82ca719
---> da9f5f8705eb
Step 9/11 : RUN npm install
---> Running in b1be8b936e4e
> node-sass@4.14.1 install /polis-app/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-83_binding.node
Download complete
Binary saved to /polis-app/node_modules/node-sass/vendor/linux-x64-83/binding.node
Caching binary to /root/.npm/node-sass/4.14.1/linux-x64-83_binding.node
> core-js@2.6.11 postinstall /polis-app/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js@3.7.0 postinstall /polis-app/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js-pure@3.7.0 postinstall /polis-app/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> ejs@2.7.4 postinstall /polis-app/node_modules/ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> node-sass@4.14.1 postinstall /polis-app/node_modules/node-sass
> node scripts/build.js
Binary found at /polis-app/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.2.1 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.2.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 2073 packages from 862 contributors and audited 2082 packages in 49.823s
119 packages are looking for funding
run `npm fund` for details
found 30 vulnerabilities (4 moderate, 26 high)
run `npm audit fix` to fix them, or `npm audit` for details
Removing intermediate container b1be8b936e4e
---> 8baa35b18ac2
Step 10/11 : RUN npm run build
---> Running in e519d947235a
> polis-app@0.1.0 build /polis-app
> react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
81.83 KB build/static/js/2.28163d2b.chunk.js
3.16 KB build/static/js/main.ba732010.chunk.js
1.58 KB build/static/css/main.d3b93335.chunk.css
1.4 KB build/static/js/3.2b4a7f86.chunk.js
1.17 KB build/static/js/runtime-main.56af4bef.js
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
https://cra.link/deployment
Removing intermediate container e519d947235a
---> a72645fc1bc1
Step 11/11 : RUN npm install -g serve
---> Running in b0135f40e1dc
/usr/local/bin/serve -> /usr/local/lib/node_modules/serve/bin/serve.js
+ serve@11.3.2
added 78 packages from 39 contributors in 4.807s
Removing intermediate container b0135f40e1dc
---> 62fbdd1de5c3
Successfully built 62fbdd1de5c3
Successfully tagged rxc-voice_polis:latest
Building voice
Step 1/9 : FROM node as builder
---> 40ce906a3734
Step 2/9 : RUN mkdir /rxc-voice
---> Using cache
---> 76e8bf506370
Step 3/9 : COPY rxc-voice/ /rxc-voice
---> 8c828921d2ed
Step 4/9 : COPY scripts/ /scripts
---> ac18a47adb77
Step 5/9 : WORKDIR /rxc-voice
---> Running in 3d9a71056196
Removing intermediate container 3d9a71056196
---> 1c0510a30267
Step 6/9 : EXPOSE 4000
---> Running in 39867b48a71c
Removing intermediate container 39867b48a71c
---> d9e38ff740b3
Step 7/9 : RUN npm install
---> Running in 62dd2fdb5969
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
> node-sass@4.14.1 install /rxc-voice/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-83_binding.node
Download complete
Binary saved to /rxc-voice/node_modules/node-sass/vendor/linux-x64-83/binding.node
Caching binary to /root/.npm/node-sass/4.14.1/linux-x64-83_binding.node
> core-js@2.6.12 postinstall /rxc-voice/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js@3.8.1 postinstall /rxc-voice/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js-pure@3.8.1 postinstall /rxc-voice/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> ejs@2.7.4 postinstall /rxc-voice/node_modules/ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> node-sass@4.14.1 postinstall /rxc-voice/node_modules/node-sass
> node scripts/build.js
Binary found at /rxc-voice/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.2.1 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.2.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 2063 packages from 846 contributors and audited 2072 packages in 46.992s
123 packages are looking for funding
run `npm fund` for details
found 6 vulnerabilities (1 low, 4 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Removing intermediate container 62dd2fdb5969
---> af074128a762
Step 8/9 : RUN npm run build
---> Running in 34def9c7cd91
> rxc-voice@0.1.0 build /rxc-voice
> react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
85.24 KB build/static/js/2.aabd349b.chunk.js
21.02 KB build/static/js/main.35e500b2.chunk.js
3.27 KB build/static/css/main.578e02fb.chunk.css
1.4 KB build/static/js/3.f2d5a307.chunk.js
1.17 KB build/static/js/runtime-main.520eba53.js
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
https://cra.link/deployment
Removing intermediate container 34def9c7cd91
---> e2b1e41d764c
Step 9/9 : RUN npm install -g serve
---> Running in de43128f65ba
/usr/local/bin/serve -> /usr/local/lib/node_modules/serve/bin/serve.js
+ serve@11.3.2
added 78 packages from 39 contributors in 4.584s
Removing intermediate container de43128f65ba
---> 5a62dea7e018
Successfully built 5a62dea7e018
Successfully tagged rxc-voice_voice:latest
Creating rxc-voice_api_1 ... done
Creating rxc-voice_polis_1 ... done
Creating rxc-voice_voice_1 ... done
Attaching to rxc-voice_api_1, rxc-voice_voice_1, rxc-voice_polis_1
polis_1 | INFO: Accepting connections at http://localhost:3000
voice_1 | INFO: Accepting connections at http://localhost:4000
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
api_1 | self.connect()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
api_1 | self.connection = self.get_new_connection(conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
api_1 | connection = Database.connect(**conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 127, in connect
api_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
api_1 | psycopg2.OperationalError: could not translate host name "db" to address: No address associated with hostname
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/backend/RxcVoiceApi/manage.py", line 22, in <module>
api_1 | main()
api_1 | File "/backend/RxcVoiceApi/manage.py", line 18, in main
api_1 | execute_from_command_line(sys.argv)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
api_1 | utility.execute()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
api_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
api_1 | self.execute(*args, **cmd_options)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
api_1 | output = self.handle(*args, **options)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped
api_1 | res = handle_func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/makemigrations.py", line 101, in handle
api_1 | loader.check_consistent_history(connection)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 290, in check_consistent_history
api_1 | applied = recorder.applied_migrations()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations
api_1 | if self.has_table():
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 55, in has_table
api_1 | with self.connection.cursor() as cursor:
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor
api_1 | return self._cursor()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor
api_1 | self.ensure_connection()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
api_1 | self.connect()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
api_1 | self.connect()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
api_1 | self.connection = self.get_new_connection(conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
api_1 | connection = Database.connect(**conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 127, in connect
api_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
api_1 | django.db.utils.OperationalError: could not translate host name "db" to address: No address associated with hostname
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
api_1 | self.connect()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
api_1 | self.connection = self.get_new_connection(conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
api_1 | connection = Database.connect(**conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 127, in connect
api_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
api_1 | psycopg2.OperationalError: could not translate host name "db" to address: No address associated with hostname
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/backend/RxcVoiceApi/manage.py", line 22, in <module>
api_1 | main()
api_1 | File "/backend/RxcVoiceApi/manage.py", line 18, in main
api_1 | execute_from_command_line(sys.argv)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
api_1 | utility.execute()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
api_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
api_1 | self.execute(*args, **cmd_options)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
api_1 | output = self.handle(*args, **options)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped
api_1 | res = handle_func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 92, in handle
api_1 | executor = MigrationExecutor(connection, self.migration_progress_callback)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in __init__
api_1 | self.loader = MigrationLoader(self.connection)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 53, in __init__
api_1 | self.build_graph()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 216, in build_graph
api_1 | self.applied_migrations = recorder.applied_migrations()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations
api_1 | if self.has_table():
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 55, in has_table
api_1 | with self.connection.cursor() as cursor:
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor
api_1 | return self._cursor()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor
api_1 | self.ensure_connection()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
api_1 | self.connect()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
api_1 | self.connect()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
api_1 | self.connection = self.get_new_connection(conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
api_1 | return func(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
api_1 | connection = Database.connect(**conn_params)
api_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 127, in connect
api_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
api_1 | django.db.utils.OperationalError: could not translate host name "db" to address: No address associated with hostname
api_1 |
api_1 |
api_1 | 167 static files copied to '/backend/RxcVoiceApi/static'.
api_1 | [2021-04-16 00:36:04 +0000] [12] [INFO] Starting gunicorn 20.0.4
api_1 | [2021-04-16 00:36:04 +0000] [12] [INFO] Listening at: http://0.0.0.0:8000 (12)
api_1 | [2021-04-16 00:36:04 +0000] [12] [INFO] Using worker: sync
api_1 | [2021-04-16 00:36:04 +0000] [14] [INFO] Booting worker with pid: 14
api_1 | [2021-04-16 00:36:04 +0000] [15] [INFO] Booting worker with pid: 15
api_1 | [2021-04-16 00:36:04 +0000] [16] [INFO] Booting worker with pid: 16
rxc-voice_api_1 exited with code 137
voice_1 |
voice_1 | INFO: Gracefully shutting down. Please wait...
rxc-voice_voice_1 exited with code 0
voice_1 |
voice_1 | > rxc-voice@0.1.0 start /rxc-voice
voice_1 | > PORT=4000 react-scripts start
voice_1 |
api_1 | No changes detected
api_1 | Operations to perform:
api_1 | Apply all migrations: admin, auth, authtoken, contenttypes, guardian, sessions
api_1 | Running migrations:
api_1 | Applying contenttypes.0001_initial... OK
api_1 | Applying auth.0001_initial... OK
api_1 | Applying admin.0001_initial... OK
api_1 | Applying admin.0002_logentry_remove_auto_add... OK
api_1 | Applying admin.0003_logentry_add_action_flag_choices... OK
api_1 | Applying contenttypes.0002_remove_content_type_name... OK
api_1 | Applying auth.0002_alter_permission_name_max_length... OK
api_1 | Applying auth.0003_alter_user_email_max_length... OK
api_1 | Applying auth.0004_alter_user_username_opts... OK
api_1 | Applying auth.0005_alter_user_last_login_null... OK
api_1 | Applying auth.0006_require_contenttypes_0002... OK
api_1 | Applying auth.0007_alter_validators_add_error_messages... OK
api_1 | Applying auth.0008_alter_user_username_max_length... OK
api_1 | Applying auth.0009_alter_user_last_name_max_length... OK
api_1 | Applying auth.0010_alter_group_name_max_length... OK
api_1 | Applying auth.0011_update_proxy_permissions... OK
api_1 | Applying auth.0012_alter_user_first_name_max_length... OK
api_1 | Applying authtoken.0001_initial... OK
api_1 | Applying authtoken.0002_auto_20160226_1747... OK
api_1 | Applying authtoken.0003_tokenproxy... OK
api_1 | Applying guardian.0001_initial... OK
api_1 | Applying guardian.0002_generic_permissions_index... OK
api_1 | Applying sessions.0001_initial... OK
voice_1 | ℹ 「wds」: Project is running at http://172.20.0.3/
voice_1 | ℹ 「wds」: webpack output is served from
voice_1 | ℹ 「wds」: Content not from webpack is served from /rxc-voice/public
voice_1 | ℹ 「wds」: 404s will fallback to /
voice_1 | Starting the development server...
voice_1 |
api_1 | Watching for file changes with StatReloader
api_1 | Performing system checks...
api_1 |
api_1 | System check identified no issues (0 silenced).
api_1 | April 16, 2021 - 16:46:47
api_1 | Django version 3.1.2, using settings 'RxcVoiceApi.settings'
api_1 | Starting development server at http://0.0.0.0:8000/
api_1 | Quit the server with CONTROL-C.
voice_1 | Compiled successfully!
voice_1 |
voice_1 | You can now view rxc-voice in the browser.
voice_1 |
voice_1 | Local: http://localhost:4000
voice_1 | On Your Network: http://172.20.0.3:4000
voice_1 |
voice_1 | Note that the development build is not optimized.
voice_1 | To create a production build, use npm run build.
voice_1 |
api_1 | [16/Apr/2021 16:50:43] "GET / HTTP/1.1" 201 5141
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 200 3385
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/prettify.css HTTP/1.1" 200 817
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 200 3597
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/csrf.js HTTP/1.1" 200 1719
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/default.css HTTP/1.1" 200 1131
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/default.js HTTP/1.1" 200 1268
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 200 13632
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 200 39680
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/jquery-3.5.1.min.js HTTP/1.1" 200 89476
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 200 121457
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/img/grid.png HTTP/1.1" 200 1458
api_1 | [16/Apr/2021 16:50:52] "GET /admin HTTP/1.1" 301 0
api_1 | [16/Apr/2021 16:50:52] "GET /admin/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:50:52] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 2199
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2138
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/login.css HTTP/1.1" 200 1185
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/base.css HTTP/1.1" 200 16307
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/responsive.css HTTP/1.1" 200 18294
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 1360
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
api_1 | [16/Apr/2021 16:50:53] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
api_1 | [16/Apr/2021 16:50:53] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
api_1 | [16/Apr/2021 16:51:20] "POST /admin/login/?next=/admin/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:51:20] "GET /admin/ HTTP/1.1" 200 7224
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/css/dashboard.css HTTP/1.1" 200 380
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
api_1 | [16/Apr/2021 16:54:43] "GET / HTTP/1.1" 201 5177
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/prettify.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/default.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/jquery-3.5.1.min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/csrf.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/default.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/img/grid.png HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /admin/auth/user/add/ HTTP/1.1" 200 9719
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/forms.css HTTP/1.1" 200 8423
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/core.js HTTP/1.1" 200 5418
api_1 | [16/Apr/2021 16:54:56] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 6078
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/urlify.js HTTP/1.1" 200 8632
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/actions.js HTTP/1.1" 200 6783
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/widgets.css HTTP/1.1" 200 10592
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 492
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 287630
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 232381
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/change_form.js HTTP/1.1" 200 606
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:55:08] "POST /admin/auth/user/add/ HTTP/1.1" 200 9896
api_1 | [16/Apr/2021 16:55:08] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:55:22] "POST /admin/auth/user/add/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:55:22] "GET /admin/auth/user/3/change/ HTTP/1.1" 200 21818
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/calendar.js HTTP/1.1" 200 7788
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/SelectBox.js HTTP/1.1" 200 4257
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19750
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 200 12350
api_1 | [16/Apr/2021 16:55:22] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/selector-icons.svg HTTP/1.1" 200 3291
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-clock.svg HTTP/1.1" 200 677
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 200 655
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-unknown-alt.svg HTTP/1.1" 200 655
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/search.svg HTTP/1.1" 200 458
api_1 | [16/Apr/2021 16:56:25] "POST /admin/auth/user/3/change/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:56:25] "GET /admin/auth/user/ HTTP/1.1" 200 11686
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/changelists.css HTTP/1.1" 200 6263
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/core.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/actions.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/urlify.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/icon-no.svg HTTP/1.1" 200 560
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /admin/auth/user/add/ HTTP/1.1" 200 9719
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/css/widgets.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/js/change_form.js HTTP/1.1" 304 0
api_1 | Internal Server Error: /admin/main/delegate/add/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | During handling of the above exception, another exception occurred:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 202, in _get_response
api_1 | response = response.render()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 105, in render
api_1 | self.content = self.rendered_content
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 83, in rendered_content
api_1 | return template.render(context, self._request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
api_1 | return self.template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 170, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 192, in render
api_1 | return template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 172, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 994, in render
api_1 | return render_value_in_context(output, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 973, in render_value_in_context
api_1 | value = str(value)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/html.py", line 376, in <lambda>
api_1 | klass.__str__ = lambda self: mark_safe(klass_str(self))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 34, in __str__
api_1 | return self.as_widget()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 93, in as_widget
api_1 | return widget.render(
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/widgets.py", line 283, in get_context
api_1 | 'rendered_widget': self.widget.render(name, value, attrs),
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 678, in get_context
api_1 | context = super().get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 639, in get_context
api_1 | context['widget']['optgroups'] = self.optgroups(name, context['widget']['value'], attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 587, in optgroups
api_1 | for index, (option_value, option_label) in enumerate(self.choices):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/models.py", line 1156, in __iter__
api_1 | for obj in queryset:
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 360, in _iterator
api_1 | yield from self._iterable_class(self, chunked_fetch=use_chunked_fetch, chunk_size=chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 53, in __iter__
api_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1159, in execute_sql
api_1 | cursor.close()
api_1 | psycopg2.errors.InvalidCursorName: cursor "_django_curs_140532353046272_sync_2" does not exist
api_1 |
api_1 | [16/Apr/2021 16:57:15] "GET /admin/main/delegate/add/ HTTP/1.1" 500 600901
api_1 | [16/Apr/2021 16:59:03] "GET /admin/ HTTP/1.1" 200 7826
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/css/dashboard.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:03] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /admin/auth/user/ HTTP/1.1" 200 11487
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/css/changelists.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/actions.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/urlify.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/core.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/img/search.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/img/icon-no.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:46] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:55] "GET /admin/auth/user/2/change/ HTTP/1.1" 200 21669
api_1 | [16/Apr/2021 16:59:55] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:55] "GET /static/admin/js/calendar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:55] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:55] "GET /static/admin/js/SelectBox.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:55] "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:55] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/css/widgets.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/js/change_form.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/img/icon-unknown-alt.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/img/selector-icons.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:59:56] "GET /static/admin/img/icon-clock.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /admin/password_change/ HTTP/1.1" 200 7042
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/css/widgets.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:29] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:50] "GET /admin/ HTTP/1.1" 200 7826
api_1 | [16/Apr/2021 17:02:50] "GET /static/admin/css/dashboard.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:50] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /admin/auth/user/ HTTP/1.1" 200 11487
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/css/changelists.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/actions.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/core.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/js/urlify.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/img/icon-no.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/img/search.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:02:56] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /admin/auth/user/2/change/ HTTP/1.1" 200 21669
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/js/SelectBox.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/js/calendar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/js/change_form.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/img/selector-icons.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/img/icon-unknown-alt.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/img/icon-clock.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:03:03] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 304 0
api_1 | Internal Server Error: /admin/main/conversation/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_conversation" does not exist
api_1 | LINE 1: SELECT COUNT(*) AS "__count" FROM "main_conversation"
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
api_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 614, in wrapper
api_1 | return self.admin_site.admin_view(view)(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/sites.py", line 233, in inner
api_1 | return view(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
api_1 | return bound_method(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1693, in changelist_view
api_1 | cl = self.get_changelist_instance(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 735, in get_changelist_instance
api_1 | return ChangeList(
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/views/main.py", line 100, in __init__
api_1 | self.get_results(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/views/main.py", line 235, in get_results
api_1 | result_count = paginator.count
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
api_1 | res = instance.__dict__[self.name] = self.func(instance)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/paginator.py", line 94, in count
api_1 | return c()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 411, in count
api_1 | return self.query.get_count(using=self.db)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/query.py", line 515, in get_count
api_1 | number = obj.get_aggregation(using, ['__count'])['__count']
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/query.py", line 500, in get_aggregation
api_1 | result = compiler.execute_sql(SINGLE)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_conversation" does not exist
api_1 | LINE 1: SELECT COUNT(*) AS "__count" FROM "main_conversation"
api_1 | ^
api_1 |
api_1 | [16/Apr/2021 17:03:26] "GET /admin/main/conversation/ HTTP/1.1" 500 163710
api_1 | [16/Apr/2021 17:03:31] "GET /admin/auth/user/2/change/ HTTP/1.1" 200 21669
api_1 | [16/Apr/2021 17:03:35] "GET /admin/ HTTP/1.1" 200 7826
api_1 | [16/Apr/2021 17:07:58] "OPTIONS / HTTP/1.1" 200 5454
api_1 | [16/Apr/2021 17:07:58] "GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:07:58] "GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:07:58] "GET /static/rest_framework/css/prettify.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:07:58] "GET /static/rest_framework/css/default.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:08:02] "OPTIONS / HTTP/1.1" 200 5454
api_1 | [16/Apr/2021 17:08:04] "OPTIONS / HTTP/1.1" 200 5454
api_1 | [16/Apr/2021 17:08:05] "OPTIONS / HTTP/1.1" 200 5454
api_1 | [16/Apr/2021 17:08:09] "GET /?format=api HTTP/1.1" 201 5221
api_1 | [16/Apr/2021 17:08:10] "GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:08:10] "GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:08:10] "GET /static/rest_framework/js/jquery-3.5.1.min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:08:10] "GET /static/rest_framework/js/csrf.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:08:10] "GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:08:10] "GET /static/rest_framework/js/default.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:08:12] "GET /?format=json HTTP/1.1" 201 45
api_1 | [16/Apr/2021 17:08:16] "GET /?format=api HTTP/1.1" 201 5221
api_1 | [16/Apr/2021 17:08:19] "OPTIONS /?format=api HTTP/1.1" 200 5498
api_1 | [16/Apr/2021 17:09:36] "GET /admin/auth/user/ HTTP/1.1" 200 11487
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/css/changelists.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/urlify.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/actions.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/core.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:36] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/img/search.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/img/icon-no.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:37] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /admin/auth/user/2/change/ HTTP/1.1" 200 21669
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/js/calendar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/js/SelectBox.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/css/widgets.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/js/change_form.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/img/selector-icons.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/img/icon-clock.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:09:46] "GET /static/admin/img/icon-unknown-alt.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:10:23] "POST /admin/auth/user/2/change/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 17:10:23] "GET /admin/auth/user/ HTTP/1.1" 200 11727
api_1 | [16/Apr/2021 17:10:23] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 17:10:45] "GET /admin/auth/user/2/change/ HTTP/1.1" 200 22416
api_1 | [16/Apr/2021 17:10:45] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 17:10:56] "POST /admin/auth/user/2/change/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 17:10:56] "GET /admin/auth/user/ HTTP/1.1" 200 11727
api_1 | [16/Apr/2021 17:10:56] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | Internal Server Error: /admin/main/delegate/add/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | During handling of the above exception, another exception occurred:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 202, in _get_response
api_1 | response = response.render()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 105, in render
api_1 | self.content = self.rendered_content
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 83, in rendered_content
api_1 | return template.render(context, self._request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
api_1 | return self.template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 170, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 192, in render
api_1 | return template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 172, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 994, in render
api_1 | return render_value_in_context(output, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 973, in render_value_in_context
api_1 | value = str(value)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/html.py", line 376, in <lambda>
api_1 | klass.__str__ = lambda self: mark_safe(klass_str(self))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 34, in __str__
api_1 | return self.as_widget()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 93, in as_widget
api_1 | return widget.render(
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/widgets.py", line 283, in get_context
api_1 | 'rendered_widget': self.widget.render(name, value, attrs),
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 678, in get_context
api_1 | context = super().get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 639, in get_context
api_1 | context['widget']['optgroups'] = self.optgroups(name, context['widget']['value'], attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 587, in optgroups
api_1 | for index, (option_value, option_label) in enumerate(self.choices):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/models.py", line 1156, in __iter__
api_1 | for obj in queryset:
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 360, in _iterator
api_1 | yield from self._iterable_class(self, chunked_fetch=use_chunked_fetch, chunk_size=chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 53, in __iter__
api_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1159, in execute_sql
api_1 | cursor.close()
api_1 | psycopg2.errors.InvalidCursorName: cursor "_django_curs_140532401567488_sync_2" does not exist
api_1 |
api_1 | [16/Apr/2021 17:11:01] "GET /admin/main/delegate/add/ HTTP/1.1" 500 600914
api_1 | [16/Apr/2021 17:13:17] "GET /admin/auth/user/ HTTP/1.1" 200 11515
api_1 | Internal Server Error: /admin/auth/user/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
api_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 614, in wrapper
api_1 | return self.admin_site.admin_view(view)(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/sites.py", line 233, in inner
api_1 | return view(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
api_1 | return bound_method(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1719, in changelist_view
api_1 | response = self.response_action(request, queryset=cl.get_queryset(request))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1402, in response_action
api_1 | response = func(self, request, queryset)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/actions.py", line 28, in delete_selected
api_1 | deletable_objects, model_count, perms_needed, protected = modeladmin.get_deleted_objects(queryset, request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1841, in get_deleted_objects
api_1 | return get_deleted_objects(objs, request, self.admin_site)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/utils.py", line 118, in get_deleted_objects
api_1 | collector.collect(objs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/utils.py", line 181, in collect
api_1 | return super().collect(objs, source_attr=source_attr, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/deletion.py", line 295, in collect
api_1 | if sub_objs:
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 291, in __bool__
api_1 | self._fetch_all()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1308, in _fetch_all
api_1 | self._result_cache = list(self._iterable_class(self))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 53, in __iter__
api_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "main_dele...
api_1 | ^
api_1 |
api_1 | [16/Apr/2021 17:13:36] "POST /admin/auth/user/ HTTP/1.1" 500 184000
api_1 | [16/Apr/2021 17:13:40] "GET /admin/auth/user/ HTTP/1.1" 200 11515
api_1 | [16/Apr/2021 17:13:46] "GET /admin/authtoken/tokenproxy/add/ HTTP/1.1" 200 8687
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/core.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/urlify.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/actions.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/css/widgets.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/js/change_form.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:46] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:53] "POST /admin/authtoken/tokenproxy/add/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 17:13:53] "GET /admin/authtoken/tokenproxy/ HTTP/1.1" 200 8523
api_1 | [16/Apr/2021 17:13:53] "GET /static/admin/css/changelists.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:53] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:53] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 17:13:53] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 304 0
api_1 | [17/Apr/2021 21:10:32] "GET /admin/authtoken/tokenproxy/ HTTP/1.1" 200 8285
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/css/changelists.css HTTP/1.1" 200 6263
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/js/core.js HTTP/1.1" 200 5418
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 6078
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/js/actions.js HTTP/1.1" 200 6783
api_1 | [17/Apr/2021 21:10:32] "GET /static/admin/js/urlify.js HTTP/1.1" 200 8632
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 287630
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 232381
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 1360
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
api_1 | [17/Apr/2021 21:10:33] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
api_1 | Internal Server Error: /admin/main/delegate/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: SELECT COUNT(*) AS "__count" FROM "main_delegate"
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
api_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 614, in wrapper
api_1 | return self.admin_site.admin_view(view)(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/sites.py", line 233, in inner
api_1 | return view(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
api_1 | return bound_method(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1693, in changelist_view
api_1 | cl = self.get_changelist_instance(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 735, in get_changelist_instance
api_1 | return ChangeList(
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/views/main.py", line 100, in __init__
api_1 | self.get_results(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/views/main.py", line 235, in get_results
api_1 | result_count = paginator.count
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
api_1 | res = instance.__dict__[self.name] = self.func(instance)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/paginator.py", line 94, in count
api_1 | return c()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 411, in count
api_1 | return self.query.get_count(using=self.db)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/query.py", line 515, in get_count
api_1 | number = obj.get_aggregation(using, ['__count'])['__count']
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/query.py", line 500, in get_aggregation
api_1 | result = compiler.execute_sql(SINGLE)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: SELECT COUNT(*) AS "__count" FROM "main_delegate"
api_1 | ^
api_1 |
api_1 | [17/Apr/2021 21:11:10] "GET /admin/main/delegate/ HTTP/1.1" 500 163513
api_1 | [17/Apr/2021 21:11:17] "GET /admin/authtoken/tokenproxy/ HTTP/1.1" 200 8285
api_1 | [17/Apr/2021 21:11:21] "GET /admin/main/conversation/add/ HTTP/1.1" 200 11652
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/js/calendar.js HTTP/1.1" 200 7788
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19750
api_1 | [17/Apr/2021 21:11:21] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 492
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/css/widgets.css HTTP/1.1" 200 10592
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/js/change_form.js HTTP/1.1" 200 606
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086
api_1 | [17/Apr/2021 21:11:21] "GET /static/admin/img/icon-clock.svg HTTP/1.1" 200 677
api_1 | Internal Server Error: /admin/main/delegate/add/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | During handling of the above exception, another exception occurred:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 202, in _get_response
api_1 | response = response.render()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 105, in render
api_1 | self.content = self.rendered_content
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 83, in rendered_content
api_1 | return template.render(context, self._request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
api_1 | return self.template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 170, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 192, in render
api_1 | return template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 172, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 994, in render
api_1 | return render_value_in_context(output, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 973, in render_value_in_context
api_1 | value = str(value)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/html.py", line 376, in <lambda>
api_1 | klass.__str__ = lambda self: mark_safe(klass_str(self))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 34, in __str__
api_1 | return self.as_widget()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 93, in as_widget
api_1 | return widget.render(
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/widgets.py", line 283, in get_context
api_1 | 'rendered_widget': self.widget.render(name, value, attrs),
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 678, in get_context
api_1 | context = super().get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 639, in get_context
api_1 | context['widget']['optgroups'] = self.optgroups(name, context['widget']['value'], attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 587, in optgroups
api_1 | for index, (option_value, option_label) in enumerate(self.choices):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/models.py", line 1156, in __iter__
api_1 | for obj in queryset:
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 360, in _iterator
api_1 | yield from self._iterable_class(self, chunked_fetch=use_chunked_fetch, chunk_size=chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 53, in __iter__
api_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1159, in execute_sql
api_1 | cursor.close()
api_1 | psycopg2.errors.InvalidCursorName: cursor "_django_curs_140532378486528_sync_2" does not exist
api_1 |
api_1 | [17/Apr/2021 21:11:26] "GET /admin/main/delegate/add/ HTTP/1.1" 500 600926
api_1 | [17/Apr/2021 21:11:31] "GET /admin/main/conversation/add/ HTTP/1.1" 200 11652
api_1 | Internal Server Error: /admin/main/delegate/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: SELECT COUNT(*) AS "__count" FROM "main_delegate"
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
api_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 614, in wrapper
api_1 | return self.admin_site.admin_view(view)(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/sites.py", line 233, in inner
api_1 | return view(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
api_1 | return bound_method(*args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
api_1 | response = view_func(request, *args, **kwargs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1693, in changelist_view
api_1 | cl = self.get_changelist_instance(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/options.py", line 735, in get_changelist_instance
api_1 | return ChangeList(
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/views/main.py", line 100, in __init__
api_1 | self.get_results(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/views/main.py", line 235, in get_results
api_1 | result_count = paginator.count
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
api_1 | res = instance.__dict__[self.name] = self.func(instance)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/paginator.py", line 94, in count
api_1 | return c()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 411, in count
api_1 | return self.query.get_count(using=self.db)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/query.py", line 515, in get_count
api_1 | number = obj.get_aggregation(using, ['__count'])['__count']
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/query.py", line 500, in get_aggregation
api_1 | result = compiler.execute_sql(SINGLE)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: SELECT COUNT(*) AS "__count" FROM "main_delegate"
api_1 | ^
api_1 |
api_1 | [17/Apr/2021 21:11:34] "GET /admin/main/delegate/ HTTP/1.1" 500 163514
api_1 | [17/Apr/2021 21:11:36] "GET /admin/main/conversation/add/ HTTP/1.1" 200 11652
api_1 | [17/Apr/2021 21:11:38] "GET /admin/main/election/add/ HTTP/1.1" 200 12165
api_1 | [17/Apr/2021 21:11:38] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | Internal Server Error: /admin/main/delegate/add/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | During handling of the above exception, another exception occurred:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 202, in _get_response
api_1 | response = response.render()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 105, in render
api_1 | self.content = self.rendered_content
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 83, in rendered_content
api_1 | return template.render(context, self._request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
api_1 | return self.template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 170, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 192, in render
api_1 | return template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 172, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 994, in render
api_1 | return render_value_in_context(output, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 973, in render_value_in_context
api_1 | value = str(value)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/html.py", line 376, in <lambda>
api_1 | klass.__str__ = lambda self: mark_safe(klass_str(self))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 34, in __str__
api_1 | return self.as_widget()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/boundfield.py", line 93, in as_widget
api_1 | return widget.render(
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/contrib/admin/widgets.py", line 283, in get_context
api_1 | 'rendered_widget': self.widget.render(name, value, attrs),
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 241, in render
api_1 | context = self.get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 678, in get_context
api_1 | context = super().get_context(name, value, attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 639, in get_context
api_1 | context['widget']['optgroups'] = self.optgroups(name, context['widget']['value'], attrs)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/widgets.py", line 587, in optgroups
api_1 | for index, (option_value, option_label) in enumerate(self.choices):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/forms/models.py", line 1156, in __iter__
api_1 | for obj in queryset:
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 360, in _iterator
api_1 | yield from self._iterable_class(self, chunked_fetch=use_chunked_fetch, chunk_size=chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 53, in __iter__
api_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1159, in execute_sql
api_1 | cursor.close()
api_1 | psycopg2.errors.InvalidCursorName: cursor "_django_curs_140532378486528_sync_7" does not exist
api_1 |
api_1 | [17/Apr/2021 21:11:41] "GET /admin/main/delegate/add/ HTTP/1.1" 500 600922
api_1 | [17/Apr/2021 21:11:55] "GET /admin/main/election/add/ HTTP/1.1" 200 12165
Here is the log from the successful run:
`C:\Users\gusta\rxc-voice>docker-compose -f docker-compose-voice.yml up --build WARNING: Found orphan containers (rxc-voice_polis_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. Building api Step 1/8 : FROM python:3 ---> a7cda474cef4 Step 2/8 : ENV PYTHONUNBUFFERED 1 ---> Using cache ---> 6d9690c4ff61 Step 3/8 : RUN mkdir /backend ---> Using cache ---> a454384377c1 Step 4/8 : COPY backend/RxcVoiceApi/ /backend ---> 08accc5c3299 Step 5/8 : WORKDIR /backend ---> Running in c24b70b1dbc4 Removing intermediate container c24b70b1dbc4 ---> bc50bffa2124 Step 6/8 : RUN pip install -r requirements.txt ---> Running in 87c376efcb57 Collecting Django==3.1.2 Downloading Django-3.1.2-py3-none-any.whl (7.8 MB) Collecting django_guardian==2.3.0 Downloading django_guardian-2.3.0-py3-none-any.whl (106 kB) Collecting djangorestframework==3.12.2 Downloading djangorestframework-3.12.2-py3-none-any.whl (957 kB) Collecting django-cors-headers==3.3.0 Downloading django_cors_headers-3.3.0-py3-none-any.whl (14 kB) Collecting gunicorn==20.0.4 Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB) Collecting mailchimp3==3.0.14 Downloading mailchimp3-3.0.14-py2.py3-none-any.whl (94 kB) Collecting oauth2==1.9.0.post1 Downloading oauth2-1.9.0.post1-py2.py3-none-any.whl (25 kB) Collecting premailer==3.7.0 Downloading premailer-3.7.0-py2.py3-none-any.whl (18 kB) Collecting psycopg2-binary==2.8.6 Downloading psycopg2_binary-2.8.6-cp38-cp38-manylinux1_x86_64.whl (3.0 MB) Collecting sendgrid==6.3.1 Downloading sendgrid-6.3.1-py3-none-any.whl (71 kB) Collecting six==1.15.0 Downloading six-1.15.0-py2.py3-none-any.whl (10 kB) Collecting whitenoise==5.2.0 Downloading whitenoise-5.2.0-py2.py3-none-any.whl (19 kB) Collecting sqlparse>=0.2.2 Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB) Collecting asgiref~=3.2.10 Downloading asgiref-3.2.10-py3-none-any.whl (19 kB) Collecting pytz Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.8/site-packages (from gunicorn==20.0.4->-r requirements.txt (line 5)) (50.0.1) Collecting requests>=2.7.0 Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB) Collecting httplib2 Downloading httplib2-0.19.1-py3-none-any.whl (95 kB) Collecting cachetools Downloading cachetools-4.2.1-py3-none-any.whl (12 kB) Collecting cssutils Downloading cssutils-2.2.0-py3-none-any.whl (405 kB) Collecting cssselect Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB) Collecting lxml Downloading lxml-4.6.3-cp38-cp38-manylinux1_x86_64.whl (5.4 MB) Collecting python-http-client>=3.2.1 Downloading python_http_client-3.3.2.tar.gz (7.8 kB) Collecting urllib3<1.27,>=1.21.1 Downloading urllib3-1.26.4-py2.py3-none-any.whl (153 kB) Collecting chardet<5,>=3.0.2 Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB) Collecting idna<3,>=2.5 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) Collecting certifi>=2017.4.17 Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB) Collecting pyparsing<3,>=2.4.2 Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) Building wheels for collected packages: python-http-client Building wheel for python-http-client (setup.py): started Building wheel for python-http-client (setup.py): finished with status 'done' Created wheel for python-http-client: filename=python_http_client-3.3.2-py3-none-any.whl size=8356 sha256=f649c5076ccb5d6a0b9985e17669b11d1b353b34b0cc0a30878b61806e6abf18 Stored in directory: /root/.cache/pip/wheels/44/4d/e2/5ac1ad325b9a9bc0d81de055af71696fa4f49d8a7779377605 Successfully built python-http-client Installing collected packages: sqlparse, asgiref, pytz, Django, django-guardian, djangorestframework, django-cors-headers, gunicorn, urllib3, chardet, idna, certifi, requests, mailchimp3, pyparsing, httplib2, oauth2, cachetools, cssutils, cssselect, lxml, premailer, psycopg2-binary, python-http-client, sendgrid, six, whitenoise Successfully installed Django-3.1.2 asgiref-3.2.10 cachetools-4.2.1 certifi-2020.12.5 chardet-4.0.0 cssselect-1.1.0 cssutils-2.2.0 django-cors-headers-3.3.0 django-guardian-2.3.0 djangorestframework-3.12.2 gunicorn-20.0.4 httplib2-0.19.1 idna-2.10 lxml-4.6.3 mailchimp3-3.0.14 oauth2-1.9.0.post1 premailer-3.7.0 psycopg2-binary-2.8.6 pyparsing-2.4.7 python-http-client-3.3.2 pytz-2021.1 requests-2.25.1 sendgrid-6.3.1 six-1.15.0 sqlparse-0.4.1 urllib3-1.26.4 whitenoise-5.2.0 WARNING: You are using pip version 20.2.2; however, version 21.0.1 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. Removing intermediate container 87c376efcb57 ---> fdeac936da2d Step 7/8 : ADD . /backend/ ---> 41491b8b7fcb Step 8/8 : EXPOSE 8000 ---> Running in 8a54fc0d85e4 Removing intermediate container 8a54fc0d85e4 ---> 5b62cc823d4b Successfully built 5b62cc823d4b Successfully tagged rxc-voice_api:latest Building voice Step 1/8 : FROM node ---> 40ce906a3734 Step 2/8 : RUN mkdir /rxc-voice ---> Using cache ---> 76e8bf506370 Step 3/8 : COPY rxc-voice/ /rxc-voice ---> Using cache ---> 8c828921d2ed Step 4/8 : COPY scripts/ /scripts ---> Using cache ---> ac18a47adb77 Step 5/8 : WORKDIR /rxc-voice ---> Using cache ---> 1c0510a30267 Step 6/8 : RUN npm install ---> Running in fc3656430756 npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
node-sass@4.14.1 install /rxc-voice/node_modules/node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-83_binding.node Download complete Binary saved to /rxc-voice/node_modules/node-sass/vendor/linux-x64-83/binding.node Caching binary to /root/.npm/node-sass/4.14.1/linux-x64-83_binding.node
core-js@2.6.12 postinstall /rxc-voice/node_modules/babel-runtime/node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
core-js@3.8.1 postinstall /rxc-voice/node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
core-js-pure@3.8.1 postinstall /rxc-voice/node_modules/core-js-pure node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
ejs@2.7.4 postinstall /rxc-voice/node_modules/ejs node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
node-sass@4.14.1 postinstall /rxc-voice/node_modules/node-sass node scripts/build.js
Binary found at /rxc-voice/node_modules/node-sass/vendor/linux-x64-83/binding.node Testing binary Binary is fine npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.2.1 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.2.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 2063 packages from 846 contributors and audited 2072 packages in 51.68s
123 packages are looking for funding
run npm fund
for details
found 6 vulnerabilities (1 low, 4 moderate, 1 high)
run npm audit fix
to fix them, or npm audit
for details
Removing intermediate container fc3656430756
---> c2c334968d26
Step 7/8 : RUN npm rebuild node-sass
---> Running in 0ca6d8accc33
node-sass@4.14.1 install /rxc-voice/node_modules/node-sass node scripts/install.js
node-sass build Binary found at /rxc-voice/node_modules/node-sass/vendor/linux-x64-83/binding.node
node-sass@4.14.1 postinstall /rxc-voice/node_modules/node-sass node scripts/build.js
Binary found at /rxc-voice/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine
node-sass@4.14.1 /rxc-voice/node_modules/node-sass
Removing intermediate container 0ca6d8accc33
---> d4970dfaffe6
Step 8/8 : EXPOSE 4000
---> Running in 9204a7ff2f5e
Removing intermediate container 9204a7ff2f5e
---> e3d1010839a5
Successfully built e3d1010839a5
Successfully tagged rxc-voice_voice:latest
Creating rxc-voice_db_1 ... done
Recreating rxc-voice_api_1 ... done
Recreating rxc-voice_voice_1 ... done
Attaching to rxc-voice_db_1, rxc-voice_api_1, rxc-voice_voice_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
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 | You can change this by editing pg_hba.conf or using the option -A, or
db_1 | --auth-local and --auth-host, the next time you run initdb.
db_1 | waiting for server to start....2021-04-16 20:46:29.338 UTC [46] LOG: starting PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-04-16 20:46:29.342 UTC [46] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-04-16 20:46:29.365 UTC [47] LOG: database system was shut down at 2021-04-16 20:46:28 UTC
db_1 | 2021-04-16 20:46:29.373 UTC [46] 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...2021-04-16 20:46:29.699 UTC [46] LOG: received fast shutdown request
db_1 | .2021-04-16 20:46:29.703 UTC [46] LOG: aborting any active transactions
db_1 | 2021-04-16 20:46:29.704 UTC [46] LOG: background worker "logical replication launcher" (PID 53) exited with exit code 1
db_1 | 2021-04-16 20:46:29.704 UTC [48] LOG: shutting down
db_1 | 2021-04-16 20:46:29.721 UTC [46] 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 | 2021-04-16 20:46:29.820 UTC [1] LOG: starting PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-04-16 20:46:29.825 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2021-04-16 20:46:29.825 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2021-04-16 20:46:29.830 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-04-16 20:46:29.837 UTC [74] LOG: database system was shut down at 2021-04-16 20:46:29 UTC
db_1 | 2021-04-16 20:46:29.842 UTC [1] LOG: database system is ready to accept connections
voice_1 |
voice_1 | > rxc-voice@0.1.0 start /rxc-voice
voice_1 | > PORT=4000 react-scripts start
voice_1 |
api_1 | No changes detected
api_1 | Operations to perform:
api_1 | Apply all migrations: admin, auth, authtoken, contenttypes, guardian, sessions
api_1 | Running migrations:
api_1 | Applying contenttypes.0001_initial... OK
api_1 | Applying auth.0001_initial... OK
api_1 | Applying admin.0001_initial... OK
api_1 | Applying admin.0002_logentry_remove_auto_add... OK
api_1 | Applying admin.0003_logentry_add_action_flag_choices... OK
api_1 | Applying contenttypes.0002_remove_content_type_name... OK
api_1 | Applying auth.0002_alter_permission_name_max_length... OK
api_1 | Applying auth.0003_alter_user_email_max_length... OK
api_1 | Applying auth.0004_alter_user_username_opts... OK
api_1 | Applying auth.0005_alter_user_last_login_null... OK
api_1 | Applying auth.0006_require_contenttypes_0002... OK
api_1 | Applying auth.0007_alter_validators_add_error_messages... OK
api_1 | Applying auth.0008_alter_user_username_max_length... OK
api_1 | Applying auth.0009_alter_user_last_name_max_length... OK
api_1 | Applying auth.0010_alter_group_name_max_length... OK
api_1 | Applying auth.0011_update_proxy_permissions... OK
api_1 | Applying auth.0012_alter_user_first_name_max_length... OK
api_1 | Applying authtoken.0001_initial... OK
api_1 | Applying authtoken.0002_auto_20160226_1747... OK
api_1 | Applying authtoken.0003_tokenproxy... OK
api_1 | Applying guardian.0001_initial... OK
api_1 | Applying guardian.0002_generic_permissions_index... OK
api_1 | Applying sessions.0001_initial... OK
voice_1 | ℹ 「wds」: Project is running at http://172.20.0.3/
voice_1 | ℹ 「wds」: webpack output is served from
voice_1 | ℹ 「wds」: Content not from webpack is served from /rxc-voice/public
voice_1 | ℹ 「wds」: 404s will fallback to /
voice_1 | Starting the development server...
voice_1 |
api_1 | Performing system checks...
api_1 |
api_1 | Watching for file changes with StatReloader
api_1 | System check identified no issues (0 silenced).
api_1 | April 16, 2021 - 16:46:47
api_1 | Django version 3.1.2, using settings 'RxcVoiceApi.settings'
api_1 | Starting development server at http://0.0.0.0:8000/
api_1 | Quit the server with CONTROL-C.
voice_1 | Compiled successfully!
voice_1 |
voice_1 | You can now view rxc-voice in the browser.
voice_1 |
voice_1 | Local: http://localhost:4000
voice_1 | On Your Network: http://172.20.0.3:4000
voice_1 |
voice_1 | Note that the development build is not optimized.
voice_1 | To create a production build, use npm run build.
voice_1 |
api_1 | [16/Apr/2021 16:50:43] "GET / HTTP/1.1" 201 5141
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 200 3385
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/prettify.css HTTP/1.1" 200 817
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 200 3597
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/csrf.js HTTP/1.1" 200 1719
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/default.css HTTP/1.1" 200 1131
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/default.js HTTP/1.1" 200 1268
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 200 13632
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 200 39680
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/js/jquery-3.5.1.min.js HTTP/1.1" 200 89476
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 200 121457
api_1 | [16/Apr/2021 16:50:43] "GET /static/rest_framework/img/grid.png HTTP/1.1" 200 1458
api_1 | [16/Apr/2021 16:50:52] "GET /admin HTTP/1.1" 301 0
api_1 | [16/Apr/2021 16:50:52] "GET /admin/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:50:52] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 2199
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2138
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/login.css HTTP/1.1" 200 1185
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/base.css HTTP/1.1" 200 16307
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/responsive.css HTTP/1.1" 200 18294
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 1360
api_1 | [16/Apr/2021 16:50:52] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
api_1 | [16/Apr/2021 16:50:53] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
api_1 | [16/Apr/2021 16:50:53] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
api_1 | [16/Apr/2021 16:51:20] "POST /admin/login/?next=/admin/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:51:20] "GET /admin/ HTTP/1.1" 200 7224
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/css/dashboard.css HTTP/1.1" 200 380
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380
api_1 | [16/Apr/2021 16:51:20] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
api_1 | [16/Apr/2021 16:54:43] "GET / HTTP/1.1" 201 5177
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/prettify.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/css/default.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/jquery-3.5.1.min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/csrf.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/js/default.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:43] "GET /static/rest_framework/img/grid.png HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /admin/auth/user/add/ HTTP/1.1" 200 9719
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/forms.css HTTP/1.1" 200 8423
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/core.js HTTP/1.1" 200 5418
api_1 | [16/Apr/2021 16:54:56] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 6078
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/urlify.js HTTP/1.1" 200 8632
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/actions.js HTTP/1.1" 200 6783
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/css/widgets.css HTTP/1.1" 200 10592
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 492
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 287630
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 232381
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/js/change_form.js HTTP/1.1" 200 606
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:54:56] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:55:08] "POST /admin/auth/user/add/ HTTP/1.1" 200 9896
api_1 | [16/Apr/2021 16:55:08] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:55:22] "POST /admin/auth/user/add/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:55:22] "GET /admin/auth/user/3/change/ HTTP/1.1" 200 21818
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/calendar.js HTTP/1.1" 200 7788
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/SelectBox.js HTTP/1.1" 200 4257
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19750
api_1 | [16/Apr/2021 16:55:22] "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 200 12350
api_1 | [16/Apr/2021 16:55:22] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/selector-icons.svg HTTP/1.1" 200 3291
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-clock.svg HTTP/1.1" 200 677
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 200 655
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/icon-unknown-alt.svg HTTP/1.1" 200 655
api_1 | [16/Apr/2021 16:55:23] "GET /static/admin/img/search.svg HTTP/1.1" 200 458
api_1 | [16/Apr/2021 16:56:25] "POST /admin/auth/user/3/change/ HTTP/1.1" 302 0
api_1 | [16/Apr/2021 16:56:25] "GET /admin/auth/user/ HTTP/1.1" 200 11686
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/base.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/changelists.css HTTP/1.1" 200 6263
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/core.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/actions.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/urlify.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/icon-no.svg HTTP/1.1" 200 560
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:56:26] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /admin/auth/user/add/ HTTP/1.1" 200 9719
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /admin/jsi18n/ HTTP/1.1" 200 3187
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/css/widgets.css HTTP/1.1" 304 0
api_1 | [16/Apr/2021 16:57:10] "GET /static/admin/js/change_form.js HTTP/1.1" 304 0
db_1 | 2021-04-16 20:57:15.638 UTC [119] ERROR: relation "main_delegate" does not exist at character 441
db_1 | 2021-04-16 20:57:15.638 UTC [119] STATEMENT: DECLARE "_django_curs_140532353046272_sync_2" NO SCROLL CURSOR WITH HOLD FOR SELECT "main_delegate"."id", "main_delegate"."user_id", "main_delegate"."is_autogenerated", "main_delegate"."oauth_provider", "main_delegate"."oauth_token", "main_delegate"."oauth_token_secret", "main_delegate"."is_verified", "main_delegate"."public_username", "main_delegate"."profile_pic", "main_delegate"."invited_by_id", "main_delegate"."credit_balance" FROM "main_delegate"
db_1 | 2021-04-16 20:57:15.638 UTC [119] ERROR: cursor "_django_curs_140532353046272_sync_2" does not exist
db_1 | 2021-04-16 20:57:15.638 UTC [119] STATEMENT: CLOSE "_django_curs_140532353046272_sync_2"
db_1 | 2021-04-16 20:57:15.701 UTC [119] ERROR: relation "main_delegate" does not exist at character 364
db_1 | 2021-04-16 20:57:15.701 UTC [119] STATEMENT: SELECT "main_delegate"."id", "main_delegate"."user_id", "main_delegate"."is_autogenerated", "main_delegate"."oauth_provider", "main_delegate"."oauth_token", "main_delegate"."oauth_token_secret", "main_delegate"."is_verified", "main_delegate"."public_username", "main_delegate"."profile_pic", "main_delegate"."invited_by_id", "main_delegate"."credit_balance" FROM "main_delegate" LIMIT 21
db_1 | 2021-04-16 20:57:15.702 UTC [119] ERROR: relation "main_delegate" does not exist at character 364
db_1 | 2021-04-16 20:57:15.702 UTC [119] STATEMENT: SELECT "main_delegate"."id", "main_delegate"."user_id", "main_delegate"."is_autogenerated", "main_delegate"."oauth_provider", "main_delegate"."oauth_token", "main_delegate"."oauth_token_secret", "main_delegate"."is_verified", "main_delegate"."public_username", "main_delegate"."profile_pic", "main_delegate"."invited_by_id", "main_delegate"."credit_balance" FROM "main_delegate" LIMIT 21
api_1 | Internal Server Error: /admin/main/delegate/add/
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | psycopg2.errors.UndefinedTable: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | The above exception was the direct cause of the following exception:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
api_1 | cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
api_1 | return super().execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
api_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
api_1 | return executor(sql, params, many, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit
api_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
api_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
api_1 | return self.cursor.execute(sql, params)
api_1 | django.db.utils.ProgrammingError: relation "main_delegate" does not exist
api_1 | LINE 1: ...ted_by_id", "main_delegate"."credit_balance" FROM "main_dele...
api_1 | ^
api_1 |
api_1 |
api_1 | During handling of the above exception, another exception occurred:
api_1 |
api_1 | Traceback (most recent call last):
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
api_1 | response = get_response(request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 202, in _get_response
api_1 | response = response.render()
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 105, in render
api_1 | self.content = self.rendered_content
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 83, in rendered_content
api_1 | return template.render(context, self._request)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
api_1 | return self.template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 170, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
api_1 | return compiled_parent._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
api_1 | result = block.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 192, in render
api_1 | return template.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 172, in render
api_1 | return self._render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
api_1 | return self.nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 211, in render
api_1 | nodelist.append(node.render_annotated(context))
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
api_1 | return nodelist.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
api_1 | bit = node.render_annotated(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
api_1 | return self.render(context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 994, in render
api_1 | return render_value_in_context(output, context)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 973, in render_value_in_context
api_1 | value = str(value)
api_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/html.py", line 376, in
For this issue also be sure to check that your .env file has "POSTGRES_HOST=db"
When I run the command
docker exec -it rxc-voice_api_1 ./manage.py createsuperuser
I get the following error:django.db.utils.OperationalError: could not translate host name "db" to address: No address associated with hostname
.All the localhosts are running successfully, I am using windows, and I can access my psql shell. The entire docker container log follows:
Does anyone know why this is happening?