Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ docker-compose -f docker/docker-compose.yaml up
- Creating volume "docker_postgres-data" with local driver
- Pulling db (postgres:latest)...
- latest: Pulling from library/postgres
- ad74af05f5a2: Pull complete
- 8996b4a29b2b: Pull complete
- bea3311ef15b: Pull complete
- b1b9eb0ac9c8: Pull complete
- 1d6d551d6af0: Pull complete
- ba16377760f9: Pull complete
- 2b514f6e3ef7: Pull complete
- 0e114ac261be: Pull complete
- eb5c1803318c: Pull complete
- 2969cff5710e: Pull complete
- 78a73d03b014: Pull complete
- d38698b91d10: Pull complete
- efdd4c790d34: Pull complete
- Digest: sha256:07d178f4b071971208b912f888c0375838435a06728c431f8a1ef3cc04cdee8d
- Status: Downloaded newer image for postgres:latest
- Pulling redis (redis:latest)...
- latest: Pulling from library/redis
- 5233d9aed181: Pull complete
- ca1b33d3f114: Pull complete
- 920cdc17d3c2: Pull complete
- 6f939f708ee9: Pull complete
- 4ba0e186289d: Pull complete
- 1e448b71a4f0: Pull complete
- Digest: sha256:a7776895af32e34b1fef997e26c79fa988b40c5cf2a3fb48dc22e0584b648d82
- Status: Downloaded newer image for redis:latest
- Pulling web (uwcirg-portal-docker.jfrog.io/portal_web:e4bef52c7eb0c9e647397808f59afa3a60a8473f)...
- e4bef52c7eb0c9e647397808f59afa3a60a8473f: Pulling from portal_web
- ad74af05f5a2: Already exists
- b78dba6f2b5d: Pull complete
- 63009733aa44: Pull complete
- 02b14ce6effe: Pull complete
- 71d58add0a18: Pull complete
- c4f53a233d63: Pull complete
- Digest: sha256:629afba874f892ceabda2400ca55aa621098ddd15c7738f8b87f5a27b888a46d
- Status: Downloaded newer image for uwcirg-portal-docker.jfrog.io/portal_web:e4bef52c7eb0c9e647397808f59afa3a60a8473f
- Creating docker_db_1 ...
- Creating docker_redis_1 ...
- Creating docker_db_1
- Creating docker_db_1 ... done
- Creating docker_web_1 ...
- Creating docker_web_1 ... done
- Attaching to docker_redis_1, docker_db_1, docker_web_1
- redis_1 | 1:C 07 Aug 19:34:45.770 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
- redis_1 | 1:C 07 Aug 19:34:45.770 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=1, just started
- redis_1 | 1:C 07 Aug 19:34:45.770 # 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 07 Aug 19:34:45.771 * Running mode=standalone, port=6379.
- db_1 | The files belonging to this database system will be owned by user "postgres".
- redis_1 | 1:M 07 Aug 19:34:45.772 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
- db_1 | This user must also own the server process.
- redis_1 | 1:M 07 Aug 19:34:45.772 # Server initialized
- redis_1 | 1:M 07 Aug 19:34:45.772 # 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 07 Aug 19:34:45.772 * Ready to accept connections
- db_1 |
- web_1 | no_proxy=*.local, 169.254/16
- web_1 | HOSTNAME=3857c9d5aefa
- web_1 | PERSISTENCE_FILE=https://raw.githubusercontent.com/uwcirg/TrueNTH-USA-site-config/develop/site_persistence_file.json
- web_1 | PORT=8008
- web_1 | HOME=/var/www
- db_1 | The database cluster will be initialized with locale "en_US.utf8".
- web_1 | PS1=(portal)$
- web_1 | FLASK_APP=/opt/venvs/portal/bin/manage.py
- web_1 | PATH=/opt/venvs/portal/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- web_1 | RUN_USER=www-data
- web_1 | REQUEST_CACHE_URL=redis://redis:6379/0
- 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 |
- web_1 | DEBIAN_FRONTEND=noninteractive
- web_1 | PROJECT_DIR=/opt/venvs/portal
- web_1 | CELERY_BROKER_URL=redis://redis:6379/0
- web_1 | SESSION_REDIS_URL=redis://redis:6379/0
- web_1 | VIRTUAL_ENV=/opt/venvs/portal
- web_1 | PWD=/
- web_1 | SQLALCHEMY_DATABASE_URI=postgresql://postgres:@db/postgres
- web_1 | SERVER_NAME=localhost
- 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
- 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
- db_1 | syncing data to disk ...
- 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 | 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: 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 | ****************************************************
- db_1 | waiting for server to start....LOG: could not bind IPv6 socket: Cannot assign requested address
- db_1 | HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
- db_1 | LOG: database system was shut down at 2017-08-07 19:34:47 UTC
- db_1 | LOG: MultiXact member wraparound protections are now enabled
- db_1 | LOG: database system is ready to accept connections
- db_1 | LOG: autovacuum launcher started
- web_1 | Traceback (most recent call last):
- web_1 | File "/opt/venvs/portal/bin/flask", line 11, in <module>
- web_1 | sys.exit(main())
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/flask/cli.py", line 513, in main
- web_1 | cli.main(args=args, prog_name=name)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/flask/cli.py", line 380, in main
- web_1 | return AppGroup.main(self, *args, **kwargs)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 697, in main
- web_1 | rv = self.invoke(ctx)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
- web_1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
- web_1 | return ctx.invoke(self.callback, **ctx.params)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
- web_1 | return callback(*args, **kwargs)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
- web_1 | return f(get_current_context(), *args, **kwargs)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/flask/cli.py", line 257, in decorator
- web_1 | return __ctx.invoke(f, *args, **kwargs)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
- web_1 | return callback(*args, **kwargs)
- web_1 | File "/opt/venvs/portal/bin/manage.py", line 78, in sync
- web_1 | if not db.engine.dialect.has_table(db.engine.connect(), 'alembic_version'):
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2091, in connect
- web_1 | return self._connection_cls(self, **kwargs)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 90, in __init__
- web_1 | if connection is not None else engine.raw_connection()
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2177, in raw_connection
- web_1 | self.pool.unique_connection, _connection)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2151, in _wrap_pool_connect
- web_1 | e, dialect, self)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1465, in _handle_dbapi_exception_noconnection
- web_1 | exc_info
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
- web_1 | reraise(type(exception), exception, tb=exc_tb, cause=cause)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2147, in _wrap_pool_connect
- web_1 | return fn()
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 328, in unique_connection
- web_1 | return _ConnectionFairy._checkout(self)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 766, in _checkout
- web_1 | fairy = _ConnectionRecord.checkout(pool)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 516, in checkout
- web_1 | rec = pool._do_get()
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1138, in _do_get
- web_1 | self._dec_overflow()
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
- web_1 | compat.reraise(exc_type, exc_value, exc_tb)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1135, in _do_get
- web_1 | return self._create_connection()
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 333, in _create_connection
- web_1 | return _ConnectionRecord(self)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 461, in __init__
- web_1 | self.__connect(first_connect_check=True)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 651, in __connect
- web_1 | connection = pool._invoke_creator(self)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 105, in connect
- web_1 | return dialect.connect(*cargs, **cparams)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 393, in connect
- web_1 | return self.dbapi.connect(*cargs, **cparams)
- web_1 | File "/opt/venvs/portal/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
- web_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- web_1 | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
- web_1 | Is the server running on host "db" (172.18.0.3) and accepting
- web_1 | TCP/IP connections on port 5432?
- web_1 |
- db_1 | done
- db_1 | server started
- db_1 | ALTER ROLE
- db_1 |
- db_1 |
- db_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
- db_1 |
- db_1 | LOG: received fast shutdown request
- db_1 | LOG: aborting any active transactions
- db_1 | waiting for server to shut down....LOG: autovacuum launcher shutting down
- db_1 | LOG: shutting down
- db_1 | LOG: database system is shut down
- docker_web_1 exited with code 1
- db_1 | done
- db_1 | server stopped
- db_1 |
- db_1 | PostgreSQL init process complete; ready for start up.
- db_1 |
- db_1 | LOG: database system was shut down at 2017-08-07 19:34:49 UTC
- db_1 | LOG: MultiXact member wraparound protections are now enabled
- db_1 | LOG: database system is ready to accept connections
- db_1 | LOG: autovacuum launcher started
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement