Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.30 KB | None | 0 0
  1. $  docker-compose -f docker/docker-compose.yaml up
  2. Creating volume "docker_postgres-data" with local driver
  3. Pulling db (postgres:latest)...
  4. latest: Pulling from library/postgres
  5. ad74af05f5a2: Pull complete
  6. 8996b4a29b2b: Pull complete
  7. bea3311ef15b: Pull complete
  8. b1b9eb0ac9c8: Pull complete
  9. 1d6d551d6af0: Pull complete
  10. ba16377760f9: Pull complete
  11. 2b514f6e3ef7: Pull complete
  12. 0e114ac261be: Pull complete
  13. eb5c1803318c: Pull complete
  14. 2969cff5710e: Pull complete
  15. 78a73d03b014: Pull complete
  16. d38698b91d10: Pull complete
  17. efdd4c790d34: Pull complete
  18. Digest: sha256:07d178f4b071971208b912f888c0375838435a06728c431f8a1ef3cc04cdee8d
  19. Status: Downloaded newer image for postgres:latest
  20. Pulling redis (redis:latest)...
  21. latest: Pulling from library/redis
  22. 5233d9aed181: Pull complete
  23. ca1b33d3f114: Pull complete
  24. 920cdc17d3c2: Pull complete
  25. 6f939f708ee9: Pull complete
  26. 4ba0e186289d: Pull complete
  27. 1e448b71a4f0: Pull complete
  28. Digest: sha256:a7776895af32e34b1fef997e26c79fa988b40c5cf2a3fb48dc22e0584b648d82
  29. Status: Downloaded newer image for redis:latest
  30. Pulling web (uwcirg-portal-docker.jfrog.io/portal_web:e4bef52c7eb0c9e647397808f59afa3a60a8473f)...
  31. e4bef52c7eb0c9e647397808f59afa3a60a8473f: Pulling from portal_web
  32. ad74af05f5a2: Already exists
  33. b78dba6f2b5d: Pull complete
  34. 63009733aa44: Pull complete
  35. 02b14ce6effe: Pull complete
  36. 71d58add0a18: Pull complete
  37. c4f53a233d63: Pull complete
  38. Digest: sha256:629afba874f892ceabda2400ca55aa621098ddd15c7738f8b87f5a27b888a46d
  39. Status: Downloaded newer image for uwcirg-portal-docker.jfrog.io/portal_web:e4bef52c7eb0c9e647397808f59afa3a60a8473f
  40. Creating docker_db_1 ...
  41. Creating docker_redis_1 ...
  42. Creating docker_db_1
  43. Creating docker_db_1 ... done
  44. Creating docker_web_1 ...
  45. Creating docker_web_1 ... done
  46. Attaching to docker_redis_1, docker_db_1, docker_web_1
  47. redis_1  | 1:C 07 Aug 19:34:45.770 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
  48. 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
  49. 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
  50. redis_1  | 1:M 07 Aug 19:34:45.771 * Running mode=standalone, port=6379.
  51. db_1     | The files belonging to this database system will be owned by user "postgres".
  52. 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.
  53. db_1     | This user must also own the server process.
  54. redis_1  | 1:M 07 Aug 19:34:45.772 # Server initialized
  55. 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.
  56. redis_1  | 1:M 07 Aug 19:34:45.772 * Ready to accept connections
  57. db_1     |
  58. web_1    | no_proxy=*.local, 169.254/16
  59. web_1    | HOSTNAME=3857c9d5aefa
  60. web_1    | PERSISTENCE_FILE=https://raw.githubusercontent.com/uwcirg/TrueNTH-USA-site-config/develop/site_persistence_file.json
  61. web_1    | PORT=8008
  62. web_1    | HOME=/var/www
  63. db_1     | The database cluster will be initialized with locale "en_US.utf8".
  64. web_1    | PS1=(portal)$
  65. web_1    | FLASK_APP=/opt/venvs/portal/bin/manage.py
  66. web_1    | PATH=/opt/venvs/portal/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  67. web_1    | RUN_USER=www-data
  68. web_1    | REQUEST_CACHE_URL=redis://redis:6379/0
  69. db_1     | The default database encoding has accordingly been set to "UTF8".
  70. db_1     | The default text search configuration will be set to "english".
  71. db_1     |
  72. web_1    | DEBIAN_FRONTEND=noninteractive
  73. web_1    | PROJECT_DIR=/opt/venvs/portal
  74. web_1    | CELERY_BROKER_URL=redis://redis:6379/0
  75. web_1    | SESSION_REDIS_URL=redis://redis:6379/0
  76. web_1    | VIRTUAL_ENV=/opt/venvs/portal
  77. web_1    | PWD=/
  78. web_1    | SQLALCHEMY_DATABASE_URI=postgresql://postgres:@db/postgres
  79. web_1    | SERVER_NAME=localhost
  80. db_1     | Data page checksums are disabled.
  81. db_1     |
  82. db_1     | fixing permissions on existing directory /var/lib/postgresql/data ... ok
  83. db_1     | creating subdirectories ... ok
  84. db_1     | selecting default max_connections ... 100
  85. db_1     | selecting default shared_buffers ... 128MB
  86. db_1     | selecting dynamic shared memory implementation ... posix
  87. db_1     | creating configuration files ... ok
  88. db_1     | running bootstrap script ... ok
  89. db_1     | performing post-bootstrap initialization ... ok
  90. db_1     | syncing data to disk ...
  91. db_1     | WARNING: enabling "trust" authentication for local connections
  92. db_1     | You can change this by editing pg_hba.conf or using the option -A, or
  93. db_1     | --auth-local and --auth-host, the next time you run initdb.
  94. db_1     | ok
  95. db_1     |
  96. db_1     | Success. You can now start the database server using:
  97. db_1     |
  98. db_1     |     pg_ctl -D /var/lib/postgresql/data -l logfile start
  99. db_1     |
  100. db_1     | ****************************************************
  101. db_1     | WARNING: No password has been set for the database.
  102. db_1     |          This will allow anyone with access to the
  103. db_1     |          Postgres port to access your database. In
  104. db_1     |          Docker's default configuration, this is
  105. db_1     |          effectively any other container on the same
  106. db_1     |          system.
  107. db_1     |
  108. db_1     |          Use "-e POSTGRES_PASSWORD=password" to set
  109. db_1     |          it in "docker run".
  110. db_1     | ****************************************************
  111. db_1     | waiting for server to start....LOG:  could not bind IPv6 socket: Cannot assign requested address
  112. db_1     | HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
  113. db_1     | LOG:  database system was shut down at 2017-08-07 19:34:47 UTC
  114. db_1     | LOG:  MultiXact member wraparound protections are now enabled
  115. db_1     | LOG:  database system is ready to accept connections
  116. db_1     | LOG:  autovacuum launcher started
  117. web_1    | Traceback (most recent call last):
  118. web_1    |   File "/opt/venvs/portal/bin/flask", line 11, in <module>
  119. web_1    |     sys.exit(main())
  120. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/flask/cli.py", line 513, in main
  121. web_1    |     cli.main(args=args, prog_name=name)
  122. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/flask/cli.py", line 380, in main
  123. web_1    |     return AppGroup.main(self, *args, **kwargs)
  124. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 697, in main
  125. web_1    |     rv = self.invoke(ctx)
  126. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
  127. web_1    |     return _process_result(sub_ctx.command.invoke(sub_ctx))
  128. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
  129. web_1    |     return ctx.invoke(self.callback, **ctx.params)
  130. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
  131. web_1    |     return callback(*args, **kwargs)
  132. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
  133. web_1    |     return f(get_current_context(), *args, **kwargs)
  134. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/flask/cli.py", line 257, in decorator
  135. web_1    |     return __ctx.invoke(f, *args, **kwargs)
  136. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
  137. web_1    |     return callback(*args, **kwargs)
  138. web_1    |   File "/opt/venvs/portal/bin/manage.py", line 78, in sync
  139. web_1    |     if not db.engine.dialect.has_table(db.engine.connect(), 'alembic_version'):
  140. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2091, in connect
  141. web_1    |     return self._connection_cls(self, **kwargs)
  142. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 90, in __init__
  143. web_1    |     if connection is not None else engine.raw_connection()
  144. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2177, in raw_connection
  145. web_1    |     self.pool.unique_connection, _connection)
  146. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2151, in _wrap_pool_connect
  147. web_1    |     e, dialect, self)
  148. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1465, in _handle_dbapi_exception_noconnection
  149. web_1    |     exc_info
  150. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
  151. web_1    |     reraise(type(exception), exception, tb=exc_tb, cause=cause)
  152. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2147, in _wrap_pool_connect
  153. web_1    |     return fn()
  154. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 328, in unique_connection
  155. web_1    |     return _ConnectionFairy._checkout(self)
  156. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 766, in _checkout
  157. web_1    |     fairy = _ConnectionRecord.checkout(pool)
  158. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 516, in checkout
  159. web_1    |     rec = pool._do_get()
  160. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1138, in _do_get
  161. web_1    |     self._dec_overflow()
  162. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
  163. web_1    |     compat.reraise(exc_type, exc_value, exc_tb)
  164. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1135, in _do_get
  165. web_1    |     return self._create_connection()
  166. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 333, in _create_connection
  167. web_1    |     return _ConnectionRecord(self)
  168. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 461, in __init__
  169. web_1    |     self.__connect(first_connect_check=True)
  170. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 651, in __connect
  171. web_1    |     connection = pool._invoke_creator(self)
  172. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 105, in connect
  173. web_1    |     return dialect.connect(*cargs, **cparams)
  174. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 393, in connect
  175. web_1    |     return self.dbapi.connect(*cargs, **cparams)
  176. web_1    |   File "/opt/venvs/portal/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
  177. web_1    |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  178. web_1    | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
  179. web_1    |  Is the server running on host "db" (172.18.0.3) and accepting
  180. web_1    |  TCP/IP connections on port 5432?
  181. web_1    |
  182. db_1     |  done
  183. db_1     | server started
  184. db_1     | ALTER ROLE
  185. db_1     |
  186. db_1     |
  187. db_1     | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
  188. db_1     |
  189. db_1     | LOG:  received fast shutdown request
  190. db_1     | LOG:  aborting any active transactions
  191. db_1     | waiting for server to shut down....LOG:  autovacuum launcher shutting down
  192. db_1     | LOG:  shutting down
  193. db_1     | LOG:  database system is shut down
  194. docker_web_1 exited with code 1
  195. db_1     |  done
  196. db_1     | server stopped
  197. db_1     |
  198. db_1     | PostgreSQL init process complete; ready for start up.
  199. db_1     |
  200. db_1     | LOG:  database system was shut down at 2017-08-07 19:34:49 UTC
  201. db_1     | LOG:  MultiXact member wraparound protections are now enabled
  202. db_1     | LOG:  database system is ready to accept connections
  203. db_1     | LOG:  autovacuum launcher started
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement