-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Installation log
root@localhost:~/rematch# docker-compose -f server/docker-compose.yml build ;
database uses an image, skipping
rabbitmq uses an image, skipping
Building web
Step 1/14 : FROM python:3.6
3.6: Pulling from library/python
54f7e8ac135a: Pull complete
d6341e30912f: Pull complete
087a57faf949: Pull complete
5d71636fb824: Pull complete
0c1db9598990: Pull complete
2eeb5ce9b924: Pull complete
d3029c597b32: Pull complete
265a9c957eba: Pull complete
3bb7ae9463c5: Pull complete
Digest: sha256:13e196db5b74c250a30bddad3d99cc8adfe95cf9c507f8d0e95d4fa0ab3b6ae9
Status: Downloaded newer image for python:3.6
---> 5181f8fb92d6
Step 2/14 : ENV PYTHONUNBUFFERED 1
---> Running in c1dd6c1f3368
Removing intermediate container c1dd6c1f3368
---> af4a85df6962
Step 3/14 : RUN set -ex ; apt-get update ; apt-get install --fix-missing -yq --no-install-recommends nginx postgresql-client ; apt-get autoremove -yq ; rm -rf /var/lib/apt/lists/*
---> Running in 9366a499ea24
+ apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:3 http://deb.debian.org/debian stretch Release [118 kB]
Get:4 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:5 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:6 http://deb.debian.org/debian stretch-updates/main amd64 Packages [5152 B]
Get:7 http://deb.debian.org/debian stretch/main amd64 Packages [7089 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [463 kB]
Fetched 7863 kB in 2s (3671 kB/s)
Reading package lists...
+ apt-get install --fix-missing -yq --no-install-recommends nginx postgresql-client
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
libnginx-mod-http-geoip libnginx-mod-http-image-filter
libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
nginx-common nginx-full postgresql-client-9.6 postgresql-client-common
Suggested packages:
fcgiwrap nginx-doc ssl-cert postgresql-9.6 postgresql-doc-9.6
Recommended packages:
lsb-release
The following NEW packages will be installed:
libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo
libnginx-mod-http-geoip libnginx-mod-http-image-filter
libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx
nginx-common nginx-full postgresql-client postgresql-client-9.6
postgresql-client-common
0 upgraded, 16 newly installed, 0 to remove and 14 not upgraded.
Need to get 3002 kB of archives.
After this operation, 8865 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 postgresql-client-common all 181+deb9u2 [79.2 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 postgresql-client-9.6 amd64 9.6.10-0+deb9u1 [1279 kB]
Get:3 http://security.debian.org/debian-security stretch/updates/main amd64 nginx-common all 1.10.3-1+deb9u2 [105 kB]
Get:4 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-auth-pam amd64 1.10.3-1+deb9u2 [86.1 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-dav-ext amd64 1.10.3-1+deb9u2 [87.8 kB]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-echo amd64 1.10.3-1+deb9u2 [97.1 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-geoip amd64 1.10.3-1+deb9u2 [87.2 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-image-filter amd64 1.10.3-1+deb9u2 [90.2 kB]
Get:9 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-subs-filter amd64 1.10.3-1+deb9u2 [89.1 kB]
Get:10 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-upstream-fair amd64 1.10.3-1+deb9u2 [89.3 kB]
Get:11 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.10.3-1+deb9u2 [89.1 kB]
Get:12 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-mail amd64 1.10.3-1+deb9u2 [117 kB]
Get:13 http://security.debian.org/debian-security stretch/updates/main amd64 libnginx-mod-stream amd64 1.10.3-1+deb9u2 [110 kB]
Get:14 http://deb.debian.org/debian stretch/main amd64 postgresql-client all 9.6+181+deb9u2 [55.8 kB]
Get:15 http://security.debian.org/debian-security stretch/updates/main amd64 nginx-full amd64 1.10.3-1+deb9u2 [459 kB]
Get:16 http://security.debian.org/debian-security stretch/updates/main amd64 nginx all 1.10.3-1+deb9u2 [81.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 3002 kB in 0s (29.0 MB/s)
Selecting previously unselected package nginx-common.
(Reading database ... 30223 files and directories currently installed.)
Preparing to unpack .../00-nginx-common_1.10.3-1+deb9u2_all.deb ...
Unpacking nginx-common (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-auth-pam.
Preparing to unpack .../01-libnginx-mod-http-auth-pam_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-auth-pam (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-dav-ext.
Preparing to unpack .../02-libnginx-mod-http-dav-ext_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-dav-ext (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-echo.
Preparing to unpack .../03-libnginx-mod-http-echo_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-echo (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-geoip.
Preparing to unpack .../04-libnginx-mod-http-geoip_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack .../05-libnginx-mod-http-image-filter_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-subs-filter.
Preparing to unpack .../06-libnginx-mod-http-subs-filter_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-subs-filter (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-upstream-fair.
Preparing to unpack .../07-libnginx-mod-http-upstream-fair_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-upstream-fair (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack .../08-libnginx-mod-http-xslt-filter_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../09-libnginx-mod-mail_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-mail (1.10.3-1+deb9u2) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../10-libnginx-mod-stream_1.10.3-1+deb9u2_amd64.deb ...
Unpacking libnginx-mod-stream (1.10.3-1+deb9u2) ...
Selecting previously unselected package nginx-full.
Preparing to unpack .../11-nginx-full_1.10.3-1+deb9u2_amd64.deb ...
Unpacking nginx-full (1.10.3-1+deb9u2) ...
Selecting previously unselected package nginx.
Preparing to unpack .../12-nginx_1.10.3-1+deb9u2_all.deb ...
Unpacking nginx (1.10.3-1+deb9u2) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../13-postgresql-client-common_181+deb9u2_all.deb ...
Unpacking postgresql-client-common (181+deb9u2) ...
Selecting previously unselected package postgresql-client-9.6.
Preparing to unpack .../14-postgresql-client-9.6_9.6.10-0+deb9u1_amd64.deb ...
Unpacking postgresql-client-9.6 (9.6.10-0+deb9u1) ...
Selecting previously unselected package postgresql-client.
Preparing to unpack .../15-postgresql-client_9.6+181+deb9u2_all.deb ...
Unpacking postgresql-client (9.6+181+deb9u2) ...
Setting up nginx-common (1.10.3-1+deb9u2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up libnginx-mod-http-image-filter (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-http-subs-filter (1.10.3-1+deb9u2) ...
Setting up postgresql-client-common (181+deb9u2) ...
Setting up libnginx-mod-http-auth-pam (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-http-dav-ext (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-mail (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-http-xslt-filter (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-http-upstream-fair (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-http-geoip (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-stream (1.10.3-1+deb9u2) ...
Setting up libnginx-mod-http-echo (1.10.3-1+deb9u2) ...
Setting up postgresql-client-9.6 (9.6.10-0+deb9u1) ...
update-alternatives: using /usr/share/postgresql/9.6/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up nginx-full (1.10.3-1+deb9u2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-client (9.6+181+deb9u2) ...
Setting up nginx (1.10.3-1+deb9u2) ...
+ apt-get autoremove -yq
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
+ rm -rf /var/lib/apt/lists/deb.debian.org_debian_dists_stretch-updates_InRelease /var/lib/apt/lists/deb.debian.org_debian_dists_stretch-updates_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/deb.debian.org_debian_dists_stretch_Release /var/lib/apt/lists/deb.debian.org_debian_dists_stretch_Release.gpg /var/lib/apt/lists/deb.debian.org_debian_dists_stretch_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/security.debian.org_debian-security_dists_stretch_updates_InRelease /var/lib/apt/lists/security.debian.org_debian-security_dists_stretch_updates_main_binary-amd64_Packages.lz4
Removing intermediate container 9366a499ea24
---> 240f8b579662
Step 4/14 : RUN set -ex ; mkdir /rematch_server/ ; useradd --no-log-init -M -d /rematch_server rematch ; chown rematch:rematch -R /rematch_server/
---> Running in 3e0820ca62b0
+ mkdir /rematch_server/
+ useradd --no-log-init -M -d /rematch_server rematch
+ chown rematch:rematch -R /rematch_server/
Removing intermediate container 3e0820ca62b0
---> 161f90a0bc2a
Step 5/14 : WORKDIR /rematch_server
---> Running in 6665ba151953
Removing intermediate container 6665ba151953
---> eac9eab09891
Step 6/14 : RUN set -ex ; mkdir -p /var/log/rematch/ ; chown rematch:rematch -R /var/log/rematch ; chown rematch:rematch -R /var/lib/nginx/
---> Running in 73f5014c9bca
+ mkdir -p /var/log/rematch/
+ chown rematch:rematch -R /var/log/rematch
+ chown rematch:rematch -R /var/lib/nginx/
Removing intermediate container 73f5014c9bca
---> 1a5d92da762f
Step 7/14 : RUN pip install --disable-pip-version-check --no-cache-dir uwsgi
---> Running in 807cf37334dc
Collecting uwsgi
Downloading https://files.pythonhosted.org/packages/a2/c9/a2d5737f63cd9df4317a4acc15d1ddf4952e28398601d8d7d706c16381e0/uwsgi-2.0.17.1.tar.gz (800kB)
Installing collected packages: uwsgi
Running setup.py install for uwsgi: started
Running setup.py install for uwsgi: finished with status 'done'
Successfully installed uwsgi-2.0.17.1
Removing intermediate container 807cf37334dc
---> 4faaeffee985
Step 8/14 : COPY ./server/requirements.txt ./requirements.txt
---> e42d4a3f65e5
Step 9/14 : RUN set -ex ; pip install --disable-pip-version-check --no-cache-dir -r ./requirements.txt ; rm ./requirements.txt
---> Running in 3a87000ca292
+ pip install --disable-pip-version-check --no-cache-dir -r ./requirements.txt
Ignoring Django: markers 'python_version < "3.0"' don't match your environment
Ignoring django-filter: markers 'python_version < "3.0"' don't match your environment
Collecting Django (from -r ./requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/fd/9a/0c028ea0fe4f5803dda1a7afabeed958d0c8b79b0fe762ffbf728db3b90d/Django-2.1.4-py3-none-any.whl (7.3MB)
Collecting numpy (from -r ./requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/ff/7f/9d804d2348471c67a7d8b5f84f9bc59fd1cefa148986f2b74552f8573555/numpy-1.15.4-cp36-cp36m-manylinux1_x86_64.whl (13.9MB)
Collecting scipy (from -r ./requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/67/e6/6d4edaceee6a110ecf6f318482f5229792f143e468b34a631f5a0899f56d/scipy-1.2.0-cp36-cp36m-manylinux1_x86_64.whl (26.6MB)
Collecting scikit-learn (from -r ./requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/0d/3a/b92670f5c368c20329ecc4c255993fae7934564d485c3ed7ea7b8da7f741/scikit_learn-0.20.2-cp36-cp36m-manylinux1_x86_64.whl (5.4MB)
Collecting tarjan (from -r ./requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/7c/74/a35aabdb826eb6a29a74e792f75e1228d9ce3811fbf52b1931d515274cb2/tarjan-0.2.3.2.tar.gz
Collecting networkx (from -r ./requirements.txt (line 8))
Downloading https://files.pythonhosted.org/packages/f3/f4/7e20ef40b118478191cec0b58c3192f822cace858c19505c7670961b76b2/networkx-2.2.zip (1.7MB)
Collecting django-registration-redux (from -r ./requirements.txt (line 9))
Downloading https://files.pythonhosted.org/packages/11/89/5df858954dfad3de4d762c14f20aa9b5720a17f5f51511d62a03b78b5d3b/django_registration_redux-2.5-py2.py3-none-any.whl (202kB)
Collecting djangorestframework (from -r ./requirements.txt (line 10))
Downloading https://files.pythonhosted.org/packages/99/0b/d37a5a96c5d301e23adcabcc2f3fa659fb34e6308590f95ebb50cdbe98a1/djangorestframework-3.9.0-py2.py3-none-any.whl (924kB)
Collecting django-rest-auth>=0.8.2 (from -r ./requirements.txt (line 11))
Downloading https://files.pythonhosted.org/packages/d3/21/059f2b44e0e4dc21a63f7d4095e7f22b159117de6bc38732813516aab2f9/django-rest-auth-0.9.3.tar.gz
Collecting celery>=4 (from -r ./requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/e8/58/2a0b1067ab2c12131b5c089dfc579467c76402475c5231095e36a43b749c/celery-4.2.1-py2.py3-none-any.whl (401kB)
Collecting django-filter (from -r ./requirements.txt (line 15))
Downloading https://files.pythonhosted.org/packages/6a/8b/8517167a0adc45ce94d0873efb9487dd4cdeff7e10f96e837ad3d58f5837/django_filter-2.0.0-py3-none-any.whl (69kB)
Collecting django-cte (from -r ./requirements.txt (line 16))
Downloading https://files.pythonhosted.org/packages/ec/04/c0d013873d51424826c9f7ce45ba8666d36575336ec8f330561390940c36/django_cte-1.1.4-py2.py3-none-any.whl
Collecting psycopg2-binary (from -r ./requirements.txt (line 17))
Downloading https://files.pythonhosted.org/packages/cd/eb/4e872a11edd82079b4163035389051668c58cd2acc30777b6bee73f5f8a3/psycopg2_binary-2.7.6.1-cp36-cp36m-manylinux1_x86_64.whl (2.7MB)
Collecting pytz (from Django->-r ./requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/f8/0e/2365ddc010afb3d79147f1dd544e5ee24bf4ece58ab99b16fbb465ce6dc0/pytz-2018.7-py2.py3-none-any.whl (506kB)
Collecting decorator>=4.3.0 (from networkx->-r ./requirements.txt (line 8))
Downloading https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl
Collecting six>=1.9.0 (from django-rest-auth>=0.8.2->-r ./requirements.txt (line 11))
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting billiard<3.6.0,>=3.5.0.2 (from celery>=4->-r ./requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/8b/b7/c2fe04f2522bb02d044347734eeda3ff5c7a632fa7d0401530a371ba73db/billiard-3.5.0.5.tar.gz (150kB)
Collecting kombu<5.0,>=4.2.0 (from celery>=4->-r ./requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/23/25/036ef6c8e383832d6b8e1e34429daf12af577ef57cda0a402383aa026e24/kombu-4.2.2-py2.py3-none-any.whl (182kB)
Collecting amqp<3.0,>=2.1.4 (from kombu<5.0,>=4.2.0->celery>=4->-r ./requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/7f/cf/12d4611fc67babd4ae250c9e8249c5650ae1933395488e9e7e3562b4ff24/amqp-2.3.2-py2.py3-none-any.whl (48kB)
Collecting vine>=1.1.3 (from amqp<3.0,>=2.1.4->kombu<5.0,>=4.2.0->celery>=4->-r ./requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/10/50/5b1ebe42843c19f35edb15022ecae339fbec6db5b241a7a13c924dabf2a3/vine-1.1.4-py2.py3-none-any.whl
Installing collected packages: pytz, Django, numpy, scipy, scikit-learn, tarjan, decorator, networkx, django-registration-redux, djangorestframework, six, django-rest-auth, billiard, vine, amqp, kombu, celery, django-filter, django-cte, psycopg2-binary
Running setup.py install for tarjan: started
Running setup.py install for tarjan: finished with status 'done'
Running setup.py install for networkx: started
Running setup.py install for networkx: finished with status 'done'
Running setup.py install for django-rest-auth: started
Running setup.py install for django-rest-auth: finished with status 'done'
Running setup.py install for billiard: started
Running setup.py install for billiard: finished with status 'done'
Successfully installed Django-2.1.4 amqp-2.3.2 billiard-3.5.0.5 celery-4.2.1 decorator-4.3.0 django-cte-1.1.4 django-filter-2.0.0 django-registration-redux-2.5 django-rest-auth-0.9.3 djangorestframework-3.9.0 kombu-4.2.2 networkx-2.2 numpy-1.15.4 psycopg2-binary-2.7.6.1 pytz-2018.7 scikit-learn-0.20.2 scipy-1.2.0 six-1.12.0 tarjan-0.2.3.2 vine-1.1.4
+ rm ./requirements.txt
Removing intermediate container 3a87000ca292
---> 67a8bb7868f3
Step 10/14 : ADD --chown=rematch:rematch ./server/ ./server/
---> 5dbca8d52bb9
Step 11/14 : ADD --chown=rematch:rematch ./tests/server/ ./tests/
---> bbdb6574c400
Step 12/14 : WORKDIR /rematch_server/server/
---> Running in 9187830f6b15
Removing intermediate container 9187830f6b15
---> 6df5fd110be1
Step 13/14 : USER rematch
---> Running in 2fe2d57dba57
Removing intermediate container 2fe2d57dba57
---> d74779dd20dc
Step 14/14 : CMD ./docker-assets/entrypoint.sh
---> Running in 872d25b9b677
Removing intermediate container 872d25b9b677
---> 31b71b4f83fd
Successfully built 31b71b4f83fd
Successfully tagged server_web:latest
root@localhost:~/rematch# docker-compose -f server/docker-compose.yml up -d ;
Creating network "server_default" with the default driver
Pulling database (postgres:latest)...
latest: Pulling from library/postgres
a5a6f2f73cd8: Pull complete
e50fbea8af5a: Pull complete
73b4855ad326: Pull complete
39616673f22b: Pull complete
94e1b79f69ee: Pull complete
c91e4af2ff8e: Pull complete
16ba314c612f: Pull complete
89011a174cee: Pull complete
d82b02de73e7: Pull complete
ef60eb07c042: Pull complete
225d0988f8bb: Pull complete
eebc8c1ff0d8: Pull complete
b11dada2e405: Pull complete
9723874e6b5f: Pull complete
Digest: sha256:28b4a1b0d3ae9b38a16c97a4e655bdc13496a304d1a241c531ac1efc2faa7230
Status: Downloaded newer image for postgres:latest
Pulling rabbitmq (rabbitmq:latest)...
latest: Pulling from library/rabbitmq
f17d81b4b692: Pull complete
02fe1bd1a85c: Pull complete
66c15a50f4da: Pull complete
771c4c62018c: Pull complete
05e166e2684c: Pull complete
5eb4efce3466: Pull complete
9b5d77af0f63: Pull complete
f7fc14f8eeeb: Pull complete
31e1448101d9: Pull complete
196612f40314: Pull complete
8cd7ab5c5659: Pull complete
aae6dd0bf4aa: Pull complete
Digest: sha256:09f02eca2bbb52620187c8a0d03b0eb31cd911d1ac5d9589a67a1670226dc9a6
Status: Downloaded newer image for rabbitmq:latest
Creating server_database_1
Creating server_rabbitmq_1
Creating server_web_1
Trying to create superuser:
root@localhost:~/rematch# docker-compose -f ./server/docker-compose.yml exec web ./server/manage.py createsuperuser
ERROR: Container 9af6bb096271e0bfbc2bf9217f757b19f75dc14cb90a0aa33496d7ec6f9e1818 is restarting, wait until the container is running
It is restarting endlessly:
root@localhost:~/rematch# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9af6bb096271 server_web "/bin/sh -c ./docker…" 10 minutes ago Restarting (1) 45 seconds ago server_web_1
ff11f08cab3c rabbitmq "docker-entrypoint.s…" 10 minutes ago Up 10 minutes 4369/tcp, 5671-5672/tcp, 15672/tcp, 25672/tcp server_rabbitmq_1
517c396a1e64 postgres "docker-entrypoint.s…" 10 minutes ago Up 10 minutes 5432/tcp server_database_1
server_web_1 error logs
2018-12-26T12:44:30.940920107Z Waiting for database to start...
2018-12-26T12:44:31.029319838Z database:5432 - accepting connections
2018-12-26T12:44:31.032084867Z Migrating
2018-12-26T12:44:31.534970903Z Traceback (most recent call last):
2018-12-26T12:44:31.535149661Z File "/usr/local/lib/python3.6/logging/config.py", line 565, in configure
2018-12-26T12:44:31.535606063Z handler = self.configure_handler(handlers[name])
2018-12-26T12:44:31.535689811Z File "/usr/local/lib/python3.6/logging/config.py", line 738, in configure_handler
2018-12-26T12:44:31.536111574Z result = factory(**kwargs)
2018-12-26T12:44:31.536188176Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1032, in __init__
2018-12-26T12:44:31.536644125Z StreamHandler.__init__(self, self._open())
2018-12-26T12:44:31.536720465Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1061, in _open
2018-12-26T12:44:31.537149536Z return open(self.baseFilename, self.mode, encoding=self.encoding)
2018-12-26T12:44:31.537251694Z PermissionError: [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:31.537301705Z
2018-12-26T12:44:31.537324049Z During handling of the above exception, another exception occurred:
2018-12-26T12:44:31.537328813Z
2018-12-26T12:44:31.537390649Z Traceback (most recent call last):
2018-12-26T12:44:31.537458981Z File "manage.py", line 11, in <module>
2018-12-26T12:44:31.537626214Z execute_from_command_line(sys.argv)
2018-12-26T12:44:31.537694098Z File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
2018-12-26T12:44:31.537967306Z utility.execute()
2018-12-26T12:44:31.538035154Z File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 325, in execute
2018-12-26T12:44:31.538270432Z settings.INSTALLED_APPS
2018-12-26T12:44:31.538352569Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 57, in __getattr__
2018-12-26T12:44:31.538583089Z self._setup(name)
2018-12-26T12:44:31.538650979Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 44, in _setup
2018-12-26T12:44:31.538812081Z self._wrapped = Settings(settings_module)
2018-12-26T12:44:31.538878253Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 107, in __init__
2018-12-26T12:44:31.539052759Z mod = importlib.import_module(self.SETTINGS_MODULE)
2018-12-26T12:44:31.539118828Z File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
2018-12-26T12:44:31.539293838Z return _bootstrap._gcd_import(name[level:], package, level)
2018-12-26T12:44:31.539382440Z File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2018-12-26T12:44:31.539580269Z File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2018-12-26T12:44:31.539733562Z File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
2018-12-26T12:44:31.539883514Z File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2018-12-26T12:44:31.540076103Z File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2018-12-26T12:44:31.540250338Z File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2018-12-26T12:44:31.540409197Z File "/rematch_server/server/rematch/settings/docker.py", line 13, in <module>
2018-12-26T12:44:31.540614086Z from rematch.settings.base import * # noqa
2018-12-26T12:44:31.540681048Z File "/rematch_server/server/rematch/settings/base.py", line 88, in <module>
2018-12-26T12:44:31.540861151Z logging.config.dictConfig(LOGGING)
2018-12-26T12:44:31.540926910Z File "/usr/local/lib/python3.6/logging/config.py", line 802, in dictConfig
2018-12-26T12:44:31.541451393Z dictConfigClass(config).configure()
2018-12-26T12:44:31.541573744Z File "/usr/local/lib/python3.6/logging/config.py", line 573, in configure
2018-12-26T12:44:31.542982297Z '%r: %s' % (name, e))
2018-12-26T12:44:31.543117514Z ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:32.223679575Z Traceback (most recent call last):
2018-12-26T12:44:32.223815663Z File "/usr/local/lib/python3.6/logging/config.py", line 565, in configure
2018-12-26T12:44:32.224275615Z handler = self.configure_handler(handlers[name])
2018-12-26T12:44:32.224369317Z File "/usr/local/lib/python3.6/logging/config.py", line 738, in configure_handler
2018-12-26T12:44:32.224889083Z result = factory(**kwargs)
2018-12-26T12:44:32.225010092Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1032, in __init__
2018-12-26T12:44:32.225749353Z StreamHandler.__init__(self, self._open())
2018-12-26T12:44:32.225868875Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1061, in _open
2018-12-26T12:44:32.226471614Z return open(self.baseFilename, self.mode, encoding=self.encoding)
2018-12-26T12:44:32.226620336Z PermissionError: [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:32.226726373Z
2018-12-26T12:44:32.226735274Z During handling of the above exception, another exception occurred:
2018-12-26T12:44:32.226739507Z
2018-12-26T12:44:32.226826535Z Traceback (most recent call last):
2018-12-26T12:44:32.226915888Z File "manage.py", line 11, in <module>
2018-12-26T12:44:32.227187224Z execute_from_command_line(sys.argv)
2018-12-26T12:44:32.227273062Z File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
2018-12-26T12:44:32.228926302Z utility.execute()
2018-12-26T12:44:32.229019912Z File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 325, in execute
2018-12-26T12:44:32.229331845Z settings.INSTALLED_APPS
2018-12-26T12:44:32.229448168Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 57, in __getattr__
2018-12-26T12:44:32.229660083Z self._setup(name)
2018-12-26T12:44:32.229749058Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 44, in _setup
2018-12-26T12:44:32.229963612Z self._wrapped = Settings(settings_module)
2018-12-26T12:44:32.230055751Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 107, in __init__
2018-12-26T12:44:32.230255039Z mod = importlib.import_module(self.SETTINGS_MODULE)
2018-12-26T12:44:32.230340994Z File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
2018-12-26T12:44:32.230545868Z return _bootstrap._gcd_import(name[level:], package, level)
2018-12-26T12:44:32.230624491Z File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2018-12-26T12:44:32.230794973Z File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2018-12-26T12:44:32.230947126Z File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
2018-12-26T12:44:32.231118379Z File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2018-12-26T12:44:32.231270153Z File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2018-12-26T12:44:32.231438682Z File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2018-12-26T12:44:32.231592595Z File "/rematch_server/server/rematch/settings/docker.py", line 13, in <module>
2018-12-26T12:44:32.231835858Z from rematch.settings.base import * # noqa
2018-12-26T12:44:32.231944917Z File "/rematch_server/server/rematch/settings/base.py", line 88, in <module>
2018-12-26T12:44:32.232254550Z logging.config.dictConfig(LOGGING)
2018-12-26T12:44:32.232411636Z File "/usr/local/lib/python3.6/logging/config.py", line 802, in dictConfig
2018-12-26T12:44:32.233019235Z dictConfigClass(config).configure()
2018-12-26T12:44:32.233139530Z File "/usr/local/lib/python3.6/logging/config.py", line 573, in configure
2018-12-26T12:44:32.233681636Z '%r: %s' % (name, e))
2018-12-26T12:44:32.233810001Z ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:33.018156256Z Traceback (most recent call last):
2018-12-26T12:44:33.018334721Z File "/usr/local/lib/python3.6/logging/config.py", line 565, in configure
2018-12-26T12:44:33.019025539Z handler = self.configure_handler(handlers[name])
2018-12-26T12:44:33.019185288Z File "/usr/local/lib/python3.6/logging/config.py", line 738, in configure_handler
2018-12-26T12:44:33.019602178Z result = factory(**kwargs)
2018-12-26T12:44:33.019700438Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1032, in __init__
2018-12-26T12:44:33.020306020Z StreamHandler.__init__(self, self._open())
2018-12-26T12:44:33.020446443Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1061, in _open
2018-12-26T12:44:33.021195273Z return open(self.baseFilename, self.mode, encoding=self.encoding)
2018-12-26T12:44:33.021355705Z PermissionError: [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:33.021481543Z
2018-12-26T12:44:33.021491054Z During handling of the above exception, another exception occurred:
2018-12-26T12:44:33.021495617Z
2018-12-26T12:44:33.021602307Z Traceback (most recent call last):
2018-12-26T12:44:33.021718523Z File "<string>", line 1, in <module>
2018-12-26T12:44:33.021947046Z File "/usr/local/lib/python3.6/site-packages/django/__init__.py", line 19, in setup
2018-12-26T12:44:33.022218746Z configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2018-12-26T12:44:33.022352255Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 57, in __getattr__
2018-12-26T12:44:33.022613576Z self._setup(name)
2018-12-26T12:44:33.022735618Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 44, in _setup
2018-12-26T12:44:33.022951390Z self._wrapped = Settings(settings_module)
2018-12-26T12:44:33.023031555Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 107, in __init__
2018-12-26T12:44:33.023247381Z mod = importlib.import_module(self.SETTINGS_MODULE)
2018-12-26T12:44:33.023336925Z File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
2018-12-26T12:44:33.023557986Z return _bootstrap._gcd_import(name[level:], package, level)
2018-12-26T12:44:33.023637885Z File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2018-12-26T12:44:33.023821747Z File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2018-12-26T12:44:33.023972277Z File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
2018-12-26T12:44:33.024200115Z File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2018-12-26T12:44:33.024404051Z File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2018-12-26T12:44:33.024588185Z File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2018-12-26T12:44:33.024773030Z File "/rematch_server/server/rematch/settings/docker.py", line 13, in <module>
2018-12-26T12:44:33.025038844Z from rematch.settings.base import * # noqa
2018-12-26T12:44:33.025159146Z File "/rematch_server/server/rematch/settings/base.py", line 88, in <module>
2018-12-26T12:44:33.025446415Z logging.config.dictConfig(LOGGING)
2018-12-26T12:44:33.025566363Z File "/usr/local/lib/python3.6/logging/config.py", line 802, in dictConfig
2018-12-26T12:44:33.026292499Z dictConfigClass(config).configure()
2018-12-26T12:44:33.026430137Z File "/usr/local/lib/python3.6/logging/config.py", line 573, in configure
2018-12-26T12:44:33.026990519Z '%r: %s' % (name, e))
2018-12-26T12:44:33.027117683Z ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:33.653002415Z Traceback (most recent call last):
2018-12-26T12:44:33.653187254Z File "/usr/local/lib/python3.6/site-packages/kombu/utils/objects.py", line 42, in __get__
2018-12-26T12:44:33.653587810Z return obj.__dict__[self.__name__]
2018-12-26T12:44:33.653705953Z KeyError: 'data'
2018-12-26T12:44:33.653817126Z
2018-12-26T12:44:33.653825482Z During handling of the above exception, another exception occurred:
2018-12-26T12:44:33.653882596Z
2018-12-26T12:44:33.653966745Z Traceback (most recent call last):
2018-12-26T12:44:33.654047051Z File "/usr/local/lib/python3.6/logging/config.py", line 565, in configure
2018-12-26T12:44:33.654422613Z handler = self.configure_handler(handlers[name])
2018-12-26T12:44:33.654512866Z File "/usr/local/lib/python3.6/logging/config.py", line 738, in configure_handler
2018-12-26T12:44:33.654928131Z result = factory(**kwargs)
2018-12-26T12:44:33.655019173Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1032, in __init__
2018-12-26T12:44:33.655494308Z StreamHandler.__init__(self, self._open())
2018-12-26T12:44:33.655583923Z File "/usr/local/lib/python3.6/logging/__init__.py", line 1061, in _open
2018-12-26T12:44:33.656069391Z return open(self.baseFilename, self.mode, encoding=self.encoding)
2018-12-26T12:44:33.656177554Z PermissionError: [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:33.656286542Z
2018-12-26T12:44:33.656294200Z During handling of the above exception, another exception occurred:
2018-12-26T12:44:33.656297268Z
2018-12-26T12:44:33.656379568Z Traceback (most recent call last):
2018-12-26T12:44:33.656457862Z File "/usr/local/bin/celery", line 11, in <module>
2018-12-26T12:44:33.656649779Z sys.exit(main())
2018-12-26T12:44:33.656738596Z File "/usr/local/lib/python3.6/site-packages/celery/__main__.py", line 16, in main
2018-12-26T12:44:33.656941319Z _main()
2018-12-26T12:44:33.657030840Z File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 322, in main
2018-12-26T12:44:33.657343889Z cmd.execute_from_commandline(argv)
2018-12-26T12:44:33.657456159Z File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 496, in execute_from_commandline
2018-12-26T12:44:33.657809673Z super(CeleryCommand, self).execute_from_commandline(argv)))
2018-12-26T12:44:33.657899950Z File "/usr/local/lib/python3.6/site-packages/celery/bin/base.py", line 275, in execute_from_commandline
2018-12-26T12:44:33.658153569Z return self.handle_argv(self.prog_name, argv[1:])
2018-12-26T12:44:33.658259164Z File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 488, in handle_argv
2018-12-26T12:44:33.658753179Z return self.execute(command, argv)
2018-12-26T12:44:33.658870885Z File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 420, in execute
2018-12-26T12:44:33.659348073Z ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
2018-12-26T12:44:33.659466035Z File "/usr/local/lib/python3.6/site-packages/celery/bin/worker.py", line 221, in run_from_argv
2018-12-26T12:44:33.659868166Z *self.parse_options(prog_name, argv, command))
2018-12-26T12:44:33.660015260Z File "/usr/local/lib/python3.6/site-packages/celery/bin/base.py", line 398, in parse_options
2018-12-26T12:44:33.660456090Z self.parser = self.create_parser(prog_name, command)
2018-12-26T12:44:33.660583384Z File "/usr/local/lib/python3.6/site-packages/celery/bin/base.py", line 414, in create_parser
2018-12-26T12:44:33.661003070Z self.add_arguments(parser)
2018-12-26T12:44:33.661118924Z File "/usr/local/lib/python3.6/site-packages/celery/bin/worker.py", line 277, in add_arguments
2018-12-26T12:44:33.661435183Z default=conf.worker_state_db,
2018-12-26T12:44:33.661533933Z File "/usr/local/lib/python3.6/site-packages/celery/utils/collections.py", line 126, in __getattr__
2018-12-26T12:44:33.661767774Z return self[k]
2018-12-26T12:44:33.661861562Z File "/usr/local/lib/python3.6/site-packages/celery/utils/collections.py", line 429, in __getitem__
2018-12-26T12:44:33.662208825Z return getitem(k)
2018-12-26T12:44:33.662290869Z File "/usr/local/lib/python3.6/site-packages/celery/utils/collections.py", line 278, in __getitem__
2018-12-26T12:44:33.662544613Z return mapping[_key]
2018-12-26T12:44:33.662625166Z File "/usr/local/lib/python3.6/collections/__init__.py", line 987, in __getitem__
2018-12-26T12:44:33.663146434Z if key in self.data:
2018-12-26T12:44:33.663244014Z File "/usr/local/lib/python3.6/site-packages/kombu/utils/objects.py", line 44, in __get__
2018-12-26T12:44:33.663492881Z value = obj.__dict__[self.__name__] = self.__get(obj)
2018-12-26T12:44:33.663583124Z File "/usr/local/lib/python3.6/site-packages/celery/app/base.py", line 141, in data
2018-12-26T12:44:33.663800314Z return self.callback()
2018-12-26T12:44:33.663879646Z File "/usr/local/lib/python3.6/site-packages/celery/app/base.py", line 924, in _finalize_pending_conf
2018-12-26T12:44:33.664339645Z conf = self._conf = self._load_config()
2018-12-26T12:44:33.664436369Z File "/usr/local/lib/python3.6/site-packages/celery/app/base.py", line 934, in _load_config
2018-12-26T12:44:33.664846264Z self.loader.config_from_object(self._config_source)
2018-12-26T12:44:33.664934122Z File "/usr/local/lib/python3.6/site-packages/celery/loaders/base.py", line 131, in config_from_object
2018-12-26T12:44:33.665142080Z self._conf = force_mapping(obj)
2018-12-26T12:44:33.665221963Z File "/usr/local/lib/python3.6/site-packages/celery/utils/collections.py", line 46, in force_mapping
2018-12-26T12:44:33.665419232Z if isinstance(m, (LazyObject, LazySettings)):
2018-12-26T12:44:33.665498562Z File "/usr/local/lib/python3.6/site-packages/django/utils/functional.py", line 213, in inner
2018-12-26T12:44:33.665735797Z self._setup()
2018-12-26T12:44:33.665814907Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 44, in _setup
2018-12-26T12:44:33.666004339Z self._wrapped = Settings(settings_module)
2018-12-26T12:44:33.666083032Z File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 107, in __init__
2018-12-26T12:44:33.666293866Z mod = importlib.import_module(self.SETTINGS_MODULE)
2018-12-26T12:44:33.666395932Z File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
2018-12-26T12:44:33.666600189Z return _bootstrap._gcd_import(name[level:], package, level)
2018-12-26T12:44:33.666680020Z File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2018-12-26T12:44:33.666900161Z File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2018-12-26T12:44:33.667054730Z File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
2018-12-26T12:44:33.667208724Z File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2018-12-26T12:44:33.667372483Z File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2018-12-26T12:44:33.667540019Z File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2018-12-26T12:44:33.667706966Z File "/rematch_server/server/rematch/settings/docker.py", line 13, in <module>
2018-12-26T12:44:33.667914644Z from rematch.settings.base import * # noqa
2018-12-26T12:44:33.668013241Z File "/rematch_server/server/rematch/settings/base.py", line 88, in <module>
2018-12-26T12:44:33.668217114Z logging.config.dictConfig(LOGGING)
2018-12-26T12:44:33.668296663Z File "/usr/local/lib/python3.6/logging/config.py", line 802, in dictConfig
2018-12-26T12:44:33.668697622Z dictConfigClass(config).configure()
2018-12-26T12:44:33.668791152Z File "/usr/local/lib/python3.6/logging/config.py", line 573, in configure
2018-12-26T12:44:33.669124404Z '%r: %s' % (name, e))
2018-12-26T12:44:33.669222158Z ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/rematch/django.log'
2018-12-26T12:44:33.736347951Z [uWSGI] getting INI configuration from docker-assets/uwsgi.ini
2018-12-26T12:44:33.739964151Z nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2018-12-26T12:44:33.744539384Z open("/var/log/rematch/uwsgi.log"): Permission denied [core/logging.c line 288]
2018-12-26T12:44:33.745834987Z 2018/12/26 12:44:33 [emerg] 26#26: open() "/var/log/rematch/nginx_error.log" failed (13: Permission denied)
I'm running everything from root. Is it the problem?
Metadata
Metadata
Assignees
Labels
No labels