Advertisement
Fengren

demo log

Feb 15th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.08 KB | None | 0 0
  1. Mikhail@LAPTOP-LARGCP2J MINGW64 ~/My Documents/_GitHub_Clones/demo (master)
  2. $ ./docker-local.sh
  3. Creating network "dockercompose_default" with the default driver
  4. Creating volume "dockercompose_db-data" with default driver
  5. Pulling db (postgres:9.4)...
  6. 9.4: Pulling from library/postgres
  7. 6ae821421a7d: Pull complete
  8. 060245e5c056: Pull complete
  9. d6c2e60cfc1c: Pull complete
  10. 38d23c24a9df: Pull complete
  11. 9998068fb35e: Pull complete
  12. 2bb2385a4bb9: Pull complete
  13. 2ad14c51497d: Pull complete
  14. 77519615ed40: Pull complete
  15. 532c705012dd: Pull complete
  16. b25389b0be4f: Pull complete
  17. 05646b11ab9a: Pull complete
  18. dafb52aa677b: Pull complete
  19. e7c5de2f401c: Pull complete
  20. e84558ac1077: Pull complete
  21. Digest: sha256:df4ba773a3a3f15a4dc695b8e2302aa74629badb0b60c6bab1c2ba353d8686ba
  22. Status: Downloaded newer image for postgres:9.4
  23. Building db-cli
  24. Step 1/11 : FROM python:3.7
  25. 3.7: Pulling from library/python
  26. 741437d97401: Pull complete
  27. 34d8874714d7: Pull complete
  28. 0a108aa26679: Pull complete
  29. 7f0334c36886: Pull complete
  30. 65c95cb8b3be: Pull complete
  31. 9107d7193263: Pull complete
  32. dd6f212ec984: Pull complete
  33. 43288b101abf: Pull complete
  34. f68aede0db03: Pull complete
  35. Digest: sha256:fb877e7ea5c40de100534c6d6f515c486247bfd899cb2767f2de0e876a8127fa
  36. Status: Downloaded newer image for python:3.7
  37. ---> ac069ebfe1e1
  38. Step 2/11 : LABEL author="levymedina3@gmail.com"
  39. ---> Running in 2d3145a33e9e
  40. Removing intermediate container 2d3145a33e9e
  41. ---> c4cfc7a06298
  42. Step 3/11 : COPY ./requirements.txt /app/requirements.txt
  43. ---> d558310608bf
  44. Step 4/11 : WORKDIR /app
  45. ---> Running in 5d0e7a5b5486
  46. Removing intermediate container 5d0e7a5b5486
  47. ---> 3802e3b06235
  48. Step 5/11 : ENV FLASK_RUN_PORT=5001
  49. ---> Running in 5328352eafd0
  50. Removing intermediate container 5328352eafd0
  51. ---> f5ad52cd23cb
  52. Step 6/11 : ENV FLASK_APP=app.py
  53. ---> Running in ca82d48322c5
  54. Removing intermediate container ca82d48322c5
  55. ---> 50dc431c48fb
  56. Step 7/11 : ENV FLASK_ENV=development
  57. ---> Running in 62438bc7592e
  58. Removing intermediate container 62438bc7592e
  59. ---> 293eab3845e5
  60. Step 8/11 : RUN pip install -r requirements.txt
  61. ---> Running in de9a759d4e23
  62. Collecting aniso8601==3.0.2 (from -r requirements.txt (line 1))
  63. Downloading https://files.pythonhosted.org/packages/17/13/eecdcc638c0ea3b105ebb62ff4e76914a744ef1b6f308651dbed368c6c01/aniso8601-3.0.2-py2.py3-none-any.whl
  64. Collecting Click==7.0 (from -r requirements.txt (line 2))
  65. Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
  66. Collecting flake8==3.6.0 (from -r requirements.txt (line 3))
  67. Downloading https://files.pythonhosted.org/packages/34/a6/49e2849a0e5464e1b5d621f63bc8453066f0f367bb3b744a33fca0bc1ddd/flake8-3.6.0-py2.py3-none-any.whl (68kB)
  68. Collecting Flask==1.0.2 (from -r requirements.txt (line 4))
  69. Downloading https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl (91kB)
  70. Collecting Flask-RESTful==0.3.6 (from -r requirements.txt (line 5))
  71. Downloading https://files.pythonhosted.org/packages/47/08/89cf8594735392cd71752f7cf159fa63765eac3e11b0da4324cdfeaea137/Flask_RESTful-0.3.6-py2.py3-none-any.whl
  72. Collecting Flask-SQLAlchemy==2.3.2 (from -r requirements.txt (line 6))
  73. Downloading https://files.pythonhosted.org/packages/a1/44/294fb7f6bf49cc7224417cd0637018db9fee0729b4fe166e43e2bbb1f1c8/Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl
  74. Collecting itsdangerous==1.1.0 (from -r requirements.txt (line 7))
  75. Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
  76. Collecting Jinja2==2.10 (from -r requirements.txt (line 8))
  77. Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB)
  78. Collecting MarkupSafe==1.0 (from -r requirements.txt (line 9))
  79. Downloading https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz
  80. Collecting marshmallow==2.16.1 (from -r requirements.txt (line 10))
  81. Downloading https://files.pythonhosted.org/packages/a1/9f/8c9011dd85afb2aa852602bd1187081072e00cae1fc153a6afd47494e4b8/marshmallow-2.16.1-py2.py3-none-any.whl (49kB)
  82. Collecting mccabe==0.6.1 (from -r requirements.txt (line 11))
  83. Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
  84. Collecting psycopg2==2.7.5 (from -r requirements.txt (line 12))
  85. Downloading https://files.pythonhosted.org/packages/37/88/40748331bf75d068a07bbea7dc658faceb0ce2e9fffdde550e76d5475e59/psycopg2-2.7.5-cp37-cp37m-manylinux1_x86_64.whl (2.7MB)
  86. Collecting pycodestyle==2.4.0 (from -r requirements.txt (line 13))
  87. Downloading https://files.pythonhosted.org/packages/e5/c6/ce130213489969aa58610042dff1d908c25c731c9575af6935c2dfad03aa/pycodestyle-2.4.0-py2.py3-none-any.whl (62kB)
  88. Collecting pyflakes==2.0.0 (from -r requirements.txt (line 14))
  89. Downloading https://files.pythonhosted.org/packages/44/98/af7a72c9a543b1487d92813c648cb9b9adfbc96faef5455d60f4439aa99b/pyflakes-2.0.0-py2.py3-none-any.whl (53kB)
  90. Collecting pytz==2018.5 (from -r requirements.txt (line 15))
  91. Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB)
  92. Collecting six==1.11.0 (from -r requirements.txt (line 16))
  93. Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  94. Collecting SQLAlchemy==1.2.12 (from -r requirements.txt (line 17))
  95. Downloading https://files.pythonhosted.org/packages/25/c9/b0552098cee325425a61efdf380c51b5c721e459081c85bbb860f501c091/SQLAlchemy-1.2.12.tar.gz (5.6MB)
  96. Collecting webargs==4.1.0 (from -r requirements.txt (line 18))
  97. Downloading https://files.pythonhosted.org/packages/28/fe/486521c5df75657c0e6f2d7f2c79726c1e5282623ba3dee543c4b1ec74a6/webargs-4.1.0-py2.py3-none-any.whl
  98. Collecting Werkzeug==0.14.1 (from -r requirements.txt (line 19))
  99. Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
  100. 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)
  101. Building wheels for collected packages: MarkupSafe, SQLAlchemy
  102. Building wheel for MarkupSafe (setup.py): started
  103. Building wheel for MarkupSafe (setup.py): finished with status 'done'
  104. Stored in directory: /root/.cache/pip/wheels/33/56/20/ebe49a5c612fffe1c5a632146b16596f9e64676768661e4e46
  105. Building wheel for SQLAlchemy (setup.py): started
  106. Building wheel for SQLAlchemy (setup.py): finished with status 'done'
  107. Stored in directory: /root/.cache/pip/wheels/ed/bd/2e/d3874a6e97b8cc71e7e177c8d065ead30f67f380c4d9bbadaa
  108. Successfully built MarkupSafe SQLAlchemy
  109. Installing collected packages: aniso8601, Click, pycodestyle, mccabe, pyflakes, flake8, Werkzeug, itsdangerous, MarkupSafe, Jinja2, Flask, pytz, six, Flask-RESTful, SQLAlchemy, Flask-SQLAlchemy, marshmallow, psycopg2, webargs
  110. 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
  111. Removing intermediate container de9a759d4e23
  112. ---> 7d95308ca0f2
  113. Step 9/11 : COPY . /app
  114. ---> cb90834f84f1
  115. Step 10/11 : ENTRYPOINT ["python"]
  116. ---> Running in 0ec3848cceb5
  117. Removing intermediate container 0ec3848cceb5
  118. ---> 57699337ef4b
  119. Step 11/11 : CMD ["app.py"]
  120. ---> Running in 676dd3017627
  121. Removing intermediate container 676dd3017627
  122. ---> 4bbc3df57ff8
  123. Successfully built 4bbc3df57ff8
  124. Successfully tagged db-cli:1.0.0
  125. Building emailer
  126. Step 1/6 : FROM node:carbon
  127. carbon: Pulling from library/node
  128. 741437d97401: Already exists
  129. 34d8874714d7: Already exists
  130. 0a108aa26679: Already exists
  131. 7f0334c36886: Already exists
  132. 65c95cb8b3be: Already exists
  133. a36b708560f8: Pull complete
  134. 81a7e69fab67: Pull complete
  135. a88b577be604: Pull complete
  136. Digest: sha256:a8a9d8eaab36bbd188612375a54fb7f57418458812dabd50769ddd3598bc24fc
  137. Status: Downloaded newer image for node:carbon
  138. ---> 4f01e5319662
  139. Step 2/6 : COPY ./package.json /app/package.json
  140. ---> 295909bc0135
  141. Step 3/6 : WORKDIR /app
  142. ---> Running in 790efe83752d
  143. Removing intermediate container 790efe83752d
  144. ---> 61eea4856152
  145. Step 4/6 : RUN yarn
  146. ---> Running in b7fccceed2a5
  147. yarn install v1.12.3
  148. info No lockfile found.
  149. [1/4] Resolving packages...
  150. warning eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
  151. [2/4] Fetching packages...
  152. info fsevents@1.2.7: The platform "linux" is incompatible with this module.
  153. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
  154. [3/4] Linking dependencies...
  155. [4/4] Building fresh packages...
  156. success Saved lockfile.
  157. Done in 71.06s.
  158. Removing intermediate container b7fccceed2a5
  159. ---> 0c6416d9afba
  160. Step 5/6 : COPY . /app
  161. ---> b6edcf4d2058
  162. Step 6/6 : CMD ["yarn", "start:dev"]
  163. ---> Running in 9be98bccc766
  164. Removing intermediate container 9be98bccc766
  165. ---> dd31e4836d97
  166. Successfully built dd31e4836d97
  167. Successfully tagged emailer:1.0.0
  168. Building api
  169. Step 1/6 : FROM node:carbon
  170. ---> 4f01e5319662
  171. Step 2/6 : COPY ./package.json /app/package.json
  172. ---> 089dd4e644d9
  173. Step 3/6 : WORKDIR /app
  174. ---> Running in 444a9fcc2bf6
  175. Removing intermediate container 444a9fcc2bf6
  176. ---> af1e690d9ee9
  177. Step 4/6 : RUN yarn
  178. ---> Running in a3ec7ba1a914
  179. yarn install v1.12.3
  180. info No lockfile found.
  181. [1/4] Resolving packages...
  182. warning eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
  183. [2/4] Fetching packages...
  184. info fsevents@1.2.7: The platform "linux" is incompatible with this module.
  185. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
  186. [3/4] Linking dependencies...
  187. [4/4] Building fresh packages...
  188. success Saved lockfile.
  189. Done in 62.18s.
  190. Removing intermediate container a3ec7ba1a914
  191. ---> 2f5c557062e9
  192. Step 5/6 : COPY . /app
  193. ---> 429d712f74be
  194. Step 6/6 : CMD ["yarn", "start:dev"]
  195. ---> Running in 3d64048f49df
  196. Removing intermediate container 3d64048f49df
  197. ---> 4ab0927e574b
  198. Successfully built 4ab0927e574b
  199. Successfully tagged api:1.0.0
  200. Building admin
  201. Step 1/6 : FROM node:carbon
  202. ---> 4f01e5319662
  203. Step 2/6 : COPY ./package.json /app/package.json
  204. ---> 822966c5eda3
  205. Step 3/6 : WORKDIR /app
  206. ---> Running in 9197cc7b29db
  207. Removing intermediate container 9197cc7b29db
  208. ---> 6adcde619e0f
  209. Step 4/6 : RUN yarn
  210. ---> Running in 7a06404e504e
  211. yarn install v1.12.3
  212. info No lockfile found.
  213. [1/4] Resolving packages...
  214. 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).
  215. warning eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
  216. [2/4] Fetching packages...
  217. info fsevents@1.2.7: The platform "linux" is incompatible with this module.
  218. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
  219. [3/4] Linking dependencies...
  220. warning " > eslint-config-react-app@3.0.7" has incorrect peer dependency "babel-eslint@9.x".
  221. warning " > react-dates@18.5.0" has unmet peer dependency "react-with-direction@^1.3.0".
  222. warning " > redux-saga-routines@3.1.3" has unmet peer dependency "@babel/runtime@>=7.0.0".
  223. [4/4] Building fresh packages...
  224. success Saved lockfile.
  225. Done in 172.56s.
  226. Removing intermediate container 7a06404e504e
  227. ---> d09097b33609
  228. Step 5/6 : COPY . /app
  229. ---> 05a206f9c2c7
  230. Step 6/6 : CMD ["yarn", "start"]
  231. ---> Running in 1eebfe6a913e
  232. Removing intermediate container 1eebfe6a913e
  233. ---> 29b96537741e
  234. Successfully built 29b96537741e
  235. Successfully tagged admin:1.0.0
  236. Building frontend
  237. Step 1/6 : FROM node:carbon
  238. ---> 4f01e5319662
  239. Step 2/6 : COPY ./package.json /app/package.json
  240. ---> Using cache
  241. ---> 822966c5eda3
  242. Step 3/6 : WORKDIR /app
  243. ---> Using cache
  244. ---> 6adcde619e0f
  245. Step 4/6 : RUN yarn
  246. ---> Using cache
  247. ---> d09097b33609
  248. Step 5/6 : COPY . /app
  249. ---> 16c96563bd34
  250. Step 6/6 : CMD ["yarn", "start"]
  251. ---> Running in 7f40691db680
  252. Removing intermediate container 7f40691db680
  253. ---> d2d1524564bd
  254. Successfully built d2d1524564bd
  255. Successfully tagged frontend:1.0.0
  256. Creating dockercompose_db_1 ... done
  257. Creating dockercompose_db-cli_1 ... done
  258. Creating dockercompose_emailer_1 ... done
  259. Creating dockercompose_api_1 ... done
  260. Creating dockercompose_frontend_1 ... done
  261. Creating dockercompose_admin_1 ... done
  262. Attaching to dockercompose_db_1, dockercompose_db-cli_1, dockercompose_emailer_1, dockercompose_api_1, dockercompose_frontend_1, dockercompose_admin_1
  263. db_1 | The files belonging to this database system will be owned by user "postgres".
  264. db_1 | This user must also own the server process.
  265. db_1 |
  266. db_1 | The database cluster will be initialized with locale "en_US.utf8".
  267. db_1 | The default database encoding has accordingly been set to "UTF8".
  268. db_1 | The default text search configuration will be set to "english".
  269. db_1 |
  270. db_1 | Data page checksums are disabled.
  271. db_1 |
  272. db_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
  273. db_1 | creating subdirectories ... ok
  274. db_1 | selecting default max_connections ... 100
  275. db_1 | selecting default shared_buffers ... 128MB
  276. db_1 | selecting dynamic shared memory implementation ... posix
  277. db_1 | creating configuration files ... ok
  278. db_1 | creating template1 database in /var/lib/postgresql/data/base/1 ... ok
  279. db_1 | initializing pg_authid ... ok
  280. db_1 | setting password ... ok
  281. db_1 | initializing dependencies ... ok
  282. db_1 | creating system views ... ok
  283. db_1 | loading system objects' descriptions ... ok
  284. db_1 | creating collations ... ok
  285. db_1 | creating conversions ... ok
  286. db_1 | creating dictionaries ... ok
  287. emailer_1 | yarn run v1.12.3
  288. emailer_1 | $ nodemon ./bin/www
  289. db_1 | setting privileges on built-in objects ... ok
  290. emailer_1 | /bin/sh: 1: nodemon: not found
  291. db_1 | creating information schema ... ok
  292. emailer_1 | error Command failed with exit code 127.
  293. emailer_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  294. api_1 | yarn run v1.12.3
  295. api_1 | $ nodemon ./bin/www
  296. api_1 | /bin/sh: 1: nodemon: not found
  297. api_1 | error Command failed with exit code 127.
  298. api_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  299. db_1 | loading PL/pgSQL server-side language ... ok
  300. db_1 | vacuuming database template1 ... ok
  301. db_1 | copying template1 to template0 ... ok
  302. db_1 | copying template1 to postgres ... ok
  303. dockercompose_api_1 exited with code 1
  304. dockercompose_emailer_1 exited with code 1
  305. frontend_1 | yarn run v1.12.3
  306. admin_1 | yarn run v1.12.3
  307. frontend_1 | $ REACT_APP_ENV=development node scripts/start.js
  308. admin_1 | $ REACT_APP_ENV=development node scripts/start.js
  309. frontend_1 | module.js:550
  310. frontend_1 | throw err;
  311. frontend_1 | ^
  312. frontend_1 |
  313. frontend_1 | Error: Cannot find module 'chalk'
  314. frontend_1 | at Function.Module._resolveFilename (module.js:548:15)
  315. frontend_1 | at Function.Module._load (module.js:475:25)
  316. frontend_1 | at Module.require (module.js:597:17)
  317. frontend_1 | at require (internal/module.js:11:18)
  318. frontend_1 | at Object.<anonymous> (/app/scripts/start.js:19:15)
  319. frontend_1 | at Module._compile (module.js:653:30)
  320. frontend_1 | at Object.Module._extensions..js (module.js:664:10)
  321. frontend_1 | at Module.load (module.js:566:32)
  322. frontend_1 | at tryModuleLoad (module.js:506:12)
  323. frontend_1 | at Function.Module._load (module.js:498:3)
  324. frontend_1 | error Command failed with exit code 1.
  325. admin_1 | module.js:550
  326. admin_1 | throw err;
  327. admin_1 | ^
  328. admin_1 |
  329. admin_1 | Error: Cannot find module 'chalk'
  330. admin_1 | at Function.Module._resolveFilename (module.js:548:15)
  331. admin_1 | at Function.Module._load (module.js:475:25)
  332. admin_1 | at Module.require (module.js:597:17)
  333. admin_1 | at require (internal/module.js:11:18)
  334. admin_1 | at Object.<anonymous> (/app/scripts/start.js:19:15)
  335. admin_1 | at Module._compile (module.js:653:30)
  336. admin_1 | at Object.Module._extensions..js (module.js:664:10)
  337. admin_1 | at Module.load (module.js:566:32)
  338. admin_1 | at tryModuleLoad (module.js:506:12)
  339. admin_1 | at Function.Module._load (module.js:498:3)
  340. admin_1 | error Command failed with exit code 1.
  341. frontend_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  342. admin_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  343. dockercompose_frontend_1 exited with code 1
  344. dockercompose_admin_1 exited with code 1
  345. 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.
  346. db-cli_1 | 'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
  347. 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>.
  348. db-cli_1 | """)
  349. db-cli_1 | Traceback (most recent call last):
  350. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
  351. db-cli_1 | return fn()
  352. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 400, in connect
  353. db-cli_1 | return _ConnectionFairy._checkout(self)
  354. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 788, in _checkout
  355. db-cli_1 | fairy = _ConnectionRecord.checkout(pool)
  356. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 529, in checkout
  357. db-cli_1 | rec = pool._do_get()
  358. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1193, in _do_get
  359. db-cli_1 | self._dec_overflow()
  360. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
  361. db-cli_1 | compat.reraise(exc_type, exc_value, exc_tb)
  362. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
  363. db-cli_1 | raise value
  364. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1190, in _do_get
  365. db-cli_1 | return self._create_connection()
  366. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 347, in _create_connection
  367. db-cli_1 | return _ConnectionRecord(self)
  368. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 474, in __init__
  369. db-cli_1 | self.__connect(first_connect_check=True)
  370. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 671, in __connect
  371. db-cli_1 | connection = pool._invoke_creator(self)
  372. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 106, in connect
  373. db-cli_1 | return dialect.connect(*cargs, **cparams)
  374. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 412, in connect
  375. db-cli_1 | return self.dbapi.connect(*cargs, **cparams)
  376. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  377. db-cli_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  378. db-cli_1 | psycopg2.OperationalError: could not connect to server: Connection refused
  379. db-cli_1 | Is the server running on host "db" (172.18.0.2) and accepting
  380. db-cli_1 | TCP/IP connections on port 5432?
  381. db-cli_1 |
  382. db-cli_1 |
  383. db-cli_1 | The above exception was the direct cause of the following exception:
  384. db-cli_1 |
  385. db-cli_1 | Traceback (most recent call last):
  386. db-cli_1 | File "app.py", line 41, in <module>
  387. db-cli_1 | db.create_all()
  388. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 963, in create_all
  389. db-cli_1 | self._execute_for_all_tables(app, bind, 'create_all')
  390. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 955, in _execute_for_all_tables
  391. db-cli_1 | op(bind=self.get_engine(app, bind), **extra)
  392. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4005, in create_all
  393. db-cli_1 | tables=tables)
  394. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1939, in _run_visitor
  395. db-cli_1 | with self._optional_conn_ctx_manager(connection) as conn:
  396. db-cli_1 | File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
  397. db-cli_1 | return next(self.gen)
  398. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1932, in _optional_conn_ctx_manager
  399. db-cli_1 | with self.contextual_connect() as conn:
  400. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2123, in contextual_connect
  401. db-cli_1 | self._wrap_pool_connect(self.pool.connect, None),
  402. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2162, in _wrap_pool_connect
  403. db-cli_1 | e, dialect, self)
  404. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1476, in _handle_dbapi_exception_noconnection
  405. db-cli_1 | exc_info
  406. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
  407. db-cli_1 | reraise(type(exception), exception, tb=exc_tb, cause=cause)
  408. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 248, in reraise
  409. db-cli_1 | raise value.with_traceback(tb)
  410. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
  411. db-cli_1 | return fn()
  412. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 400, in connect
  413. db-cli_1 | return _ConnectionFairy._checkout(self)
  414. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 788, in _checkout
  415. db-cli_1 | fairy = _ConnectionRecord.checkout(pool)
  416. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 529, in checkout
  417. db-cli_1 | rec = pool._do_get()
  418. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1193, in _do_get
  419. db-cli_1 | self._dec_overflow()
  420. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
  421. db-cli_1 | compat.reraise(exc_type, exc_value, exc_tb)
  422. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
  423. db-cli_1 | raise value
  424. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 1190, in _do_get
  425. db-cli_1 | return self._create_connection()
  426. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 347, in _create_connection
  427. db-cli_1 | return _ConnectionRecord(self)
  428. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 474, in __init__
  429. db-cli_1 | self.__connect(first_connect_check=True)
  430. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool.py", line 671, in __connect
  431. db-cli_1 | connection = pool._invoke_creator(self)
  432. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 106, in connect
  433. db-cli_1 | return dialect.connect(*cargs, **cparams)
  434. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 412, in connect
  435. db-cli_1 | return self.dbapi.connect(*cargs, **cparams)
  436. db-cli_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  437. db-cli_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  438. db-cli_1 | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
  439. db-cli_1 | Is the server running on host "db" (172.18.0.2) and accepting
  440. db-cli_1 | TCP/IP connections on port 5432?
  441. db-cli_1 | (Background on this error at: http://sqlalche.me/e/e3q8)
  442. dockercompose_db-cli_1 exited with code 1
  443. db_1 | syncing data to disk ... ok
  444. db_1 |
  445. db_1 | WARNING: enabling "trust" authentication for local connections
  446. db_1 | You can change this by editing pg_hba.conf or using the option -A, or
  447. db_1 | --auth-local and --auth-host, the next time you run initdb.
  448. db_1 |
  449. db_1 | Success. You can now start the database server using:
  450. db_1 |
  451. db_1 | postgres -D /var/lib/postgresql/data
  452. db_1 | or
  453. db_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
  454. db_1 |
  455. db_1 | waiting for server to start....LOG: database system was shut down at 2019-02-15 09:31:43 UTC
  456. db_1 | FATAL: the database system is starting up
  457. db_1 | .LOG: MultiXact member wraparound protections are now enabled
  458. db_1 | LOG: database system is ready to accept connections
  459. db_1 | LOG: autovacuum launcher started
  460. db_1 | done
  461. db_1 | server started
  462. db_1 | CREATE DATABASE
  463. db_1 |
  464. db_1 |
  465. db_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
  466. db_1 |
  467. db_1 | LOG: received fast shutdown request
  468. db_1 | LOG: aborting any active transactions
  469. db_1 | LOG: autovacuum launcher shutting down
  470. db_1 | LOG: shutting down
  471. db_1 | waiting for server to shut down....LOG: database system is shut down
  472. db_1 | done
  473. db_1 | server stopped
  474. db_1 |
  475. db_1 | PostgreSQL init process complete; ready for start up.
  476. db_1 |
  477. db_1 | LOG: database system was shut down at 2019-02-15 09:32:41 UTC
  478. db_1 | LOG: MultiXact member wraparound protections are now enabled
  479. db_1 | LOG: database system is ready to accept connections
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement