Advertisement
Fengren

demo log 3

Feb 16th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.20 KB | None | 0 0
  1. Mikhail@LAPTOP-LARGCP2J MINGW64 ~/Documents/_GitHub_Clones/demo (master)
  2. $ ./docker-local.sh
  3. Building db-cli
  4. Step 1/11 : FROM python:3.7
  5.  ---> ac069ebfe1e1
  6. Step 2/11 : LABEL author="levymedina3@gmail.com"
  7.  ---> Using cache
  8.  ---> c4cfc7a06298
  9. Step 3/11 : COPY ./requirements.txt /app/requirements.txt
  10.  ---> Using cache
  11.  ---> d558310608bf
  12. Step 4/11 : WORKDIR /app
  13.  ---> Using cache
  14.  ---> 3802e3b06235
  15. Step 5/11 : ENV FLASK_RUN_PORT=5001
  16.  ---> Using cache
  17.  ---> f5ad52cd23cb
  18. Step 6/11 : ENV FLASK_APP=app.py
  19.  ---> Using cache
  20.  ---> 50dc431c48fb
  21. Step 7/11 : ENV FLASK_ENV=development
  22.  ---> Using cache
  23.  ---> 293eab3845e5
  24. Step 8/11 : RUN pip install -r requirements.txt
  25.  ---> Using cache
  26.  ---> 7d95308ca0f2
  27. Step 9/11 : COPY . /app
  28.  ---> Using cache
  29.  ---> cb90834f84f1
  30. Step 10/11 : ENTRYPOINT ["python"]
  31.  ---> Using cache
  32.  ---> 57699337ef4b
  33. Step 11/11 : CMD ["app.py"]
  34.  ---> Using cache
  35.  ---> 4bbc3df57ff8
  36. Successfully built 4bbc3df57ff8
  37. Successfully tagged db-cli:1.0.0
  38. Building emailer
  39. Step 1/6 : FROM node:carbon
  40.  ---> 4f01e5319662
  41. Step 2/6 : COPY ./package.json /app/package.json
  42.  ---> febcaf396e85
  43. Step 3/6 : WORKDIR /app
  44.  ---> Running in 9d036f04b956
  45. Removing intermediate container 9d036f04b956
  46.  ---> 8e1f52316735
  47. Step 4/6 : RUN yarn
  48.  ---> Running in b3aa31286045
  49. yarn install v1.12.3
  50. info No lockfile found.
  51. [1/4] Resolving packages...
  52. [2/4] Fetching packages...
  53. info fsevents@1.2.7: The platform "linux" is incompatible with this module.
  54. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
  55. [3/4] Linking dependencies...
  56. [4/4] Building fresh packages...
  57. success Saved lockfile.
  58. Done in 70.34s.
  59. Removing intermediate container b3aa31286045
  60.  ---> 2bc80a38b01c
  61. Step 5/6 : COPY . /app
  62.  ---> fc8bd50631d3
  63. Step 6/6 : CMD ["yarn", "start:dev"]
  64.  ---> Running in dbf42e72bde1
  65. Removing intermediate container dbf42e72bde1
  66.  ---> 26532180f16e
  67. Successfully built 26532180f16e
  68. Successfully tagged emailer:1.0.0
  69. Building api
  70. Step 1/6 : FROM node:carbon
  71.  ---> 4f01e5319662
  72. Step 2/6 : COPY ./package.json /app/package.json
  73.  ---> d528583e967d
  74. Step 3/6 : WORKDIR /app
  75.  ---> Running in aa9e1baa8e13
  76. Removing intermediate container aa9e1baa8e13
  77.  ---> 9a0c0b1adda3
  78. Step 4/6 : RUN yarn
  79.  ---> Running in 9eceb18d1340
  80. yarn install v1.12.3
  81. info No lockfile found.
  82. [1/4] Resolving packages...
  83. [2/4] Fetching packages...
  84. info fsevents@1.2.7: The platform "linux" is incompatible with this module.
  85. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
  86. [3/4] Linking dependencies...
  87. [4/4] Building fresh packages...
  88. success Saved lockfile.
  89. Done in 68.73s.
  90. Removing intermediate container 9eceb18d1340
  91.  ---> 7d66e2421236
  92. Step 5/6 : COPY . /app
  93.  ---> 62381ed21bad
  94. Step 6/6 : CMD ["yarn", "start:dev"]
  95.  ---> Running in b01f00ff43e5
  96. Removing intermediate container b01f00ff43e5
  97.  ---> 9053d364a9f9
  98. Successfully built 9053d364a9f9
  99. Successfully tagged api:1.0.0
  100. Building admin
  101. Step 1/6 : FROM node:carbon
  102.  ---> 4f01e5319662
  103. Step 2/6 : COPY ./package.json /app/package.json
  104.  ---> 079e9ec54994
  105. Step 3/6 : WORKDIR /app
  106.  ---> Running in d28469988bb4
  107. Removing intermediate container d28469988bb4
  108.  ---> 6a62c352fd52
  109. Step 4/6 : RUN yarn
  110.  ---> Running in 5de4d9a860ba
  111. yarn install v1.12.3
  112. info No lockfile found.
  113. [1/4] Resolving packages...
  114. 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).
  115. [2/4] Fetching packages...
  116. info fsevents@1.2.7: The platform "linux" is incompatible with this module.
  117. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
  118. [3/4] Linking dependencies...
  119. warning " > eslint-config-react-app@3.0.7" has incorrect peer dependency "babel-eslint@9.x".
  120. warning " > react-dates@18.5.0" has unmet peer dependency "react-with-direction@^1.3.0".
  121. warning " > redux-saga-routines@3.1.3" has unmet peer dependency "@babel/runtime@>=7.0.0".
  122. [4/4] Building fresh packages...
  123. success Saved lockfile.
  124. Done in 190.35s.
  125. Removing intermediate container 5de4d9a860ba
  126.  ---> 73fac96203e5
  127. Step 5/6 : COPY . /app
  128.  ---> c8a0a347ac73
  129. Step 6/6 : CMD ["yarn", "start"]
  130.  ---> Running in 52cdec5a2585
  131. Removing intermediate container 52cdec5a2585
  132.  ---> c65905b093a3
  133. Successfully built c65905b093a3
  134. Successfully tagged admin:1.0.0
  135. Building frontend
  136. Step 1/6 : FROM node:carbon
  137.  ---> 4f01e5319662
  138. Step 2/6 : COPY ./package.json /app/package.json
  139.  ---> Using cache
  140.  ---> 079e9ec54994
  141. Step 3/6 : WORKDIR /app
  142.  ---> Using cache
  143.  ---> 6a62c352fd52
  144. Step 4/6 : RUN yarn
  145.  ---> Using cache
  146.  ---> 73fac96203e5
  147. Step 5/6 : COPY . /app
  148.  ---> d072bcd2ca27
  149. Step 6/6 : CMD ["yarn", "start"]
  150.  ---> Running in ca160422c177
  151. Removing intermediate container ca160422c177
  152.  ---> 081e44e49a5f
  153. Successfully built 081e44e49a5f
  154. Successfully tagged frontend:1.0.0
  155. Starting dockercompose_db_1 ... done
  156. Recreating dockercompose_db-cli_1 ... done
  157. Recreating dockercompose_emailer_1 ... done
  158. Recreating dockercompose_api_1     ... done
  159. Recreating dockercompose_frontend_1 ... done
  160. Recreating dockercompose_admin_1    ... done
  161. Attaching to dockercompose_db_1, dockercompose_db-cli_1, dockercompose_emailer_1, dockercompose_api_1, dockercompose_admin_1, dockercompose_frontend_1
  162. emailer_1   | yarn run v1.12.3
  163. api_1       | yarn run v1.12.3
  164. api_1       | $ nodemon ./bin/www
  165. emailer_1   | $ nodemon ./bin/www
  166. admin_1     | yarn run v1.12.3
  167. admin_1     | $ REACT_APP_ENV=development node scripts/start.js
  168. frontend_1  | yarn run v1.12.3
  169. api_1       | /bin/sh: 1: nodemon: not found
  170. admin_1     | module.js:550
  171. admin_1     |     throw err;
  172. admin_1     |     ^
  173. admin_1     |
  174. admin_1     | Error: Cannot find module 'chalk'
  175. admin_1     |     at Function.Module._resolveFilename (module.js:548:15)
  176. admin_1     |     at Function.Module._load (module.js:475:25)
  177. admin_1     |     at Module.require (module.js:597:17)
  178. admin_1     |     at require (internal/module.js:11:18)
  179. admin_1     |     at Object.<anonymous> (/app/scripts/start.js:19:15)
  180. admin_1     |     at Module._compile (module.js:653:30)
  181. admin_1     |     at Object.Module._extensions..js (module.js:664:10)
  182. admin_1     |     at Module.load (module.js:566:32)
  183. admin_1     |     at tryModuleLoad (module.js:506:12)
  184. admin_1     |     at Function.Module._load (module.js:498:3)
  185. emailer_1   | /bin/sh: 1: nodemon: not found
  186. frontend_1  | $ REACT_APP_ENV=development node scripts/start.js
  187. admin_1     | error Command failed with exit code 1.
  188. api_1       | error Command failed with exit code 127.
  189. frontend_1  | module.js:550
  190. frontend_1  |     throw err;
  191. frontend_1  |     ^
  192. frontend_1  |
  193. frontend_1  | Error: Cannot find module 'chalk'
  194. frontend_1  |     at Function.Module._resolveFilename (module.js:548:15)
  195. frontend_1  |     at Function.Module._load (module.js:475:25)
  196. frontend_1  |     at Module.require (module.js:597:17)
  197. frontend_1  |     at require (internal/module.js:11:18)
  198. frontend_1  |     at Object.<anonymous> (/app/scripts/start.js:19:15)
  199. frontend_1  |     at Module._compile (module.js:653:30)
  200. frontend_1  |     at Object.Module._extensions..js (module.js:664:10)
  201. frontend_1  |     at Module.load (module.js:566:32)
  202. frontend_1  |     at tryModuleLoad (module.js:506:12)
  203. frontend_1  |     at Function.Module._load (module.js:498:3)
  204. emailer_1   | error Command failed with exit code 127.
  205. api_1       | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  206. admin_1     | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  207. emailer_1   | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  208. frontend_1  | error Command failed with exit code 1.
  209. frontend_1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  210. dockercompose_api_1 exited with code 1
  211. dockercompose_emailer_1 exited with code 1
  212. dockercompose_admin_1 exited with code 1
  213. dockercompose_frontend_1 exited with code 1
  214. db_1        | LOG:  database system was interrupted; last known up at 2019-02-15 11:57:57 UTC
  215. 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.
  216. db-cli_1    |   'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
  217. 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>.
  218. db-cli_1    |   """)
  219. db-cli_1    | Traceback (most recent call last):
  220. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
  221. db-cli_1    |     return fn()
  222. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 400, in connect
  223. db-cli_1    |     return _ConnectionFairy._checkout(self)
  224. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 788, in _checkout
  225. db-cli_1    |     fairy = _ConnectionRecord.checkout(pool)
  226. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 529, in checkout
  227. db-cli_1    |     rec = pool._do_get()
  228. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1193, in _do_get
  229. db-cli_1    |     self._dec_overflow()
  230. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
  231. db-cli_1    |     compat.reraise(exc_type, exc_value, exc_tb)
  232. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
  233. db-cli_1    |     raise value
  234. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1190, in _do_get
  235. db-cli_1    |     return self._create_connection()
  236. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 347, in _create_connection
  237. db-cli_1    |     return _ConnectionRecord(self)
  238. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 474, in __init__
  239. db-cli_1    |     self.__connect(first_connect_check=True)
  240. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 671, in __connect
  241. db-cli_1    |     connection = pool._invoke_creator(self)
  242. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 106, in connect
  243. db-cli_1    |     return dialect.connect(*cargs, **cparams)
  244. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 412, in connect
  245. db-cli_1    |     return self.dbapi.connect(*cargs, **cparams)
  246. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  247. db-cli_1    |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  248. db-cli_1    | psycopg2.OperationalError: FATAL:  the database system is starting up
  249. db-cli_1    |
  250. db-cli_1    |
  251. db-cli_1    | The above exception was the direct cause of the following exception:
  252. db-cli_1    |
  253. db-cli_1    | Traceback (most recent call last):
  254. db-cli_1    |   File "app.py", line 41, in <module>
  255. db-cli_1    |     db.create_all()
  256. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 963, in create_all
  257. db-cli_1    |     self._execute_for_all_tables(app, bind, 'create_all')
  258. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 955, in _execute_for_all_tables
  259. db-cli_1    |     op(bind=self.get_engine(app, bind), **extra)
  260. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4005, in create_all
  261. db-cli_1    |     tables=tables)
  262. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1939, in _run_visitor
  263. db-cli_1    |     with self._optional_conn_ctx_manager(connection) as conn:
  264. db-cli_1    |   File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
  265. db-cli_1    |     return next(self.gen)
  266. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1932, in _optional_conn_ctx_manager
  267. db-cli_1    |     with self.contextual_connect() as conn:
  268. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2123, in contextual_connect
  269. db-cli_1    |     self._wrap_pool_connect(self.pool.connect, None),
  270. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2162, in _wrap_pool_connect
  271. db-cli_1    |     e, dialect, self)
  272. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1476, in _handle_dbapi_exception_noconnection
  273. db-cli_1    |     exc_info
  274. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
  275. db-cli_1    |     reraise(type(exception), exception, tb=exc_tb, cause=cause)
  276. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 248, in reraise
  277. db-cli_1    |     raise value.with_traceback(tb)
  278. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
  279. db-cli_1    |     return fn()
  280. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 400, in connect
  281. db-cli_1    |     return _ConnectionFairy._checkout(self)
  282. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 788, in _checkout
  283. db-cli_1    |     fairy = _ConnectionRecord.checkout(pool)
  284. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 529, in checkout
  285. db-cli_1    |     rec = pool._do_get()
  286. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1193, in _do_get
  287. db-cli_1    |     self._dec_overflow()
  288. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
  289. db-cli_1    |     compat.reraise(exc_type, exc_value, exc_tb)
  290. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
  291. db-cli_1    |     raise value
  292. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1190, in _do_get
  293. db-cli_1    |     return self._create_connection()
  294. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 347, in _create_connection
  295. db-cli_1    |     return _ConnectionRecord(self)
  296. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 474, in __init__
  297. db-cli_1    |     self.__connect(first_connect_check=True)
  298. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 671, in __connect
  299. db-cli_1    |     connection = pool._invoke_creator(self)
  300. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 106, in connect
  301. db-cli_1    |     return dialect.connect(*cargs, **cparams)
  302. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 412, in connect
  303. db-cli_1    |     return self.dbapi.connect(*cargs, **cparams)
  304. db-cli_1    |   File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  305. db-cli_1    |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  306. db-cli_1    | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  the database system is starting up
  307. db-cli_1    |  (Background on this error at: http://sqlalche.me/e/e3q8)
  308. dockercompose_db-cli_1 exited with code 1
  309. db_1        | FATAL:  the database system is starting up
  310. db_1        | LOG:  database system was not properly shut down; automatic recovery in progress
  311. db_1        | LOG:  record with zero length at 0/16F1E58
  312. db_1        | LOG:  redo is not required
  313. db_1        | LOG:  MultiXact member wraparound protections are now enabled
  314. db_1        | LOG:  database system is ready to accept connections
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement