Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL: data directory "/var/lib/postgresql/data" has wrong ownership #6

Open
tdekelver opened this issue Jan 29, 2019 · 8 comments
Open
Labels

Comments

@tdekelver
Copy link

tdekelver commented Jan 29, 2019

Hi
I am trying to run the docker installation on windows and it gives me an error every time i want to start the docker, see here the full log:

$ bash docker.sh
Creating network "modelchimp_default" with the default driver
Building web
Step 1/9 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/9 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/9 : ADD requirements.txt /code/
---> Using cache
---> d127eb960b39
Step 4/9 : WORKDIR /code
---> Using cache
---> 1b02ef9d8fbc
Step 5/9 : RUN pip install --upgrade setuptools
---> Using cache
---> 784ff82c5b00
Step 6/9 : RUN pip install -r requirements.txt
---> Using cache
---> d864890d0a5c
Step 7/9 : ADD . /code/
---> Using cache
---> 5701b8f92922
Step 8/9 : RUN apt-get update && apt-get install -y postgresql-client
---> Using cache
---> 38281c757066
Step 9/9 : EXPOSE 8000
---> Using cache
---> af486f650dfa
Successfully built af486f650dfa
Successfully tagged modelchimp_web:latest
Building celery
Step 1/9 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/9 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/9 : ADD requirements.txt /code/
---> Using cache
---> d127eb960b39
Step 4/9 : WORKDIR /code
---> Using cache
---> 1b02ef9d8fbc
Step 5/9 : RUN pip install --upgrade setuptools
---> Using cache
---> 784ff82c5b00
Step 6/9 : RUN pip install -r requirements.txt
---> Using cache
---> d864890d0a5c
Step 7/9 : ADD . /code/
---> Using cache
---> 5701b8f92922
Step 8/9 : RUN apt-get update && apt-get install -y postgresql-client
---> Using cache
---> 38281c757066
Step 9/9 : EXPOSE 8000
---> Using cache
---> af486f650dfa
Successfully built af486f650dfa
Successfully tagged modelchimp_celery:latest
Creating modelchimp_redis_1 ... done
Creating modelchimp_db_1 ... done
Creating modelchimp_web_1 ... done
Creating modelchimp_celery_1 ... done
Attaching to modelchimp_db_1, modelchimp_redis_1, modelchimp_web_1, modelchimp_celery_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
redis_1 | 1:C 29 Jan 2019 12:54:36.750 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1 | 1:C 29 Jan 2019 12:54:36.750 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1 | 1:C 29 Jan 2019 12:54:36.750 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1 | 1:M 29 Jan 2019 12:54:36.752 * Running mode=standalone, port=6379.
redis_1 | 1:M 29 Jan 2019 12:54:36.752 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1 | 1:M 29 Jan 2019 12:54:36.752 # Server initialized
redis_1 | 1:M 29 Jan 2019 12:54:36.753 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1 | 1:M 29 Jan 2019 12:54:36.753 * Ready to accept connections
db_1 | creating subdirectories ... ok
db_1 | selecting default max_connections ... 20
db_1 | selecting default shared_buffers ... 400kB
db_1 | selecting dynamic shared memory implementation ... posix
db_1 | creating configuration files ... ok
db_1 | running bootstrap script ... 2019-01-29 12:54:38.177 UTC [77] FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
db_1 | 2019-01-29 12:54:38.177 UTC [77] HINT: The server must be started by the user that owns the data directory.
web_1 | wait-for-postgres.sh: line 3: $'\r': command not found
: invalid option-for-postgres.sh: line 4: set: -
web_1 | set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
web_1 | wait-for-postgres.sh: line 5: $'\r': command not found
web_1 | wait-for-postgres.sh: line 7: $'shift\r': command not found
web_1 | wait-for-postgres.sh: line 9: $'\r': command not found
db_1 | child process exited with exit code 1
db_1 | initdb: removing contents of data directory "/var/lib/postgresql/data"
web_1 | wait-for-postgres.sh: line 18: syntax error: unexpected end of file
celery_1 | wait-for-postgres.sh: line 3: $'\r': command not found
: invalid option-for-postgres.sh: line 4: set: -
celery_1 | set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
celery_1 | wait-for-postgres.sh: line 5: $'\r': command not found
celery_1 | wait-for-postgres.sh: line 7: $'shift\r': command not found
celery_1 | wait-for-postgres.sh: line 9: $'\r': command not found
celery_1 | wait-for-postgres.sh: line 18: syntax error: unexpected end of file
modelchimp_celery_1 exited with code 2
Stopping modelchimp_web_1 ... done
Stopping modelchimp_redis_1 ... done
Stopping modelchimp_db_1 ... done
Aborting on container exit...

@samzer
Copy link
Member

samzer commented Jan 30, 2019

Thanks for reporting. Looking into it.

@samzer
Copy link
Member

samzer commented Feb 2, 2019

Could you delete the existing modelchimp folder in your local system and do a fresh clone. Execute the following within the modelchimp folder

cp .\.env-dev .\.env
.\docker-windows.bat

@tdekelver
Copy link
Author

Hello Thanks for this update, but I'm still getting some errors at the end when he wants to start modelchimp_redis_1 and modelchimp_db_1:

$>.\docker-windows.bat

$>docker volume create --name postgres-data -d local
postgres-data

$>docker-compose -f docker-compose.yml -f docker-compose.windows.yml up --build --abort-on-container-exit
Building web
Step 1/9 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/9 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/9 : ADD requirements.txt /code/
---> b61897bd34b0
Step 4/9 : WORKDIR /code
---> Running in 8cd5760e4c63
Removing intermediate container 8cd5760e4c63
---> 4c03c287815d
Step 5/9 : RUN pip install --upgrade setuptools
---> Running in f07a572c3a71
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/d1/6a/4b2fcefd2ea0868810e92d519dacac1ddc64a2e53ba9e3422c3b62b378a6/setuptools-40.8.0-py2.py3-none-any.whl (575kB)
Installing collected packages: setuptools
Found existing installation: setuptools 40.6.2
Uninstalling setuptools-40.6.2:
Successfully uninstalled setuptools-40.6.2
Successfully installed setuptools-40.8.0
You are using pip version 18.1, however version 19.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Removing intermediate container f07a572c3a71
---> f655c407a59a
Step 6/9 : RUN pip install -r requirements.txt
---> Running in dd4d7c7fbebf
Collecting boto3==1.7.65 (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/29/ad/b7775a16329acfbf6eecf0198c05caa8a067c518fd84728b3aaad60446ea/boto3-1.7.65-py2.py3-none-any.whl (128kB)
Collecting celery==4.2.0 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/ea/75/d7d1eaeb6c90c7442f7b96242a6d4ebcf1cf075f9c51957d061fb8264d24/celery-4.2.0-py2.py3-none-any.whl (401kB)
Collecting channels-redis==2.2.1 (from -r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/63/ae/adea3b1913aebb84ec6b6f3c30ba81b8bef79f99b51c7240810284152df4/channels_redis-2.2.1-py2.py3-none-any.whl
Collecting Django==2.1.3 (from -r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/d1/e5/2676be45ea49cfd09a663f289376b3888accd57ff06c953297bfdee1fb08/Django-2.1.3-py3-none-any.whl (7.3MB)
Collecting django-allauth==0.36.0 (from -r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/28/86/186141ba1aa5eb98bb73ad7c010c1ce7d986f3c40655536ab156b36a2847/django-allauth-0.36.0.tar.gz (487kB)
Collecting django-compressor==2.2 (from -r requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/02/7b/deb4605f95bcefb9760ff130533553230a1c25f4d383ed0735b075d71b29/django_compressor-2.2-py2.py3-none-any.whl (118kB)
Collecting django-htmlmin==0.10.0 (from -r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/56/e5/974c9935837ea60359a78afb91d65b96c003b4dffa75e971f877ddbaf7ba/django_htmlmin-0.10.0-py2.py3-none-any.whl
Collecting django-storages==1.7.1 (from -r requirements.txt (line 8))
Downloading https://files.pythonhosted.org/packages/a0/00/b15822dbc3ea8ea3b80dca394fafc758f5ced6bf4aa357f636f43e08de8d/django_storages-1.7.1-py2.py3-none-any.whl (44kB)
Collecting djangorestframework==3.8.2 (from -r requirements.txt (line 9))
Downloading https://files.pythonhosted.org/packages/90/30/ad1148098ff0c375df2a30cc4494ed953cf7551fc1ecec30fc951c712d20/djangorestframework-3.8.2-py2.py3-none-any.whl (923kB)
Collecting furl==1.0.1 (from -r requirements.txt (line 10))
Downloading https://files.pythonhosted.org/packages/2e/1d/a06d8e06704d7e61954ae62335bcc58ccf437942fffa92162f31e98d76ca/furl-1.0.1.tar.gz (40kB)
Collecting future==0.16.0 (from -r requirements.txt (line 11))
Downloading https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
Collecting jsmin==2.2.2 (from -r requirements.txt (line 12))
Downloading https://files.pythonhosted.org/packages/17/73/615d1267a82ed26cd7c124108c3c61169d8e40c36d393883eaee3a561852/jsmin-2.2.2.tar.gz
Collecting Pillow==5.0.0 (from -r requirements.txt (line 13))
Downloading https://files.pythonhosted.org/packages/9a/2f/86941111d108fd060190c994f15881283b98693c1c370e74885cfc470eb3/Pillow-5.0.0-cp36-cp36m-manylinux1_x86_64.whl (5.9MB)
Collecting psycopg2==2.7.3.1 (from -r requirements.txt (line 14))
Downloading https://files.pythonhosted.org/packages/21/44/159fe55329b6b94dd3077080fed6c2f77c0d6b858bc415a5784e9e885235/psycopg2-2.7.3.1-cp36-cp36m-manylinux1_x86_64.whl (2.6MB)
Collecting Pygments==2.2.0 (from -r requirements.txt (line 15))
Downloading https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl (841kB)
Collecting python-decouple==3.1 (from -r requirements.txt (line 16))
Downloading https://files.pythonhosted.org/packages/9b/99/ddfbb6362af4ee239a012716b1371aa6d316ff1b9db705bfb182fbc4780f/python-decouple-3.1.tar.gz
Collecting redis==2.10.6 (from -r requirements.txt (line 17))
Downloading https://files.pythonhosted.org/packages/3b/f6/7a76333cf0b9251ecf49efff635015171843d9b977e4ffcf59f9c4428052/redis-2.10.6-py2.py3-none-any.whl (64kB)
Collecting s3transfer<0.2.0,>=0.1.10 (from boto3==1.7.65->-r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/d7/14/2a0004d487464d120c9fb85313a75cd3d71a7506955be458eebfe19a6b1d/s3transfer-0.1.13-py2.py3-none-any.whl (59kB)
Collecting jmespath<1.0.0,>=0.7.1 (from boto3==1.7.65->-r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/b7/31/05c8d001f7f87f0f07289a5fc0fc3832e9a57f2dbd4d3b0fee70e0d51365/jmespath-0.9.3-py2.py3-none-any.whl
Collecting botocore<1.11.0,>=1.10.65 (from boto3==1.7.65->-r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/01/b7/cb08cd1af2bb0d0dfb393101a93b6ab6fb80f109ab7b37f2f34386c11351/botocore-1.10.84-py2.py3-none-any.whl (4.5MB)
Collecting kombu<5.0,>=4.2.0 (from celery==4.2.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/29/48/c709a54c8533ed46fd868e593782c6743da33614f8134b82bc0955455031/kombu-4.3.0-py2.py3-none-any.whl (183kB)
Collecting pytz>dev (from celery==4.2.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl (510kB)
Collecting billiard<3.6.0,>=3.5.0.2 (from celery==4.2.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/8b/b7/c2fe04f2522bb02d044347734eeda3ff5c7a632fa7d0401530a371ba73db/billiard-3.5.0.5.tar.gz (150kB)
Collecting channels~=2.0 (from channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/57/42/df2e47cf16e6e636bf0d93ee00ec6eadf54cd4ed01b1083f3fcb0987a13e/channels-2.1.7-py2.py3-none-any.whl
Collecting msgpack~=0.5.0 (from channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/22/4e/dcf124fd97e5f5611123d6ad9f40ffd6eb979d1efdc1049e28a795672fcd/msgpack-0.5.6-cp36-cp36m-manylinux1_x86_64.whl (315kB)
Collecting aioredis~=1.0 (from channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/bc/2f/9ad85f5321f3f8604ae0f9b508f53f5f284fdb18b8095d1770f69e551a5e/aioredis-1.2.0-py3-none-any.whl (63kB)
Collecting asgiref~=2.1 (from channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/6a/ca/c141dc77da60230e393d33b5b29afbca718b7e6ce07921c42cf08af907f8/asgiref-2.3.2-py2.py3-none-any.whl
Collecting python3-openid>=3.0.8 (from django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/bd/de/52c5699f52dcee3037db587196dcaf63ffedf5fbeba3183afe9b21a3a89f/python3_openid-3.1.0-py3-none-any.whl (130kB)
Collecting requests-oauthlib>=0.3.0 (from django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/c2/e2/9fd03d55ffb70fe51f587f20bcf407a6927eb121de86928b34d162f0b1ac/requests_oauthlib-1.2.0-py2.py3-none-any.whl
Collecting requests (from django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
Collecting rjsmin==1.0.12 (from django-compressor==2.2->-r requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/10/9c/2c45f57d43258b05bf33cf8f6c8161ea5abf8b4776a5c59d12646727cd98/rjsmin-1.0.12.tar.gz (446kB)
Collecting django-appconf>=1.0 (from django-compressor==2.2->-r requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/5b/78/726cdf3e04660560cf25f9def95b8f2736310c581dabed9adfe60154a9f8/django_appconf-1.0.2-py2.py3-none-any.whl
Collecting rcssmin==1.0.6 (from django-compressor==2.2->-r requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/e2/5f/852be8aa80d1c24de9b030cdb6532bc7e7a1c8461554f6edbe14335ba890/rcssmin-1.0.6.tar.gz (582kB)
Collecting html5lib (from django-htmlmin==0.10.0->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl (117kB)
Collecting beautifulsoup4 (from django-htmlmin==0.10.0->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/1d/5d/3260694a59df0ec52f8b4883f5d23b130bc237602a1411fa670eae12351e/beautifulsoup4-4.7.1-py3-none-any.whl (94kB)
Collecting six>=1.8.0 (from furl==1.0.1->-r requirements.txt (line 10))
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting orderedmultidict>=0.7.8 (from furl==1.0.1->-r requirements.txt (line 10))
Downloading https://files.pythonhosted.org/packages/05/70/9f0a8867d4d98becf60dc5707e10b39930747ee914dae46414b69e33a266/orderedmultidict-1.0-py2.py3-none-any.whl
Collecting python-dateutil<3.0.0,>=2.1; python_version >= "2.7" (from botocore<1.11.0,>=1.10.65->boto3==1.7.65->-r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB)
Collecting docutils>=0.10 (from botocore<1.11.0,>=1.10.65->boto3==1.7.65->-r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/36/fa/08e9e6e0e3cbd1d362c3bbee8d01d0aedb2155c4ac112b19ef3cae8eed8d/docutils-0.14-py3-none-any.whl (543kB)
Collecting amqp<3.0,>=2.4.0 (from kombu<5.0,>=4.2.0->celery==4.2.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/27/32/5c8a0d355b247446eb73f89c0fa4a22c1832764c0cc9d2bc43b9256d9366/amqp-2.4.1-py2.py3-none-any.whl (49kB)
Collecting daphne~=2.2 (from channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/12/db/cecc130407d073470812f9e2f66897aa81399fa819671c8cf7b16e84366d/daphne-2.2.5-py2.py3-none-any.whl
Collecting hiredis (from aioredis~=1.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/65/09/b4688c3997a98c45b7bcb07e98e3a678bce7861d3907f237053d82838a56/hiredis-1.0.0-cp36-cp36m-manylinux1_x86_64.whl (49kB)
Collecting async-timeout (from aioredis~=1.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting defusedxml (from python3-openid>=3.0.8->django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/87/1c/17f3e3935a913dfe2a5ca85fa5ccbef366bfd82eb318b1f75dadbf0affca/defusedxml-0.5.0-py2.py3-none-any.whl
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.3.0->django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/16/95/699466b05b72b94a41f662dc9edf87fda4289e3602ecd42d27fcaddf7b56/oauthlib-3.0.1-py2.py3-none-any.whl (142kB)
Collecting idna<2.9,>=2.5 (from requests->django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests->django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting urllib3<1.25,>=1.21.1 (from requests->django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
Collecting certifi>=2017.4.17 (from requests->django-allauth==0.36.0->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl (154kB)
Collecting webencodings (from html5lib->django-htmlmin==0.10.0->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Collecting soupsieve>=1.2 (from beautifulsoup4->django-htmlmin==0.10.0->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/bf/b3/2473abf05c4950c6a829ed5dcbc40d8b56d4351d15d6939c8ffb7c6b1a14/soupsieve-1.7.3-py2.py3-none-any.whl
Collecting vine>=1.1.3 (from amqp<3.0,>=2.4.0->kombu<5.0,>=4.2.0->celery==4.2.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/62/dd/e30f828a39914626d67876b987d6fc47616b64de680cd0f746fc9c8aab47/vine-1.2.0-py2.py3-none-any.whl
Collecting twisted>=18.7 (from daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/5d/0e/a72d85a55761c2c3ff1cb968143a2fd5f360220779ed90e0fadf4106d4f2/Twisted-18.9.0.tar.bz2 (3.1MB)
Collecting autobahn>=0.18 (from daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/3d/d9/28aa58047558351eea29dafb8ff813af72e39ac35ade686394ca856914a7/autobahn-19.1.1-py2.py3-none-any.whl (302kB)
Collecting zope.interface>=4.4.2 (from twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/19/17/1d198a6aaa9aa4590862fe3d3a2ed7dd808050cab4eebe8a2f2f813c1376/zope.interface-4.6.0-cp36-cp36m-manylinux1_x86_64.whl (167kB)
Collecting constantly>=15.1 (from twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/b9/65/48c1909d0c0aeae6c10213340ce682db01b48ea900a7d9fce7a7910ff318/constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/f5/1d/c98a587dc06e107115cf4a58b49de20b19222c83d75335a192052af4c4b7/incremental-17.5.0-py2.py3-none-any.whl
Collecting Automat>=0.3.0 (from twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/a3/86/14c16bb98a5a3542ed8fed5d74fb064a902de3bdd98d6584b34553353c45/Automat-0.7.0-py2.py3-none-any.whl
Collecting hyperlink>=17.1.1 (from twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/a7/b6/84d0c863ff81e8e7de87cff3bd8fd8f1054c227ce09af1b679a8b17a9274/hyperlink-18.0.0-py2.py3-none-any.whl
Collecting PyHamcrest>=1.9.0 (from twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/9a/d5/d37fd731b7d0e91afcc84577edeccf4638b4f9b82f5ffe2f8b62e2ddc609/PyHamcrest-1.9.0-py2.py3-none-any.whl (52kB)
Collecting attrs>=17.4.0 (from twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Collecting txaio>=18.8.1 (from autobahn>=0.18->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/e9/6d/e1a6f7835cde86728e5bb1f577be9b2d7d273fdb33c286e70b087d418ded/txaio-18.8.1-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from zope.interface>=4.4.2->twisted>=18.7->daphne~=2.2->channels~=2.0->channels-redis==2.2.1->-r requirements.txt (line 3)) (40.8.0)
Building wheels for collected packages: django-allauth, furl, future, jsmin, python-decouple, billiard, rjsmin, rcssmin, twisted
Running setup.py bdist_wheel for django-allauth: started
Running setup.py bdist_wheel for django-allauth: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/3c/60/b8/ac2407548aa38ce19641ca46ad7b54bb6df23b778cf2841a6f
Running setup.py bdist_wheel for furl: started
Running setup.py bdist_wheel for furl: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/81/96/a3/3e7c8b902cdde764ef601f6912f58b46e9b15924f96bc74acc
Running setup.py bdist_wheel for future: started
Running setup.py bdist_wheel for future: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/bf/c9/a3/c538d90ef17cf7823fa51fc701a7a7a910a80f6a405bf15b1a
Running setup.py bdist_wheel for jsmin: started
Running setup.py bdist_wheel for jsmin: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/64/f4/de/9667d84f759289edf5442220997c6d4334637a6bb2a7b90f73
Running setup.py bdist_wheel for python-decouple: started
Running setup.py bdist_wheel for python-decouple: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/0f/ee/80/75b684060dc6ecc5a28c07b75ef4063f378aff1a37556f342a
Running setup.py bdist_wheel for billiard: started
Running setup.py bdist_wheel for billiard: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/b8/72/0e/39ecdedc4cfc45b693a623732e40dbd4cff5ea5e11775ee591
Running setup.py bdist_wheel for rjsmin: started
Running setup.py bdist_wheel for rjsmin: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/1f/c9/1f/e8622dd72620386db2ac3553529ec62b5aedb16bf0651b8cad
Running setup.py bdist_wheel for rcssmin: started
Running setup.py bdist_wheel for rcssmin: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/f5/82/85/01af385ab989b89e49bbe1d23047a8766ad43e1ebdad5084ed
Running setup.py bdist_wheel for twisted: started
Running setup.py bdist_wheel for twisted: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/57/2e/89/11ba83bc08ac30a5e3a6005f0310c78d231b96a270def88ca0
Successfully built django-allauth furl future jsmin python-decouple billiard rjsmin rcssmin twisted
Installing collected packages: jmespath, six, python-dateutil, docutils, botocore, s3transfer, boto3, vine, amqp, kombu, pytz, billiard, celery, Django, async-timeout, asgiref, zope.interface, constantly, incremental, attrs, Automat, idna, hyperlink, PyHamcrest, twisted, txaio, autobahn, daphne, channels, msgpack, hiredis, aioredis, channels-redis, defusedxml, python3-openid, chardet, urllib3, certifi, requests, oauthlib, requests-oauthlib, django-allauth, rjsmin, django-appconf, rcssmin, django-compressor, webencodings, html5lib, soupsieve, beautifulsoup4, django-htmlmin, django-storages, djangorestframework, orderedmultidict, furl, future, jsmin, Pillow, psycopg2, Pygments, python-decouple, redis
Successfully installed Automat-0.7.0 Django-2.1.3 Pillow-5.0.0 PyHamcrest-1.9.0 Pygments-2.2.0 aioredis-1.2.0 amqp-2.4.1 asgiref-2.3.2 async-timeout-3.0.1 attrs-18.2.0 autobahn-19.1.1 beautifulsoup4-4.7.1 billiard-3.5.0.5 boto3-1.7.65 botocore-1.10.84 celery-4.2.0 certifi-2018.11.29 channels-2.1.7 channels-redis-2.2.1 chardet-3.0.4 constantly-15.1.0 daphne-2.2.5 defusedxml-0.5.0 django-allauth-0.36.0 django-appconf-1.0.2 django-compressor-2.2 django-htmlmin-0.10.0 django-storages-1.7.1 djangorestframework-3.8.2 docutils-0.14 furl-1.0.1 future-0.16.0 hiredis-1.0.0 html5lib-1.0.1 hyperlink-18.0.0 idna-2.8 incremental-17.5.0 jmespath-0.9.3 jsmin-2.2.2 kombu-4.3.0 msgpack-0.5.6 oauthlib-3.0.1 orderedmultidict-1.0 psycopg2-2.7.3.1 python-dateutil-2.8.0 python-decouple-3.1 python3-openid-3.1.0 pytz-2018.9 rcssmin-1.0.6 redis-2.10.6 requests-2.21.0 requests-oauthlib-1.2.0 rjsmin-1.0.12 s3transfer-0.1.13 six-1.12.0 soupsieve-1.7.3 twisted-18.9.0 txaio-18.8.1 urllib3-1.24.1 vine-1.2.0 webencodings-0.5.1 zope.interface-4.6.0
You are using pip version 18.1, however version 19.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Removing intermediate container dd4d7c7fbebf
---> b45071749a34
Step 7/9 : ADD . /code/
---> b7ca5ca29ad9
Step 8/9 : RUN apt-get update && apt-get install -y postgresql-client
---> Running in 0c47e3e9dbfd
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [475 kB]
Ign:3 http://deb.debian.org/debian stretch InRelease
Get:4 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [7748 B]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7090 kB]
Fetched 7878 kB in 4s (1658 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
distro-info-data lsb-release postgresql-client-9.6 postgresql-client-common
Suggested packages:
lsb postgresql-9.6 postgresql-doc-9.6
The following NEW packages will be installed:
distro-info-data lsb-release postgresql-client postgresql-client-9.6
postgresql-client-common
0 upgraded, 5 newly installed, 0 to remove and 26 not upgraded.
Need to get 1447 kB of archives.
After this operation, 6078 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 distro-info-data all 0.36 [5810 B]
Get:2 http://deb.debian.org/debian stretch/main amd64 lsb-release all 9.20161125 [27.1 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 postgresql-client-common all 181+deb9u2 [79.2 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 postgresql-client-9.6 amd64 9.6.10-0+deb9u1 [1279 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 postgresql-client all 9.6+181+deb9u2 [55.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1447 kB in 0s (2099 kB/s)
Selecting previously unselected package distro-info-data.
(Reading database ... 30223 files and directories currently installed.)
Preparing to unpack .../distro-info-data_0.36_all.deb ...
Unpacking distro-info-data (0.36) ...
Selecting previously unselected package lsb-release.
Preparing to unpack .../lsb-release_9.20161125_all.deb ...
Unpacking lsb-release (9.20161125) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../postgresql-client-common_181+deb9u2_all.deb ...
Unpacking postgresql-client-common (181+deb9u2) ...
Selecting previously unselected package postgresql-client-9.6.
Preparing to unpack .../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 .../postgresql-client_9.6+181+deb9u2_all.deb ...
Unpacking postgresql-client (9.6+181+deb9u2) ...
Setting up distro-info-data (0.36) ...
Setting up lsb-release (9.20161125) ...
Setting up postgresql-client-common (181+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 postgresql-client (9.6+181+deb9u2) ...
Removing intermediate container 0c47e3e9dbfd
---> 0044df579ab7
Step 9/9 : EXPOSE 8000
---> Running in 243f55745217
Removing intermediate container 243f55745217
---> 2b811a8ab770
Successfully built 2b811a8ab770
Successfully tagged modelchimp_web:latest
Building celery
Step 1/9 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/9 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/9 : ADD requirements.txt /code/
---> Using cache
---> b61897bd34b0
Step 4/9 : WORKDIR /code
---> Using cache
---> 4c03c287815d
Step 5/9 : RUN pip install --upgrade setuptools
---> Using cache
---> f655c407a59a
Step 6/9 : RUN pip install -r requirements.txt
---> Using cache
---> b45071749a34
Step 7/9 : ADD . /code/
---> Using cache
---> b7ca5ca29ad9
Step 8/9 : RUN apt-get update && apt-get install -y postgresql-client
---> Using cache
---> 0044df579ab7
Step 9/9 : EXPOSE 8000
---> Using cache
---> 2b811a8ab770
Successfully built 2b811a8ab770
Successfully tagged modelchimp_celery:latest
Starting modelchimp_redis_1 ... error
Recreating modelchimp_db_1 ...

ERROR: for modelchimp_redis_1 Cannot start service redis: driver failed programming external connectivity on endpoint modelchimp_redis_1 (33807c6801f0acdb9e78806dae66076151ca8c518cd9fa56cc0b6edf1d83178b): ErrorRecreating modelchimp_db_1 ... error

ERROR: for modelchimp_db_1 Cannot start service db: driver failed programming external connectivity on endpoint modelchimp_db_1 (a1e0f28d522921d6856033bfbd4b5fa34a294b6cf86dc3557d8fab5a1c2e2ed1): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:5432:tcp:172.19.0.2:5432: input/output error

ERROR: for redis Cannot start service redis: driver failed programming external connectivity on endpoint modelchimp_redis_1 (33807c6801f0acdb9e78806dae66076151ca8c518cd9fa56cc0b6edf1d83178b): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:6379:tcp:172.19.0.3:6379: input/output error

ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint modelchimp_db_1 (a1e0f28d522921d6856033bfbd4b5fa34a294b6cf86dc3557d8fab5a1c2e2ed1): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:5432:tcp:172.19.0.2:5432: input/output error
ERROR: Encountered errors while bringing up the project.

@samzer
Copy link
Member

samzer commented Feb 11, 2019

Removing the containers that have been built with the following commands might solve the issue.

  • docker stop $(docker ps -a -q)
  • docker rm $(docker ps -a -q)

This link has information on the commands, you'll have to modify it to corresponding windows version

After the above steps are done, execute the .\docker-windows.bat and let me know if it works.

P.S I'm on a mac and don't have a windows machine readily with me due to which its difficult to reproduce this.

@tdekelver
Copy link
Author

Thanks I did remove all the dockers I had and ran it again
But now it seems to not find the wait-for-postgres.sh file (altough it is in the folder)
See the log:

$>docker volume create --name postgres-data -d local
postgres-data

$>docker-compose -f docker-compose.yml -f docker-compose.windows.yml up --build --abort-on-container-exit
Building web
Step 1/9 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/9 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/9 : ADD requirements.txt /code/
---> Using cache
---> b61897bd34b0
Step 4/9 : WORKDIR /code
---> Using cache
---> 4c03c287815d
Step 5/9 : RUN pip install --upgrade setuptools
---> Using cache
---> f655c407a59a
Step 6/9 : RUN pip install -r requirements.txt
---> Using cache
---> b45071749a34
Step 7/9 : ADD . /code/
---> Using cache
---> b7ca5ca29ad9
Step 8/9 : RUN apt-get update && apt-get install -y postgresql-client
---> Using cache
---> 0044df579ab7
Step 9/9 : EXPOSE 8000
---> Using cache
---> 2b811a8ab770
Successfully built 2b811a8ab770
Successfully tagged modelchimp_web:latest
Building celery
Step 1/9 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/9 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/9 : ADD requirements.txt /code/
---> Using cache
---> b61897bd34b0
Step 4/9 : WORKDIR /code
---> Using cache
---> 4c03c287815d
Step 5/9 : RUN pip install --upgrade setuptools
---> Using cache
---> f655c407a59a
Step 6/9 : RUN pip install -r requirements.txt
---> Using cache
---> b45071749a34
Step 7/9 : ADD . /code/
---> Using cache
---> b7ca5ca29ad9
Step 8/9 : RUN apt-get update && apt-get install -y postgresql-client
---> Using cache
---> 0044df579ab7
Step 9/9 : EXPOSE 8000
---> Using cache
---> 2b811a8ab770
Successfully built 2b811a8ab770
Successfully tagged modelchimp_celery:latest
Creating modelchimp_redis_1 ... done
Creating modelchimp_db_1 ... done
Creating modelchimp_web_1 ... done
Creating modelchimp_celery_1 ... done
Attaching to modelchimp_db_1, modelchimp_redis_1, modelchimp_web_1, modelchimp_celery_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 default max_connections ... 100
db_1 | selecting default shared_buffers ... 128MB
redis_1 | 1:C 11 Feb 2019 16:48:37.434 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1 | 1:C 11 Feb 2019 16:48:37.434 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1 | 1:C 11 Feb 2019 16:48:37.434 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1 | 1:M 11 Feb 2019 16:48:37.443 * Running mode=standalone, port=6379.
redis_1 | 1:M 11 Feb 2019 16:48:37.443 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1 | 1:M 11 Feb 2019 16:48:37.443 # Server initialized
redis_1 | 1:M 11 Feb 2019 16:48:37.443 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1 | 1:M 11 Feb 2019 16:48:37.443 * Ready to accept connections
db_1 | selecting dynamic shared memory implementation ... posix
db_1 | creating configuration files ... ok
db_1 | running bootstrap script ... ok
db_1 | performing post-bootstrap initialization ... ok
web_1 | bash: wait-for-postgres.sh: No such file or directory
celery_1 | bash: wait-for-postgres.sh: No such file or directory
db_1 | syncing data to disk ... ok
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 |
db_1 | 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 | ****************************************************
db_1 | WARNING: No password has been set for the database.
db_1 | This will allow anyone with access to the
db_1 | Postgres port to access your database. In
db_1 | Docker's default configuration, this is
db_1 | effectively any other container on the same
db_1 | system.
db_1 |
db_1 | Use "-e POSTGRES_PASSWORD=password" to set
db_1 | it in "docker run".
db_1 | ****************************************************
modelchimp_celery_1 exited with code 127
Aborting on container exit...
Stopping modelchimp_web_1 ... done
Stopping modelchimp_redis_1 ... done
Stopping modelchimp_db_1 ... done

@samzer
Copy link
Member

samzer commented Feb 11, 2019

Hmm...not sure why that is happening. I tried it on my friend's window machine and its working.

Could you comment out the Line 7 in Dockerfile and run it again
#ADD . /code/

@tdekelver
Copy link
Author

Still have the same problem even with commenting out the line 7

docker-compose -f docker-compose.yml -f docker-compose.windows.yml up --build --abort-on-container-exit
Building web
Step 1/8 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/8 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/8 : ADD requirements.txt /code/
---> Using cache
---> b61897bd34b0
Step 4/8 : WORKDIR /code
---> Using cache
---> 4c03c287815d
Step 5/8 : RUN pip install --upgrade setuptools
---> Using cache
---> f655c407a59a
Step 6/8 : RUN pip install -r requirements.txt
---> Using cache
---> b45071749a34
Step 7/8 : RUN apt-get update && apt-get install -y postgresql-client
---> Using cache
---> ffdf030a5363
Step 8/8 : EXPOSE 8000
---> Using cache
---> 25917ca4adbd
Successfully built 25917ca4adbd
Successfully tagged modelchimp_web:latest
Building celery
Step 1/8 : FROM python:3.6.7-stretch
---> 1ec4d11819ad
Step 2/8 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 1ca747b25fa0
Step 3/8 : ADD requirements.txt /code/
---> Using cache
---> b61897bd34b0
Step 4/8 : WORKDIR /code
---> Using cache
---> 4c03c287815d
Step 5/8 : RUN pip install --upgrade setuptools
---> Using cache
---> f655c407a59a
Step 6/8 : RUN pip install -r requirements.txt
---> Using cache
---> b45071749a34
Step 7/8 : RUN apt-get update && apt-get install -y postgresql-client
---> Using cache
---> ffdf030a5363
Step 8/8 : EXPOSE 8000
---> Using cache
---> 25917ca4adbd
Successfully built 25917ca4adbd
Successfully tagged modelchimp_celery:latest
Starting modelchimp_db_1 ... error
Starting modelchimp_redis_1 ...

ERROR: for modelchimp_db_1 Cannot start service db: driver failed programming external connectivity on endpoint modelchimp_db_1 (3913c789ca6e6ae8d5e61924d0c998a0671120992b182fdd1ae0ed3f1b5dced1): Error starting userland proxy: mkdir /port/Starting modelchimp_redis_1 ... error

ERROR: for modelchimp_redis_1 Cannot start service redis: driver failed programming external connectivity on endpoint modelchimp_redis_1 (a7e8755820f61f54c96177e5f9bf2d841ecfaf9dcc27db8f0dd18159fb1f93b5): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:6379:tcp:172.19.0.3:6379: input/output error

ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint modelchimp_db_1 (3913c789ca6e6ae8d5e61924d0c998a0671120992b182fdd1ae0ed3f1b5dced1): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:5432:tcp:172.19.0.2:5432: input/output error

ERROR: for redis Cannot start service redis: driver failed programming external connectivity on endpoint modelchimp_redis_1 (a7e8755820f61f54c96177e5f9bf2d841ecfaf9dcc27db8f0dd18159fb1f93b5): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:6379:tcp:172.19.0.3:6379: input/output error
ERROR: Encountered errors while bringing up the project.

@samzer
Copy link
Member

samzer commented Feb 12, 2019

This is a docker error caused by the stray containers again. You'll have to do the container removal that you did earlier which eliminates this error.

After this, if there is still an error then you can ping me individually in slack and we can get on skype/hangout to see what's going on

https://join.slack.com/t/modelchimp/shared_invite/enQtNDcyNzU0MTQ2MzU0LTYxNDFjZWIwOTE0NjFkMGVlOGQ5YTZhYWQ2MWE1YWVmMDVhMDQ5MmZlYTU0N2UxMWYxYzE0Nzc2NGZlN2FiN2Q

@samzer samzer added bug Something isn't working windows and removed bug Something isn't working labels Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants