Skip to content

Instantly share code, notes, and snippets.

@leplatrem
Created February 11, 2019 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leplatrem/88b6bbf48c7a7abdd3e9b9b16b38eaf4 to your computer and use it in GitHub Desktop.
Save leplatrem/88b6bbf48c7a7abdd3e9b9b16b38eaf4 to your computer and use it in GitHub Desktop.
make up
docker-compose kill
./scripts/build.sh
Sending build context to Docker daemon 17.66MB
Step 1/11 : FROM python:3.6
---> 4f13b7f2138e
Step 2/11 : ENV PYTHONDONTWRITEBYTECODE 1
---> Using cache
---> 9db6e2d323b4
Step 3/11 : WORKDIR /app
---> Using cache
---> d4658ca2ee58
Step 4/11 : EXPOSE 7001
---> Using cache
---> 7618e8a6127c
Step 5/11 : COPY bin/wait-for-it.sh /app/bin/wait-for-it.sh
---> Using cache
---> 5fd757e0e985
Step 6/11 : RUN chmod +x /app/bin/wait-for-it.sh
---> Using cache
---> 1912819c8878
Step 7/11 : RUN apt-get update
---> Using cache
---> 4cd075449a67
Step 8/11 : RUN apt-get install -y postgresql-client
---> Using cache
---> dad1d7d6a039
Step 9/11 : COPY ./requirements.txt /app/requirements.txt
---> Using cache
---> ea2525732cd4
Step 10/11 : RUN pip install -r requirements.txt --no-cache-dir --disable-pip-version-check
---> Using cache
---> a9a7211ab0ab
Step 11/11 : COPY . /app
---> Using cache
---> 2f0fe3b6a17d
Successfully built 2f0fe3b6a17d
Successfully tagged app:build
docker-compose build
db uses an image, skipping
redis uses an image, skipping
smtp uses an image, skipping
worker uses an image, skipping
app uses an image, skipping
Building nginx
Step 1/5 : FROM nginx:1.9.9
---> fb7fe53bd952
Step 2/5 : RUN rm /etc/nginx/nginx.conf
---> Using cache
---> ee06de5e35a2
Step 3/5 : COPY nginx.conf /etc/nginx/
---> Using cache
---> 823691e85b6d
Step 4/5 : COPY key.pem /etc/nginx/
---> Using cache
---> 89fcd2021b29
Step 5/5 : COPY cert.pem /etc/nginx/
---> Using cache
---> 9b0d91d66290
Successfully built 9b0d91d66290
Successfully tagged experimenter_nginx:latest
docker-compose up
Starting experimenter_redis_1 ... done
Starting experimenter_db_1 ... done
Starting experimenter_smtp_1 ... done
Recreating experimenter_app_1 ... done
Recreating experimenter_worker_1 ... done
Recreating experimenter_nginx_1 ... done
Attaching to experimenter_db_1, experimenter_redis_1, experimenter_smtp_1, experimenter_app_1, experimenter_worker_1, experimenter_nginx_1
db_1 | LOG: database system was shut down at 2019-02-11 10:21:07 UTC
db_1 | LOG: MultiXact member wraparound protections are now enabled
redis_1 | 1:C 11 Feb 2019 10:24:03.433 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1 | 1:C 11 Feb 2019 10:24:03.433 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1 | 1:C 11 Feb 2019 10:24:03.433 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
db_1 | LOG: autovacuum launcher started
db_1 | LOG: database system is ready to accept connections
redis_1 | 1:M 11 Feb 2019 10:24:03.435 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
redis_1 | 1:M 11 Feb 2019 10:24:03.435 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
redis_1 | 1:M 11 Feb 2019 10:24:03.435 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
db_1 | LOG: incomplete startup packet
redis_1 | 1:M 11 Feb 2019 10:24:03.436 * Running mode=standalone, port=6379.
redis_1 | 1:M 11 Feb 2019 10:24:03.436 # 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 10:24:03.436 # Server initialized
redis_1 | 1:M 11 Feb 2019 10:24:03.437 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1 | 1:M 11 Feb 2019 10:24:03.437 # 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 10:24:03.437 * DB loaded from disk: 0.000 seconds
redis_1 | 1:M 11 Feb 2019 10:24:03.437 * Ready to accept connections
db_1 | LOG: incomplete startup packet
app_1 | wait-for-it.sh: waiting 15 seconds for db:5432
app_1 | wait-for-it.sh: db:5432 is available after 0 seconds
worker_1 | wait-for-it.sh: waiting 15 seconds for db:5432
nginx_1 | 2019/02/11 10:24:07 [warn] 1#1: 19000 worker_connections exceed open file resource limit: 1024
nginx_1 | nginx: [warn] 19000 worker_connections exceed open file resource limit: 1024
worker_1 | wait-for-it.sh: db:5432 is available after 0 seconds
app_1 | {"Timestamp": 1549880648248047616, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 7, "Pid": 8, "Fields": {"msg": "Configuring Raven for host: None"}}
app_1 | {"Timestamp": 1549880648248443136, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 6, "Pid": 8, "Fields": {"msg": "Raven is not configured (logging is disabled). Please see the documentation for more information."}}
worker_1 | {"Timestamp": 1549880648501638912, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "c3ec631052a2", "EnvVersion": "2.0", "Severity": 7, "Pid": 1, "Fields": {"msg": "Configuring Raven for host: None"}}
worker_1 | {"Timestamp": 1549880648502033152, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "c3ec631052a2", "EnvVersion": "2.0", "Severity": 6, "Pid": 1, "Fields": {"msg": "Raven is not configured (logging is disabled). Please see the documentation for more information."}}
app_1 |
app_1 | 0 static files copied to '/app/experimenter/served/static', 1617 unmodified.
worker_1 | /usr/local/lib/python3.6/site-packages/celery/platforms.py:796: RuntimeWarning: You're running the worker with superuser privileges: this is
worker_1 | absolutely not recommended!
worker_1 |
worker_1 | Please specify a different user using the --uid option.
worker_1 |
worker_1 | User information: uid=0 euid=0 gid=0 egid=0
worker_1 |
worker_1 | uid=uid, euid=euid, gid=gid, egid=egid,
worker_1 | [2019-02-11 10:24:09,351: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379//: Error 111 connecting to 127.0.0.1:6379. Connection refused..
worker_1 | Trying again in 2.00 seconds...
worker_1 |
app_1 | {"Timestamp": 1549880650730944000, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 7, "Pid": 19, "Fields": {"msg": "Configuring Raven for host: None"}}
app_1 | {"Timestamp": 1549880650731275264, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 6, "Pid": 19, "Fields": {"msg": "Raven is not configured (logging is disabled). Please see the documentation for more information."}}
worker_1 | [2019-02-11 10:24:11,356: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379//: Error 111 connecting to 127.0.0.1:6379. Connection refused..
worker_1 | Trying again in 4.00 seconds...
worker_1 |
app_1 | {"Timestamp": 1549880652582569472, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 7, "Pid": 23, "Fields": {"msg": "Configuring Raven for host: None"}}
app_1 | {"Timestamp": 1549880652583207424, "Type": "raven.contrib.django.client.DjangoClient", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 6, "Pid": 23, "Fields": {"msg": "Raven is not configured (logging is disabled). Please see the documentation for more information."}}
app_1 | Performing system checks...
app_1 |
app_1 | System check identified no issues (0 silenced).
app_1 | {"Timestamp": 1549880653064155904, "Type": "django.db.backends", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 7, "Pid": 23, "Fields": {"duration": 0.005978107452392578, "sql": "\n SELECT c.relname, c.relkind\n FROM pg_catalog.pg_class c\n LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\n WHERE c.relkind IN ('r', 'v')\n AND n.nspname NOT IN ('pg_catalog', 'pg_toast')\n AND pg_catalog.pg_table_is_visible(c.oid)", "params": null, "msg": "(0.006) \n SELECT c.relname, c.relkind\n FROM pg_catalog.pg_class c\n LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\n WHERE c.relkind IN ('r', 'v')\n AND n.nspname NOT IN ('pg_catalog', 'pg_toast')\n AND pg_catalog.pg_table_is_visible(c.oid); args=None"}}
app_1 | {"Timestamp": 1549880653068516096, "Type": "django.db.backends", "Logger": "experimenter", "Hostname": "a0c1e00d3f8c", "EnvVersion": "2.0", "Severity": 7, "Pid": 23, "Fields": {"duration": 0.0008361339569091797, "sql": "SELECT \"django_migrations\".\"app\", \"django_migrations\".\"name\" FROM \"django_migrations\"", "params": [], "msg": "(0.001) SELECT \"django_migrations\".\"app\", \"django_migrations\".\"name\" FROM \"django_migrations\"; args=()"}}
app_1 | February 11, 2019 - 10:24:13
app_1 | Django version 2.1.5, using settings 'experimenter.settings'
app_1 | Starting development server at http://0:7001/
app_1 | Quit the server with CONTROL-C.
worker_1 | [2019-02-11 10:24:15,363: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379//: Error 111 connecting to 127.0.0.1:6379. Connection refused..
worker_1 | Trying again in 6.00 seconds...
worker_1 |
worker_1 | [2019-02-11 10:24:21,371: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379//: Error 111 connecting to 127.0.0.1:6379. Connection refused..
worker_1 | Trying again in 8.00 seconds...
worker_1 |
worker_1 | [2019-02-11 10:24:29,382: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379//: Error 111 connecting to 127.0.0.1:6379. Connection refused..
worker_1 | Trying again in 10.00 seconds...
worker_1 |
worker_1 | [2019-02-11 10:24:39,396: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379//: Error 111 connecting to 127.0.0.1:6379. Connection refused..
worker_1 | Trying again in 12.00 seconds...
worker_1 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment