I am following the docs for trying django-ca out with the included docker-compose.yml file and receiving errors (see below.) I would really appreciate your help in resolving whatever issues I am running into.
Here are my OS details:
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
$ sestatus
SELinux status: disabled
Here are my docker details:
$ docker --version
Docker version 19.03.8, build afacb8b
$ docker-compose --version
docker-compose version 1.25.0, build 0a186604
Here is the output that I get after cloning a fresh copy and running the commands:
$ DJANGO_CA_CA_DEFAULT_HOSTNAME=foo.bar.com POSTGRES_PASSWORD=password123 docker-compose up
Creating network "django-ca_cache" with the default driver
Creating network "django-ca_database" with the default driver
Creating network "django-ca_frontend" with the default driver
Creating network "django-ca_public" with the default driver
Creating volume "django-ca_shared" with default driver
Creating volume "django-ca_static" with default driver
Creating volume "django-ca_shared_ca_dir" with default driver
Creating volume "django-ca_ocsp_key_dir" with default driver
Creating volume "django-ca_nginx_config" with default driver
Pulling cache (redis:5-alpine)...
5-alpine: Pulling from library/redis
cbdbe7a5bc2a: Pull complete
dc0373118a0d: Pull complete
cfd369fe6256: Pull complete
3e45770272d9: Pull complete
558de8ea3153: Pull complete
a2c652551612: Pull complete
Digest: sha256:83a3af36d5e57f2901b4783c313720e5fa3ecf0424ba86ad9775e06a9a5e35d0
Status: Downloaded newer image for redis:5-alpine
Pulling db (postgres:12-alpine)...
12-alpine: Pulling from library/postgres
cbdbe7a5bc2a: Already exists
b52a8a2ca21a: Pull complete
e36a19831e31: Pull complete
f4dcdeed24b7: Pull complete
e261f2444b0a: Pull complete
0ff301de3ecf: Pull complete
1d858bf02c95: Pull complete
7958b7df2951: Pull complete
Digest: sha256:9ea72265275674225b1eaa2ae897dd244028af4ee7ef6e4e89fe474938e0992e
Status: Downloaded newer image for postgres:12-alpine
Pulling backend (mathiasertl/django-ca:latest)...
latest: Pulling from mathiasertl/django-ca
e6b0cf9c0882: Pull complete
da0e9bf0cc60: Pull complete
c9ea274ed700: Pull complete
9cfac6ba3733: Pull complete
f6a933c9cadc: Pull complete
daae7c0b60c6: Pull complete
9858e21a61d3: Pull complete
9e907b941929: Pull complete
3faef82179cb: Pull complete
b83c764ad0da: Pull complete
1f4a3b7e76d2: Pull complete
4d05ee040dba: Pull complete
03ee376c0e0b: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:6fe88dc00d39d16365e95e8fed085c14214e19964718ba2ca3508b8fedb5c8a7
Status: Downloaded newer image for mathiasertl/django-ca:latest
Pulling webserver (nginx:1.17-alpine)...
1.17-alpine: Pulling from library/nginx
cbdbe7a5bc2a: Already exists
c554c602ff32: Pull complete
Digest: sha256:763e7f0188e378fef0c761854552c70bbd817555dc4de029681a2e972e25e30e
Status: Downloaded newer image for nginx:1.17-alpine
Creating django-ca_cache_1 ... done
Creating django-ca_db_1 ... done
Creating django-ca_backend_1 ... done
Creating django-ca_frontend_1 ... done
Creating django-ca_webserver_1 ... done
Attaching to django-ca_cache_1, django-ca_db_1, django-ca_frontend_1, django-ca_backend_1, django-ca_webserver_1
cache_1 | 1:C 13 May 2020 22:29:26.365 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
cache_1 | 1:C 13 May 2020 22:29:26.365 # Redis version=5.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
cache_1 | 1:C 13 May 2020 22:29:26.365 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
cache_1 | 1:M 13 May 2020 22:29:26.365 * Running mode=standalone, port=6379.
cache_1 | 1:M 13 May 2020 22:29:26.365 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
cache_1 | 1:M 13 May 2020 22:29:26.365 # Server initialized
cache_1 | 1:M 13 May 2020 22:29:26.365 # 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.
cache_1 | 1:M 13 May 2020 22:29:26.365 # 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.
cache_1 | 1:M 13 May 2020 22:29:26.365 * Ready to accept connections
backend_1 | Sleep for 1 seconds to wait for secret key...
db_1 | The files belonging to this database system will be owned by user "postgres".
db_1 | This user must also own the server process.
db_1 |
db_1 | The database cluster will be initialized with locale "en_US.utf8".
db_1 | The default database encoding has accordingly been set to "UTF8".
db_1 | The default text search configuration will be set to "english".
db_1 |
db_1 | Data page checksums are disabled.
db_1 |
db_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db_1 | creating subdirectories ... ok
db_1 | selecting dynamic shared memory implementation ... posix
db_1 | selecting default max_connections ... 100
db_1 | selecting default shared_buffers ... 128MB
db_1 | selecting default time zone ... UTC
db_1 | creating configuration files ... ok
db_1 | running bootstrap script ... ok
db_1 | performing post-bootstrap initialization ... sh: locale: not found
db_1 | 2020-05-13 22:29:26.797 UTC [30] WARNING: no usable system locales were found
db_1 | ok
db_1 | syncing data to disk ... ok
db_1 |
db_1 |
db_1 | Success. You can now start the database server using:
db_1 |
db_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1 |
frontend_1 | Create secret key at /var/lib/django-ca/shared/secret-key...
frontend_1 | + python manage.py migrate --noinput
db_1 | initdb: warning: enabling "trust" authentication for local connections
db_1 | You can change this by editing pg_hba.conf or using the option -A, or
db_1 | --auth-local and --auth-host, the next time you run initdb.
db_1 | waiting for server to start....2020-05-13 22:29:27.181 UTC [35] LOG: starting PostgreSQL 12.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 9.2.0, 64-bit
db_1 | 2020-05-13 22:29:27.183 UTC [35] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2020-05-13 22:29:27.199 UTC [36] LOG: database system was shut down at 2020-05-13 22:29:27 UTC
db_1 | 2020-05-13 22:29:27.201 UTC [35] LOG: database system is ready to accept connections
db_1 | done
db_1 | server started
db_1 |
db_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db_1 |
db_1 | waiting for server to shut down....2020-05-13 22:29:27.278 UTC [35] LOG: received fast shutdown request
db_1 | 2020-05-13 22:29:27.279 UTC [35] LOG: aborting any active transactions
db_1 | 2020-05-13 22:29:27.280 UTC [35] LOG: background worker "logical replication launcher" (PID 42) exited with exit code 1
db_1 | 2020-05-13 22:29:27.281 UTC [37] LOG: shutting down
db_1 | 2020-05-13 22:29:27.290 UTC [35] LOG: database system is shut down
db_1 | done
db_1 | server stopped
db_1 |
db_1 | PostgreSQL init process complete; ready for start up.
db_1 |
db_1 | 2020-05-13 22:29:27.384 UTC [1] LOG: starting PostgreSQL 12.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 9.2.0, 64-bit
db_1 | 2020-05-13 22:29:27.384 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2020-05-13 22:29:27.384 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2020-05-13 22:29:27.385 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2020-05-13 22:29:27.394 UTC [44] LOG: database system was shut down at 2020-05-13 22:29:27 UTC
db_1 | 2020-05-13 22:29:27.396 UTC [1] LOG: database system is ready to accept connections
frontend_1 | /usr/src/django-ca/ca/ca/settings.py:186: UserWarning: localsettings.py is deprecated and will be removed in django-ca>=1.18.
frontend_1 | warnings.warn('localsettings.py is deprecated and will be removed in django-ca>=1.18.')
backend_1 | + exec celery worker -A ca -B -s /var/lib/django-ca/celerybeat-schedule -l warning
backend_1 | /usr/src/django-ca/ca/ca/settings.py:186: UserWarning: localsettings.py is deprecated and will be removed in django-ca>=1.18.
backend_1 | warnings.warn('localsettings.py is deprecated and will be removed in django-ca>=1.18.')
frontend_1 | Traceback (most recent call last):
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | psycopg2.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
frontend_1 |
frontend_1 | The above exception was the direct cause of the following exception:
frontend_1 |
frontend_1 | Traceback (most recent call last):
frontend_1 | File "manage.py", line 10, in
frontend_1 | execute_from_command_line(sys.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
frontend_1 | utility.execute()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute
frontend_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
frontend_1 | self.execute(*args, **cmd_options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
frontend_1 | output = self.handle(*args, **options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
frontend_1 | res = handle_func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 86, in handle
frontend_1 | executor = MigrationExecutor(connection, self.migration_progress_callback)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in init
frontend_1 | self.loader = MigrationLoader(self.connection)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 49, in init
frontend_1 | self.build_graph()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 212, in build_graph
frontend_1 | self.applied_migrations = recorder.applied_migrations()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 76, in applied_migrations
frontend_1 | if self.has_table():
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 56, in has_table
frontend_1 | return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 260, in cursor
frontend_1 | return self._cursor()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 236, in _cursor
frontend_1 | self.ensure_connection()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit
frontend_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | django.db.utils.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
backend_1 | [2020-05-13 22:29:30,351: ERROR/MainProcess] consumer: Cannot connect to redis://cache:6379/0: Error 113 connecting to cache:6379. Host is unreachable..
backend_1 | Trying again in 2.00 seconds...
backend_1 |
frontend_1 | /usr/src/django-ca/ca/ca/settings.py:186: UserWarning: localsettings.py is deprecated and will be removed in django-ca>=1.18.
frontend_1 | warnings.warn('localsettings.py is deprecated and will be removed in django-ca>=1.18.')
frontend_1 | Traceback (most recent call last):
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | psycopg2.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
frontend_1 |
frontend_1 | The above exception was the direct cause of the following exception:
frontend_1 |
frontend_1 | Traceback (most recent call last):
frontend_1 | File "manage.py", line 10, in
frontend_1 | execute_from_command_line(sys.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
frontend_1 | utility.execute()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute
frontend_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
frontend_1 | self.execute(*args, **cmd_options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
frontend_1 | output = self.handle(*args, **options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
frontend_1 | res = handle_func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 86, in handle
frontend_1 | executor = MigrationExecutor(connection, self.migration_progress_callback)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in init
frontend_1 | self.loader = MigrationLoader(self.connection)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 49, in init
frontend_1 | self.build_graph()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 212, in build_graph
frontend_1 | self.applied_migrations = recorder.applied_migrations()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 76, in applied_migrations
frontend_1 | if self.has_table():
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 56, in has_table
frontend_1 | return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 260, in cursor
frontend_1 | return self._cursor()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 236, in _cursor
frontend_1 | self.ensure_connection()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit
frontend_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | django.db.utils.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
django-ca_frontend_1 exited with code 1
backend_1 | [2020-05-13 22:29:33,358: ERROR/MainProcess] consumer: Cannot connect to redis://cache:6379/0: Error 113 connecting to cache:6379. Host is unreachable..
backend_1 | Trying again in 4.00 seconds...
backend_1 |
frontend_1 | /usr/src/django-ca/ca/ca/settings.py:186: UserWarning: localsettings.py is deprecated and will be removed in django-ca>=1.18.
frontend_1 | warnings.warn('localsettings.py is deprecated and will be removed in django-ca>=1.18.')
frontend_1 | Traceback (most recent call last):
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | psycopg2.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
frontend_1 |
frontend_1 | The above exception was the direct cause of the following exception:
frontend_1 |
frontend_1 | Traceback (most recent call last):
frontend_1 | File "manage.py", line 10, in
frontend_1 | execute_from_command_line(sys.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
frontend_1 | utility.execute()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute
frontend_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
frontend_1 | self.execute(*args, **cmd_options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
frontend_1 | output = self.handle(*args, **options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
frontend_1 | res = handle_func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 86, in handle
frontend_1 | executor = MigrationExecutor(connection, self.migration_progress_callback)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in init
frontend_1 | self.loader = MigrationLoader(self.connection)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 49, in init
frontend_1 | self.build_graph()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 212, in build_graph
frontend_1 | self.applied_migrations = recorder.applied_migrations()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 76, in applied_migrations
frontend_1 | if self.has_table():
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 56, in has_table
frontend_1 | return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 260, in cursor
frontend_1 | return self._cursor()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 236, in _cursor
frontend_1 | self.ensure_connection()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit
frontend_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | django.db.utils.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
django-ca_frontend_1 exited with code 1
frontend_1 | /usr/src/django-ca/ca/ca/settings.py:186: UserWarning: localsettings.py is deprecated and will be removed in django-ca>=1.18.
frontend_1 | warnings.warn('localsettings.py is deprecated and will be removed in django-ca>=1.18.')
frontend_1 | Traceback (most recent call last):
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | psycopg2.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
frontend_1 |
frontend_1 | The above exception was the direct cause of the following exception:
frontend_1 |
frontend_1 | Traceback (most recent call last):
frontend_1 | File "manage.py", line 10, in
frontend_1 | execute_from_command_line(sys.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
frontend_1 | utility.execute()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute
frontend_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
frontend_1 | self.execute(*args, **cmd_options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
frontend_1 | output = self.handle(*args, **options)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
frontend_1 | res = handle_func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 86, in handle
frontend_1 | executor = MigrationExecutor(connection, self.migration_progress_callback)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in init
frontend_1 | self.loader = MigrationLoader(self.connection)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 49, in init
frontend_1 | self.build_graph()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 212, in build_graph
frontend_1 | self.applied_migrations = recorder.applied_migrations()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 76, in applied_migrations
frontend_1 | if self.has_table():
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 56, in has_table
frontend_1 | return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 260, in cursor
frontend_1 | return self._cursor()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 236, in _cursor
frontend_1 | self.ensure_connection()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit
frontend_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
frontend_1 | self.connect()
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
frontend_1 | self.connection = self.get_new_connection(conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
frontend_1 | return func(*args, **kwargs)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
frontend_1 | connection = Database.connect(**conn_params)
frontend_1 | File "/usr/local/lib/python3.8/site-packages/psycopg2/init.py", line 126, in connect
frontend_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
frontend_1 | django.db.utils.OperationalError: could not connect to server: Host is unreachable
frontend_1 | Is the server running on host "db" (172.31.0.2) and accepting
frontend_1 | TCP/IP connections on port 5432?
frontend_1 |
django-ca_frontend_1 exited with code 1
backend_1 | [2020-05-13 22:29:38,414: ERROR/MainProcess] consumer: Cannot connect to redis://cache:6379/0: Error 113 connecting to cache:6379. Host is unreachable..
backend_1 | Trying again in 6.00 seconds...
backend_1 |
^CGracefully stopping... (press Ctrl+C again to force)
Stopping django-ca_webserver_1 ... done
Stopping django-ca_backend_1 ... done
Stopping django-ca_frontend_1 ... done
Stopping django-ca_db_1 ... done
Stopping django-ca_cache_1 ... done
Thank you