Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mikhail@LAPTOP-LARGCP2J MINGW64 ~/My Documents/_GitHub_Clones/demo (master)
- $ ./docker-local.sh
- Creating network "dockercompose_default" with the default driver
- Creating volume "dockercompose_db-data" with default driver
- Pulling db (postgres:9.4)...
- 9.4: Pulling from library/postgres
- 6ae821421a7d: Pull complete
- 060245e5c056: Pull complete
- d6c2e60cfc1c: Pull complete
- 38d23c24a9df: Pull complete
- 9998068fb35e: Pull complete
- 2bb2385a4bb9: Pull complete
- 2ad14c51497d: Pull complete
- 77519615ed40: Pull complete
- 532c705012dd: Pull complete
- b25389b0be4f: Pull complete
- 05646b11ab9a: Pull complete
- dafb52aa677b: Pull complete
- e7c5de2f401c: Pull complete
- e84558ac1077: Pull complete
- Digest: sha256:df4ba773a3a3f15a4dc695b8e2302aa74629badb0b60c6bab1c2ba353d8686ba
- Status: Downloaded newer image for postgres:9.4
- Building db-cli
- Step 1/11 : FROM python:3.7
- 3.7: Pulling from library/python
- 741437d97401: Pull complete
- 34d8874714d7: Pull complete
- 0a108aa26679: Pull complete
- 7f0334c36886: Pull complete
- 65c95cb8b3be: Pull complete
- 9107d7193263: Pull complete
- dd6f212ec984: Pull complete
- 43288b101abf: Pull complete
- f68aede0db03: Pull complete
- Digest: sha256:fb877e7ea5c40de100534c6d6f515c486247bfd899cb2767f2de0e876a8127fa
- Status: Downloaded newer image for python:3.7
- ---> ac069ebfe1e1
- Step 2/11 : LABEL author="levymedina3@gmail.com"
- ---> Running in 2d3145a33e9e
- Removing intermediate container 2d3145a33e9e
- ---> c4cfc7a06298
- Step 3/11 : COPY ./requirements.txt /app/requirements.txt
- ---> d558310608bf
- Step 4/11 : WORKDIR /app
- ---> Running in 5d0e7a5b5486
- Removing intermediate container 5d0e7a5b5486
- ---> 3802e3b06235
- Step 5/11 : ENV FLASK_RUN_PORT=5001
- ---> Running in 5328352eafd0
- Removing intermediate container 5328352eafd0
- ---> f5ad52cd23cb
- Step 6/11 : ENV FLASK_APP=app.py
- ---> Running in ca82d48322c5
- Removing intermediate container ca82d48322c5
- ---> 50dc431c48fb
- Step 7/11 : ENV FLASK_ENV=development
- ---> Running in 62438bc7592e
- Removing intermediate container 62438bc7592e
- ---> 293eab3845e5
- Step 8/11 : RUN pip install -r requirements.txt
- ---> Running in de9a759d4e23
- Collecting aniso8601==3.0.2 (from -r requirements.txt (line 1))
- Downloading https://files.pythonhosted.org/packages/17/13/eecdcc638c0ea3b105ebb62ff4e76914a744ef1b6f308651dbed368c6c01/aniso8601-3.0.2-py2.py3-none-any.whl
- Collecting Click==7.0 (from -r requirements.txt (line 2))
- Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
- Collecting flake8==3.6.0 (from -r requirements.txt (line 3))
- Downloading https://files.pythonhosted.org/packages/34/a6/49e2849a0e5464e1b5d621f63bc8453066f0f367bb3b744a33fca0bc1ddd/flake8-3.6.0-py2.py3-none-any.whl (68kB)
- Collecting Flask==1.0.2 (from -r requirements.txt (line 4))
- Downloading https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl (91kB)
- Collecting Flask-RESTful==0.3.6 (from -r requirements.txt (line 5))
- Downloading https://files.pythonhosted.org/packages/47/08/89cf8594735392cd71752f7cf159fa63765eac3e11b0da4324cdfeaea137/Flask_RESTful-0.3.6-py2.py3-none-any.whl
- Collecting Flask-SQLAlchemy==2.3.2 (from -r requirements.txt (line 6))
- Downloading https://files.pythonhosted.org/packages/a1/44/294fb7f6bf49cc7224417cd0637018db9fee0729b4fe166e43e2bbb1f1c8/Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl
- Collecting itsdangerous==1.1.0 (from -r requirements.txt (line 7))
- Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
- Collecting Jinja2==2.10 (from -r requirements.txt (line 8))
- Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB)
- Collecting MarkupSafe==1.0 (from -r requirements.txt (line 9))
- Downloading https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz
- Collecting marshmallow==2.16.1 (from -r requirements.txt (line 10))
- Downloading https://files.pythonhosted.org/packages/a1/9f/8c9011dd85afb2aa852602bd1187081072e00cae1fc153a6afd47494e4b8/marshmallow-2.16.1-py2.py3-none-any.whl (49kB)
- Collecting mccabe==0.6.1 (from -r requirements.txt (line 11))
- Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
- Collecting psycopg2==2.7.5 (from -r requirements.txt (line 12))
- Downloading https://files.pythonhosted.org/packages/37/88/40748331bf75d068a07bbea7dc658faceb0ce2e9fffdde550e76d5475e59/psycopg2-2.7.5-cp37-cp37m-manylinux1_x86_64.whl (2.7MB)
- Collecting pycodestyle==2.4.0 (from -r requirements.txt (line 13))
- Downloading https://files.pythonhosted.org/packages/e5/c6/ce130213489969aa58610042dff1d908c25c731c9575af6935c2dfad03aa/pycodestyle-2.4.0-py2.py3-none-any.whl (62kB)
- Collecting pyflakes==2.0.0 (from -r requirements.txt (line 14))
- Downloading https://files.pythonhosted.org/packages/44/98/af7a72c9a543b1487d92813c648cb9b9adfbc96faef5455d60f4439aa99b/pyflakes-2.0.0-py2.py3-none-any.whl (53kB)
- Collecting pytz==2018.5 (from -r requirements.txt (line 15))
- Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB)
- Collecting six==1.11.0 (from -r requirements.txt (line 16))
- Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
- Collecting SQLAlchemy==1.2.12 (from -r requirements.txt (line 17))
- Downloading https://files.pythonhosted.org/packages/25/c9/b0552098cee325425a61efdf380c51b5c721e459081c85bbb860f501c091/SQLAlchemy-1.2.12.tar.gz (5.6MB)
- Collecting webargs==4.1.0 (from -r requirements.txt (line 18))
- Downloading https://files.pythonhosted.org/packages/28/fe/486521c5df75657c0e6f2d7f2c79726c1e5282623ba3dee543c4b1ec74a6/webargs-4.1.0-py2.py3-none-any.whl
- Collecting Werkzeug==0.14.1 (from -r requirements.txt (line 19))
- Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
- Requirement already satisfied: setuptools>=30 in /usr/local/lib/python3.7/site-packages (from flake8==3.6.0->-r requirements.txt (line 3)) (40.8.0)
- Building wheels for collected packages: MarkupSafe, SQLAlchemy
- Building wheel for MarkupSafe (setup.py): started
- Building wheel for MarkupSafe (setup.py): finished with status 'done'
- Stored in directory: /root/.cache/pip/wheels/33/56/20/ebe49a5c612fffe1c5a632146b16596f9e64676768661e4e46
- Building wheel for SQLAlchemy (setup.py): started
- Building wheel for SQLAlchemy (setup.py): finished with status 'done'
- Stored in directory: /root/.cache/pip/wheels/ed/bd/2e/d3874a6e97b8cc71e7e177c8d065ead30f67f380c4d9bbadaa
- Successfully built MarkupSafe SQLAlchemy
- Installing collected packages: aniso8601, Click, pycodestyle, mccabe, pyflakes, flake8, Werkzeug, itsdangerous, MarkupSafe, Jinja2, Flask, pytz, six, Flask-RESTful, SQLAlchemy, Flask-SQLAlchemy, marshmallow, psycopg2, webargs
- Successfully installed Click-7.0 Flask-1.0.2 Flask-RESTful-0.3.6 Flask-SQLAlchemy-2.3.2 Jinja2-2.10 MarkupSafe-1.0 SQLAlchemy-1.2.12 Werkzeug-0.14.1 aniso8601-3.0.2 flake8-3.6.0 itsdangerous-1.1.0 marshmallow-2.16.1 mccabe-0.6.1 psycopg2-2.7.5 pycodestyle-2.4.0 pyflakes-2.0.0 pytz-2018.5 six-1.11.0 webargs-4.1.0
- Removing intermediate container de9a759d4e23
- ---> 7d95308ca0f2
- Step 9/11 : COPY . /app
- ---> cb90834f84f1
- Step 10/11 : ENTRYPOINT ["python"]
- ---> Running in 0ec3848cceb5
- Removing intermediate container 0ec3848cceb5
- ---> 57699337ef4b
- Step 11/11 : CMD ["app.py"]
- ---> Running in 676dd3017627
- Removing intermediate container 676dd3017627
- ---> 4bbc3df57ff8
- Successfully built 4bbc3df57ff8
- Successfully tagged db-cli:1.0.0
- Building emailer
- Step 1/6 : FROM node:carbon
- carbon: Pulling from library/node
- 741437d97401: Already exists
- 34d8874714d7: Already exists
- 0a108aa26679: Already exists
- 7f0334c36886: Already exists
- 65c95cb8b3be: Already exists
- a36b708560f8: Pull complete
- 81a7e69fab67: Pull complete
- a88b577be604: Pull complete
- Digest: sha256:a8a9d8eaab36bbd188612375a54fb7f57418458812dabd50769ddd3598bc24fc
- Status: Downloaded newer image for node:carbon
- ---> 4f01e5319662
- Step 2/6 : COPY ./package.json /app/package.json
- ---> 295909bc0135
- Step 3/6 : WORKDIR /app
- ---> Running in 790efe83752d
- Removing intermediate container 790efe83752d
- ---> 61eea4856152
- Step 4/6 : RUN yarn
- ---> Running in b7fccceed2a5
- yarn install v1.12.3
- info No lockfile found.
- [1/4] Resolving packages...
- warning eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
- [2/4] Fetching packages...
- info fsevents@1.2.7: The platform "linux" is incompatible with this module.
- info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
- [3/4] Linking dependencies...
- [4/4] Building fresh packages...
- success Saved lockfile.
- Done in 71.06s.
- Removing intermediate container b7fccceed2a5
- ---> 0c6416d9afba
- Step 5/6 : COPY . /app
- ---> b6edcf4d2058
- Step 6/6 : CMD ["yarn", "start:dev"]
- ---> Running in 9be98bccc766
- Removing intermediate container 9be98bccc766
- ---> dd31e4836d97
- Successfully built dd31e4836d97
- Successfully tagged emailer:1.0.0
- Building api
- Step 1/6 : FROM node:carbon
- ---> 4f01e5319662
- Step 2/6 : COPY ./package.json /app/package.json
- ---> 089dd4e644d9
- Step 3/6 : WORKDIR /app
- ---> Running in 444a9fcc2bf6
- Removing intermediate container 444a9fcc2bf6
- ---> af1e690d9ee9
- Step 4/6 : RUN yarn
- ---> Running in a3ec7ba1a914
- yarn install v1.12.3
- info No lockfile found.
- [1/4] Resolving packages...
- warning eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
- [2/4] Fetching packages...
- info fsevents@1.2.7: The platform "linux" is incompatible with this module.
- info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
- [3/4] Linking dependencies...
- [4/4] Building fresh packages...
- success Saved lockfile.
- Done in 62.18s.
- Removing intermediate container a3ec7ba1a914
- ---> 2f5c557062e9
- Step 5/6 : COPY . /app
- ---> 429d712f74be
- Step 6/6 : CMD ["yarn", "start:dev"]
- ---> Running in 3d64048f49df
- Removing intermediate container 3d64048f49df
- ---> 4ab0927e574b
- Successfully built 4ab0927e574b
- Successfully tagged api:1.0.0
- Building admin
- Step 1/6 : FROM node:carbon
- ---> 4f01e5319662
- Step 2/6 : COPY ./package.json /app/package.json
- ---> 822966c5eda3
- Step 3/6 : WORKDIR /app
- ---> Running in 9197cc7b29db
- Removing intermediate container 9197cc7b29db
- ---> 6adcde619e0f
- Step 4/6 : RUN yarn
- ---> Running in 7a06404e504e
- yarn install v1.12.3
- info No lockfile found.
- [1/4] Resolving packages...
- warning jest > jest-cli > prompts > kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
- warning eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
- [2/4] Fetching packages...
- info fsevents@1.2.7: The platform "linux" is incompatible with this module.
- info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
- [3/4] Linking dependencies...
- warning " > eslint-config-react-app@3.0.7" has incorrect peer dependency "babel-eslint@9.x".
- warning " > react-dates@18.5.0" has unmet peer dependency "react-with-direction@^1.3.0".
- warning " > redux-saga-routines@3.1.3" has unmet peer dependency "@babel/runtime@>=7.0.0".
- [4/4] Building fresh packages...
- success Saved lockfile.
- Done in 172.56s.
- Removing intermediate container 7a06404e504e
- ---> d09097b33609
- Step 5/6 : COPY . /app
- ---> 05a206f9c2c7
- Step 6/6 : CMD ["yarn", "start"]
- ---> Running in 1eebfe6a913e
- Removing intermediate container 1eebfe6a913e
- ---> 29b96537741e
- Successfully built 29b96537741e
- Successfully tagged admin:1.0.0
- Building frontend
- Step 1/6 : FROM node:carbon
- ---> 4f01e5319662
- Step 2/6 : COPY ./package.json /app/package.json
- ---> Using cache
- ---> 822966c5eda3
- Step 3/6 : WORKDIR /app
- ---> Using cache
- ---> 6adcde619e0f
- Step 4/6 : RUN yarn
- ---> Using cache
- ---> d09097b33609
- Step 5/6 : COPY . /app
- ---> 16c96563bd34
- Step 6/6 : CMD ["yarn", "start"]
- ---> Running in 7f40691db680
- Removing intermediate container 7f40691db680
- ---> d2d1524564bd
- Successfully built d2d1524564bd
- Successfully tagged frontend:1.0.0
- Creating dockercompose_db_1 ... done
- Creating dockercompose_db-cli_1 ... done
- Creating dockercompose_emailer_1 ... done
- Creating dockercompose_api_1 ... done
- Creating dockercompose_frontend_1 ... done
- Creating dockercompose_admin_1 ... done
- Attaching to dockercompose_db_1, dockercompose_db-cli_1, dockercompose_emailer_1, dockercompose_api_1, dockercompose_frontend_1, dockercompose_admin_1
- 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 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 | creating template1 database in /var/lib/postgresql/data/base/1 ... ok
- db_1 | initializing pg_authid ... ok
- db_1 | setting password ... ok
- db_1 | initializing dependencies ... ok
- db_1 | creating system views ... ok
- db_1 | loading system objects' descriptions ... ok
- db_1 | creating collations ... ok
- db_1 | creating conversions ... ok
- db_1 | creating dictionaries ... ok
- emailer_1 | yarn run v1.12.3
- emailer_1 | $ nodemon ./bin/www
- db_1 | setting privileges on built-in objects ... ok
- emailer_1 | /bin/sh: 1: nodemon: not found
- db_1 | creating information schema ... ok
- emailer_1 | error Command failed with exit code 127.
- emailer_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- api_1 | yarn run v1.12.3
- api_1 | $ nodemon ./bin/www
- api_1 | /bin/sh: 1: nodemon: not found
- api_1 | error Command failed with exit code 127.
- api_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- db_1 | loading PL/pgSQL server-side language ... ok
- db_1 | vacuuming database template1 ... ok
- db_1 | copying template1 to template0 ... ok
- db_1 | copying template1 to postgres ... ok
- dockercompose_api_1 exited with code 1
- dockercompose_emailer_1 exited with code 1
- frontend_1 | yarn run v1.12.3
- admin_1 | yarn run v1.12.3
- frontend_1 | $ REACT_APP_ENV=development node scripts/start.js
- admin_1 | $ REACT_APP_ENV=development node scripts/start.js
- frontend_1 | module.js:550
- frontend_1 | throw err;
- frontend_1 | ^
- frontend_1 |
- frontend_1 | Error: Cannot find module 'chalk'
- frontend_1 | at Function.Module._resolveFilename (module.js:548:15)
- frontend_1 | at Function.Module._load (module.js:475:25)
- frontend_1 | at Module.require (module.js:597:17)
- frontend_1 | at require (internal/module.js:11:18)
- frontend_1 | at Object.<anonymous> (/app/scripts/start.js:19:15)
- frontend_1 | at Module._compile (module.js:653:30)
- frontend_1 | at Object.Module._extensions..js (module.js:664:10)
- frontend_1 | at Module.load (module.js:566:32)
- frontend_1 | at tryModuleLoad (module.js:506:12)
- frontend_1 | at Function.Module._load (module.js:498:3)
- frontend_1 | error Command failed with exit code 1.
- admin_1 | module.js:550
- admin_1 | throw err;
- admin_1 | ^
- admin_1 |
- admin_1 | Error: Cannot find module 'chalk'
- admin_1 | at Function.Module._resolveFilename (module.js:548:15)
- admin_1 | at Function.Module._load (module.js:475:25)
- admin_1 | at Module.require (module.js:597:17)
- admin_1 | at require (internal/module.js:11:18)
- admin_1 | at Object.<anonymous> (/app/scripts/start.js:19:15)
- admin_1 | at Module._compile (module.js:653:30)
- admin_1 | at Object.Module._extensions..js (module.js:664:10)
- admin_1 | at Module.load (module.js:566:32)
- admin_1 | at tryModuleLoad (module.js:506:12)
- admin_1 | at Function.Module._load (module.js:498:3)
- admin_1 | error Command failed with exit code 1.
- frontend_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- admin_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- dockercompose_frontend_1 exited with code 1
- dockercompose_admin_1 exited with code 1
- db-cli_1 | /usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
- db-cli_1 | 'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
- db-cli_1 | /usr/local/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
- db-cli_1 | """)
- db-cli_1 | Traceback (most recent call last):
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
- db-cli_1 | return fn()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 400, in connect
- db-cli_1 | return _ConnectionFairy._checkout(self)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 788, in _checkout
- db-cli_1 | fairy = _ConnectionRecord.checkout(pool)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 529, in checkout
- db-cli_1 | rec = pool._do_get()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1193, in _do_get
- db-cli_1 | self._dec_overflow()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
- db-cli_1 | compat.reraise(exc_type, exc_value, exc_tb)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
- db-cli_1 | raise value
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1190, in _do_get
- db-cli_1 | return self._create_connection()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 347, in _create_connection
- db-cli_1 | return _ConnectionRecord(self)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 474, in __init__
- db-cli_1 | self.__connect(first_connect_check=True)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 671, in __connect
- db-cli_1 | connection = pool._invoke_creator(self)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 106, in connect
- db-cli_1 | return dialect.connect(*cargs, **cparams)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 412, in connect
- db-cli_1 | return self.dbapi.connect(*cargs, **cparams)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
- db-cli_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- db-cli_1 | psycopg2.OperationalError: could not connect to server: Connection refused
- db-cli_1 | Is the server running on host "db" (172.18.0.2) and accepting
- db-cli_1 | TCP/IP connections on port 5432?
- db-cli_1 |
- db-cli_1 |
- db-cli_1 | The above exception was the direct cause of the following exception:
- db-cli_1 |
- db-cli_1 | Traceback (most recent call last):
- db-cli_1 | File "app.py", line 41, in <module>
- db-cli_1 | db.create_all()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 963, in create_all
- db-cli_1 | self._execute_for_all_tables(app, bind, 'create_all')
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 955, in _execute_for_all_tables
- db-cli_1 | op(bind=self.get_engine(app, bind), **extra)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4005, in create_all
- db-cli_1 | tables=tables)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1939, in _run_visitor
- db-cli_1 | with self._optional_conn_ctx_manager(connection) as conn:
- db-cli_1 | File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
- db-cli_1 | return next(self.gen)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1932, in _optional_conn_ctx_manager
- db-cli_1 | with self.contextual_connect() as conn:
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2123, in contextual_connect
- db-cli_1 | self._wrap_pool_connect(self.pool.connect, None),
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2162, in _wrap_pool_connect
- db-cli_1 | e, dialect, self)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1476, in _handle_dbapi_exception_noconnection
- db-cli_1 | exc_info
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
- db-cli_1 | reraise(type(exception), exception, tb=exc_tb, cause=cause)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 248, in reraise
- db-cli_1 | raise value.with_traceback(tb)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
- db-cli_1 | return fn()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 400, in connect
- db-cli_1 | return _ConnectionFairy._checkout(self)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 788, in _checkout
- db-cli_1 | fairy = _ConnectionRecord.checkout(pool)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 529, in checkout
- db-cli_1 | rec = pool._do_get()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1193, in _do_get
- db-cli_1 | self._dec_overflow()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
- db-cli_1 | compat.reraise(exc_type, exc_value, exc_tb)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
- db-cli_1 | raise value
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1190, in _do_get
- db-cli_1 | return self._create_connection()
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 347, in _create_connection
- db-cli_1 | return _ConnectionRecord(self)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 474, in __init__
- db-cli_1 | self.__connect(first_connect_check=True)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 671, in __connect
- db-cli_1 | connection = pool._invoke_creator(self)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 106, in connect
- db-cli_1 | return dialect.connect(*cargs, **cparams)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 412, in connect
- db-cli_1 | return self.dbapi.connect(*cargs, **cparams)
- db-cli_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
- db-cli_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- db-cli_1 | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
- db-cli_1 | Is the server running on host "db" (172.18.0.2) and accepting
- db-cli_1 | TCP/IP connections on port 5432?
- db-cli_1 | (Background on this error at: http://sqlalche.me/e/e3q8)
- dockercompose_db-cli_1 exited with code 1
- db_1 | syncing data to disk ... ok
- db_1 |
- 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 |
- db_1 | Success. You can now start the database server using:
- db_1 |
- db_1 | postgres -D /var/lib/postgresql/data
- db_1 | or
- db_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
- db_1 |
- db_1 | waiting for server to start....LOG: database system was shut down at 2019-02-15 09:31:43 UTC
- db_1 | FATAL: the database system is starting up
- 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
- db_1 | done
- db_1 | server started
- db_1 | CREATE DATABASE
- 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 | LOG: autovacuum launcher shutting down
- db_1 | LOG: shutting down
- db_1 | waiting for server to shut down....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 | LOG: database system was shut down at 2019-02-15 09:32:41 UTC
- db_1 | LOG: MultiXact member wraparound protections are now enabled
- db_1 | LOG: database system is ready to accept connections
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement