Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mikhail@LAPTOP-LARGCP2J MINGW64 ~/Documents/_GitHub_Clones/demo (master)
- $ ./docker-local.sh
- Building db-cli
- Step 1/11 : FROM python:3.7
- ---> ac069ebfe1e1
- Step 2/11 : LABEL author="levymedina3@gmail.com"
- ---> Using cache
- ---> c4cfc7a06298
- Step 3/11 : COPY ./requirements.txt /app/requirements.txt
- ---> Using cache
- ---> d558310608bf
- Step 4/11 : WORKDIR /app
- ---> Using cache
- ---> 3802e3b06235
- Step 5/11 : ENV FLASK_RUN_PORT=5001
- ---> Using cache
- ---> f5ad52cd23cb
- Step 6/11 : ENV FLASK_APP=app.py
- ---> Using cache
- ---> 50dc431c48fb
- Step 7/11 : ENV FLASK_ENV=development
- ---> Using cache
- ---> 293eab3845e5
- Step 8/11 : RUN pip install -r requirements.txt
- ---> Using cache
- ---> 7d95308ca0f2
- Step 9/11 : COPY . /app
- ---> Using cache
- ---> cb90834f84f1
- Step 10/11 : ENTRYPOINT ["python"]
- ---> Using cache
- ---> 57699337ef4b
- Step 11/11 : CMD ["app.py"]
- ---> Using cache
- ---> 4bbc3df57ff8
- Successfully built 4bbc3df57ff8
- Successfully tagged db-cli:1.0.0
- Building emailer
- Step 1/6 : FROM node:carbon
- ---> 4f01e5319662
- Step 2/6 : COPY ./package.json /app/package.json
- ---> febcaf396e85
- Step 3/6 : WORKDIR /app
- ---> Running in 9d036f04b956
- Removing intermediate container 9d036f04b956
- ---> 8e1f52316735
- Step 4/6 : RUN yarn
- ---> Running in b3aa31286045
- yarn install v1.12.3
- info No lockfile found.
- [1/4] Resolving packages...
- [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 70.34s.
- Removing intermediate container b3aa31286045
- ---> 2bc80a38b01c
- Step 5/6 : COPY . /app
- ---> fc8bd50631d3
- Step 6/6 : CMD ["yarn", "start:dev"]
- ---> Running in dbf42e72bde1
- Removing intermediate container dbf42e72bde1
- ---> 26532180f16e
- Successfully built 26532180f16e
- Successfully tagged emailer:1.0.0
- Building api
- Step 1/6 : FROM node:carbon
- ---> 4f01e5319662
- Step 2/6 : COPY ./package.json /app/package.json
- ---> d528583e967d
- Step 3/6 : WORKDIR /app
- ---> Running in aa9e1baa8e13
- Removing intermediate container aa9e1baa8e13
- ---> 9a0c0b1adda3
- Step 4/6 : RUN yarn
- ---> Running in 9eceb18d1340
- yarn install v1.12.3
- info No lockfile found.
- [1/4] Resolving packages...
- [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 68.73s.
- Removing intermediate container 9eceb18d1340
- ---> 7d66e2421236
- Step 5/6 : COPY . /app
- ---> 62381ed21bad
- Step 6/6 : CMD ["yarn", "start:dev"]
- ---> Running in b01f00ff43e5
- Removing intermediate container b01f00ff43e5
- ---> 9053d364a9f9
- Successfully built 9053d364a9f9
- Successfully tagged api:1.0.0
- Building admin
- Step 1/6 : FROM node:carbon
- ---> 4f01e5319662
- Step 2/6 : COPY ./package.json /app/package.json
- ---> 079e9ec54994
- Step 3/6 : WORKDIR /app
- ---> Running in d28469988bb4
- Removing intermediate container d28469988bb4
- ---> 6a62c352fd52
- Step 4/6 : RUN yarn
- ---> Running in 5de4d9a860ba
- 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).
- [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 190.35s.
- Removing intermediate container 5de4d9a860ba
- ---> 73fac96203e5
- Step 5/6 : COPY . /app
- ---> c8a0a347ac73
- Step 6/6 : CMD ["yarn", "start"]
- ---> Running in 52cdec5a2585
- Removing intermediate container 52cdec5a2585
- ---> c65905b093a3
- Successfully built c65905b093a3
- 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
- ---> 079e9ec54994
- Step 3/6 : WORKDIR /app
- ---> Using cache
- ---> 6a62c352fd52
- Step 4/6 : RUN yarn
- ---> Using cache
- ---> 73fac96203e5
- Step 5/6 : COPY . /app
- ---> d072bcd2ca27
- Step 6/6 : CMD ["yarn", "start"]
- ---> Running in ca160422c177
- Removing intermediate container ca160422c177
- ---> 081e44e49a5f
- Successfully built 081e44e49a5f
- Successfully tagged frontend:1.0.0
- Starting dockercompose_db_1 ... done
- Recreating dockercompose_db-cli_1 ... done
- Recreating dockercompose_emailer_1 ... done
- Recreating dockercompose_api_1 ... done
- Recreating dockercompose_frontend_1 ... done
- Recreating dockercompose_admin_1 ... done
- Attaching to dockercompose_db_1, dockercompose_db-cli_1, dockercompose_emailer_1, dockercompose_api_1, dockercompose_admin_1, dockercompose_frontend_1
- emailer_1 | yarn run v1.12.3
- api_1 | yarn run v1.12.3
- api_1 | $ nodemon ./bin/www
- emailer_1 | $ nodemon ./bin/www
- admin_1 | yarn run v1.12.3
- admin_1 | $ REACT_APP_ENV=development node scripts/start.js
- frontend_1 | yarn run v1.12.3
- api_1 | /bin/sh: 1: nodemon: not found
- 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)
- emailer_1 | /bin/sh: 1: nodemon: not found
- frontend_1 | $ REACT_APP_ENV=development node scripts/start.js
- admin_1 | error Command failed with exit code 1.
- api_1 | error Command failed with exit code 127.
- 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)
- emailer_1 | error Command failed with exit code 127.
- api_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.
- emailer_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- frontend_1 | error Command failed with exit code 1.
- frontend_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- dockercompose_api_1 exited with code 1
- dockercompose_emailer_1 exited with code 1
- dockercompose_admin_1 exited with code 1
- dockercompose_frontend_1 exited with code 1
- db_1 | LOG: database system was interrupted; last known up at 2019-02-15 11:57:57 UTC
- 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: FATAL: the database system is starting up
- 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) FATAL: the database system is starting up
- db-cli_1 | (Background on this error at: http://sqlalche.me/e/e3q8)
- dockercompose_db-cli_1 exited with code 1
- db_1 | FATAL: the database system is starting up
- db_1 | LOG: database system was not properly shut down; automatic recovery in progress
- db_1 | LOG: record with zero length at 0/16F1E58
- db_1 | LOG: redo is not required
- 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