Skip to content

Instantly share code, notes, and snippets.

@briandant
Created May 4, 2016 20:14
Show Gist options
  • Save briandant/cdd1d44079fbafc143b2752fa199a81f to your computer and use it in GitHub Desktop.
Save briandant/cdd1d44079fbafc143b2752fa199a81f to your computer and use it in GitHub Desktop.
Attaching to wharf_redisDataContainer_1, wharf_hipache_1, wharf_pgDataContainer_1, wharf_postgres_1, wharf_web_1
x27[33mhipache_1            | x27[0mUsing configuration file:
x27[33mhipache_1            | x27[0m{
x27[33mhipache_1            | x27[0m    "server": {
x27[33mhipache_1            | x27[0m        "accessLog": "/var/log/hipache-access.log",
x27[35mpostgres_1           | x27[0mThe files belonging to this database system will be owned by user "postgres".
x27[33mhipache_1            | x27[0m        "workers": 10,
x27[35mpostgres_1           | x27[0mThis user must also own the server process.
x27[33mhipache_1            | x27[0m        "maxSockets": 100,
x27[35mpostgres_1           | x27[0m
x27[33mhipache_1            | x27[0m        "deadBackendTTL": 30,
x27[35mpostgres_1           | x27[0mThe database cluster will be initialized with locale "en_US.utf8".
x27[33mhipache_1            | x27[0m        "tcpTimeout": 30,
x27[35mpostgres_1           | x27[0mThe default database encoding has accordingly been set to "UTF8".
x27[35mpostgres_1           | x27[0mThe default text search configuration will be set to "english".
x27[35mpostgres_1           | x27[0m
x27[33mhipache_1            | x27[0m        "retryOnError": 3,
x27[33mhipache_1            | x27[0m        "deadBackendOn500": false,
x27[35mpostgres_1           | x27[0mData page checksums are disabled.
x27[33mhipache_1            | x27[0m        "httpKeepAlive": false,
x27[35mpostgres_1           | x27[0m
x27[33mhipache_1            | x27[0m        "lruCache": {
x27[35mpostgres_1           | x27[0mfixing permissions on existing directory /var/lib/postgresql/data ... ok
x27[33mhipache_1            | x27[0m            "size": 5,
x27[35mpostgres_1           | x27[0mcreating subdirectories ... ok
x27[33mhipache_1            | x27[0m            "ttl": 5
x27[33mhipache_1            | x27[0m        },
x27[35mpostgres_1           | x27[0mselecting default max_connections ... 100
x27[33mhipache_1            | x27[0m        "port": 80,
x27[33mhipache_1            | x27[0m        "address": ["0.0.0.0"]
x27[33mhipache_1            | x27[0m    },
x27[33mhipache_1            | x27[0m    "driver": "redis:"
x27[33mhipache_1            | x27[0m}
x27[35mpostgres_1           | x27[0mselecting default shared_buffers ... 128MB
x27[35mpostgres_1           | x27[0mcreating configuration files ... ok
x27[33mhipache_1            | x27[0m/usr/lib/python2.7/dist-packages/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
x27[33mhipache_1            | x27[0m  'Supervisord is running as root and it is searching '
x27[33mhipache_1            | x27[0m2016-05-04 20:13:31,588 CRIT Supervisor running as root (no user in config file)
x27[33mhipache_1            | x27[0m2016-05-04 20:13:31,588 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
x27[33mhipache_1            | x27[0m2016-05-04 20:13:31,603 INFO RPC interface 'supervisor' initialized
x27[33mhipache_1            | x27[0m2016-05-04 20:13:31,603 CRIT Server 'unix_http_server' running without any HTTP authentication checking
x27[33mhipache_1            | x27[0m2016-05-04 20:13:31,603 INFO supervisord started with pid 1
x27[31mweb_1                | x27[0mStarting with UID : 1000
x27[36mwharf_redisDataContainer_1 exited with code 0
x27[0mx27[32mwharf_pgDataContainer_1 exited with code 0
x27[0mx27[33mhipache_1            | x27[0m2016-05-04 20:13:32,606 INFO spawned: 'hipache' with pid 23
x27[33mhipache_1            | x27[0m2016-05-04 20:13:32,608 INFO spawned: 'redis' with pid 24
x27[35mpostgres_1           | x27[0mcreating template1 database in /var/lib/postgresql/data/base/1 ... ok
x27[35mpostgres_1           | x27[0minitializing pg_authid ... ok
x27[35mpostgres_1           | x27[0minitializing dependencies ... ok
x27[35mpostgres_1           | x27[0mcreating system views ... ok
x27[35mpostgres_1           | x27[0mloading system objects' descriptions ... ok
x27[35mpostgres_1           | x27[0mcreating collations ... ok
x27[35mpostgres_1           | x27[0mcreating conversions ... ok
x27[35mpostgres_1           | x27[0mcreating dictionaries ... ok
x27[35mpostgres_1           | x27[0msetting privileges on built-in objects ... ok
x27[35mpostgres_1           | x27[0mcreating information schema ... ok
x27[35mpostgres_1           | x27[0mloading PL/pgSQL server-side language ... ok
x27[33mhipache_1            | x27[0m2016-05-04 20:13:33,945 INFO success: hipache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
x27[33mhipache_1            | x27[0m2016-05-04 20:13:33,945 INFO success: redis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
x27[35mpostgres_1           | x27[0mvacuuming database template1 ... ok
x27[35mpostgres_1           | x27[0mcopying template1 to template0 ... ok
x27[35mpostgres_1           | x27[0mcopying template1 to postgres ... ok
x27[35mpostgres_1           | x27[0msyncing data to disk ... ok
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0mSuccess. You can now start the database server using:
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0m    postgres -D /var/lib/postgresql/data
x27[35mpostgres_1           | x27[0mor
x27[35mpostgres_1           | x27[0m    pg_ctl -D /var/lib/postgresql/data -l logfile start
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0mWARNING: enabling "trust" authentication for local connections
x27[35mpostgres_1           | x27[0mYou can change this by editing pg_hba.conf or using the option -A, or
x27[35mpostgres_1           | x27[0m--auth-local and --auth-host, the next time you run initdb.
x27[35mpostgres_1           | x27[0m****************************************************
x27[35mpostgres_1           | x27[0mWARNING: No password has been set for the database.
x27[35mpostgres_1           | x27[0m         This will allow anyone with access to the
x27[35mpostgres_1           | x27[0m         Postgres port to access your database. In
x27[35mpostgres_1           | x27[0m         Docker's default configuration, this is
x27[35mpostgres_1           | x27[0m         effectively any other container on the same
x27[35mpostgres_1           | x27[0m         system.
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0m         Use "-e POSTGRES_PASSWORD=password" to set
x27[35mpostgres_1           | x27[0m         it in "docker run".
x27[35mpostgres_1           | x27[0m****************************************************
x27[35mpostgres_1           | x27[0mwaiting for server to start....LOG:  database system was shut down at 2016-05-04 20:13:34 UTC
x27[35mpostgres_1           | x27[0mLOG:  MultiXact member wraparound protections are now enabled
x27[35mpostgres_1           | x27[0mLOG:  database system is ready to accept connections
x27[35mpostgres_1           | x27[0mLOG:  autovacuum launcher started
x27[35mpostgres_1           | x27[0m done
x27[35mpostgres_1           | x27[0mserver started
x27[35mpostgres_1           | x27[0mALTER ROLE
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0m/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0mLOG:  received fast shutdown request
x27[35mpostgres_1           | x27[0mLOG:  aborting any active transactions
x27[35mpostgres_1           | x27[0mLOG:  autovacuum launcher shutting down
x27[35mpostgres_1           | x27[0mLOG:  shutting down
x27[35mpostgres_1           | x27[0mwaiting for server to shut down....LOG:  database system is shut down
x27[31mweb_1                | x27[0mPerforming system checks...
x27[31mweb_1                | x27[0m
x27[31mweb_1                | x27[0mSystem check identified no issues (0 silenced).
x27[31mweb_1                | x27[0mUnhandled exception in thread started by <function wrapper at 0x7f84c3afc320>
x27[31mweb_1                | x27[0mTraceback (most recent call last):
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper
x27[31mweb_1                | x27[0m    fn(*args, **kwargs)
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 116, in inner_run
x27[31mweb_1                | x27[0m    self.check_migrations()
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 168, in check_migrations
x27[31mweb_1                | x27[0m    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 19, in __init__
x27[31mweb_1                | x27[0m    self.loader = MigrationLoader(self.connection)
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 47, in __init__
x27[31mweb_1                | x27[0m    self.build_graph()
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 191, in build_graph
x27[31mweb_1                | x27[0m    self.applied_migrations = recorder.applied_migrations()
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 59, in applied_migrations
x27[31mweb_1                | x27[0m    self.ensure_schema()
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 49, in ensure_schema
x27[31mweb_1                | x27[0m    if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 162, in cursor
x27[31mweb_1                | x27[0m    cursor = self.make_debug_cursor(self._cursor())
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 135, in _cursor
x27[31mweb_1                | x27[0m    self.ensure_connection()
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection
x27[31mweb_1                | x27[0m    self.connect()
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 98, in __exit__
x27[31mweb_1                | x27[0m    six.reraise(dj_exc_type, dj_exc_value, traceback)
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection
x27[31mweb_1                | x27[0m    self.connect()
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 119, in connect
x27[31mweb_1                | x27[0m    self.connection = self.get_new_connection(conn_params)
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 176, in get_new_connection
x27[31mweb_1                | x27[0m    connection = Database.connect(**conn_params)
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/opbeat/instrumentation/packages/base.py", line 131, in __call__
x27[31mweb_1                | x27[0m    args, kwargs)
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/opbeat/instrumentation/packages/base.py", line 223, in call_if_sampling
x27[31mweb_1                | x27[0m    return wrapped(*args, **kwargs)
x27[31mweb_1                | x27[0m  File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
x27[31mweb_1                | x27[0m    conn = _connect(dsn, connection_factory=connection_factory, async=async)
x27[31mweb_1                | x27[0mdjango.db.utils.OperationalError: could not connect to server: Connection refused
x27[31mweb_1                | x27[0m	Is the server running on host "postgres" (172.17.0.4) and accepting
x27[31mweb_1                | x27[0m	TCP/IP connections on port 5432?
x27[31mweb_1                | x27[0m
x27[35mpostgres_1           | x27[0m done
x27[35mpostgres_1           | x27[0mserver stopped
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0mPostgreSQL init process complete; ready for start up.
x27[35mpostgres_1           | x27[0m
x27[35mpostgres_1           | x27[0mLOG:  database system was shut down at 2016-05-04 20:13:35 UTC
x27[35mpostgres_1           | x27[0mLOG:  MultiXact member wraparound protections are now enabled
x27[35mpostgres_1           | x27[0mLOG:  database system is ready to accept connections
x27[35mpostgres_1           | x27[0mLOG:  autovacuum launcher started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment