Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 18.36 KB | None | 0 0
  1. MacBook-Pro-Maxim:backend lucio$ docker-compose up --b
  2. Building web
  3. Step 1/19 : FROM python:3.7
  4.  ---> b567432174fe
  5. Step 2/19 : ENV PYTHONUNBUFFERED 1
  6.  ---> Using cache
  7.  ---> 21d89f805e81
  8. Step 3/19 : RUN mkdir /code
  9.  ---> Using cache
  10.  ---> edfb6b308404
  11. Step 4/19 : WORKDIR /code
  12.  ---> Using cache
  13.  ---> dd5ec9cd4bdc
  14. Step 5/19 : ADD requirements.txt /code/
  15.  ---> Using cache
  16.  ---> 050d0b60ca03
  17. Step 6/19 : RUN pip install -r requirements.txt
  18.  ---> Using cache
  19.  ---> 6a0c1446a6ec
  20. Step 7/19 : ADD . /code/
  21.  ---> 27d51889d6d2
  22. Step 8/19 : RUN echo 'alias manage="python manage.py"' >> ~/.bashrc
  23.  ---> Running in 3a2fc97e2e7e
  24. Removing intermediate container 3a2fc97e2e7e
  25.  ---> a2f88613b182
  26. Step 9/19 : RUN adduser --disabled-password --gecos '' django
  27.  ---> Running in df5e984d1a62
  28. Adding user `django' ...
  29. Adding new group `django' (1000) ...
  30. Adding new user `django' (1000) with group `django' ...
  31. Creating home directory `/home/django' ...
  32. Copying files from `/etc/skel' ...
  33. Removing intermediate container df5e984d1a62
  34.  ---> 5225c18672b4
  35. Step 10/19 : RUN groupadd docker
  36.  ---> Running in 8cdf7cef6858
  37. Removing intermediate container 8cdf7cef6858
  38.  ---> e0ecb3748ccc
  39. Step 11/19 : RUN usermod -aG docker django
  40.  ---> Running in 2821a7b904ba
  41. Removing intermediate container 2821a7b904ba
  42.  ---> 5fd92f6fca11
  43. Step 12/19 : RUN mkdir ~/scripts/
  44.  ---> Running in 513e3a381590
  45. Removing intermediate container 513e3a381590
  46.  ---> 2d06aabf3d06
  47. Step 13/19 : RUN chown -R django:django ~/
  48.  ---> Running in db7a3ec7a44e
  49. Removing intermediate container db7a3ec7a44e
  50.  ---> 9afad6a40239
  51. Step 14/19 : RUN chown -R django:django ~/scripts/
  52.  ---> Running in 7719c501e2c4
  53. Removing intermediate container 7719c501e2c4
  54.  ---> 35d61131a451
  55. Step 15/19 : RUN chown -R django:django /code/
  56.  ---> Running in 4cb55797c833
  57. Removing intermediate container 4cb55797c833
  58.  ---> b65645e53db6
  59. Step 16/19 : ADD start.sh /home/django/scripts/
  60.  ---> 71589291c586
  61. Step 17/19 : ADD wait_for_postgres.sh /home/django/scripts/
  62.  ---> 5f422591a8db
  63. Step 18/19 : RUN ["chmod", "+x", "/home/django/scripts/start.sh"]
  64.  ---> Running in db288a15e588
  65. Removing intermediate container db288a15e588
  66.  ---> 0f930a501687
  67. Step 19/19 : RUN ["chmod", "+x", "/home/django/scripts/wait_for_postgres.sh"]
  68.  ---> Running in 3c9d6e380899
  69. Removing intermediate container 3c9d6e380899
  70.  ---> 06612e05d30d
  71. Successfully built 06612e05d30d
  72. Successfully tagged backend_web:latest
  73. Starting backend_db_1         ... done
  74. Starting backend_clickhouse_1 ... done
  75. Recreating backend_web_1      ... done
  76. Attaching to backend_db_1, backend_clickhouse_1, backend_web_1
  77. clickhouse_1  | Include not found: clickhouse_remote_servers
  78. db_1          |
  79. db_1          | PostgreSQL Database directory appears to contain a database; Skipping initialization
  80. db_1          |
  81. clickhouse_1  | Include not found: clickhouse_compression
  82. clickhouse_1  | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
  83. clickhouse_1  | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
  84. db_1          | 2020-01-24 11:00:37.139 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
  85. db_1          | 2020-01-24 11:00:37.139 UTC [1] LOG:  listening on IPv6 address "::", port 5432
  86. clickhouse_1  | Include not found: networks
  87. db_1          | 2020-01-24 11:00:37.144 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
  88. db_1          | 2020-01-24 11:00:37.181 UTC [24] LOG:  database system was shut down at 2020-01-24 10:59:01 UTC
  89. db_1          | 2020-01-24 11:00:37.208 UTC [1] LOG:  database system is ready to accept connections
  90. web_1         | Postgres запустился - запускаю сервер
  91. clickhouse_1  | Include not found: clickhouse_remote_servers
  92. clickhouse_1  | Include not found: clickhouse_compression
  93. web_1         | Migrations for 'apimanager':
  94. web_1         |   apimanager/migrations/0034_auto_20200124_1100.py
  95. web_1         |     - Change Meta options on supportrequest
  96. web_1         | Operations to perform:
  97. web_1         |   Apply all migrations: admin, apimanager, auth, authtoken, contenttypes, jet, sessions
  98. web_1         | Running migrations:
  99. db_1          | 2020-01-24 11:00:41.138 UTC [33] ERROR:  could not create unique index "apimanager_user_email_10cb89e1_uniq"
  100. db_1          | 2020-01-24 11:00:41.138 UTC [33] DETAIL:  Key (email)=(newluciocheg@gmail.com) is duplicated.
  101. db_1          | 2020-01-24 11:00:41.138 UTC [33] STATEMENT:  ALTER TABLE "apimanager_user" ADD CONSTRAINT "apimanager_user_email_10cb89e1_uniq" UNIQUE ("email")
  102. web_1         |   Applying apimanager.0030_auto_20200117_1421...Traceback (most recent call last):
  103. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  104. web_1         |     return self.cursor.execute(sql, params)
  105. web_1         | psycopg2.errors.UniqueViolation: could not create unique index "apimanager_user_email_10cb89e1_uniq"
  106. web_1         | DETAIL:  Key (email)=(newluciocheg@gmail.com) is duplicated.
  107. web_1         |
  108. web_1         |
  109. web_1         | The above exception was the direct cause of the following exception:
  110. web_1         |
  111. web_1         | Traceback (most recent call last):
  112. web_1         |   File "/code/manage.py", line 21, in <module>
  113. web_1         |     main()
  114. web_1         |   File "/code/manage.py", line 17, in main
  115. web_1         |     execute_from_command_line(sys.argv)
  116. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
  117. web_1         |     utility.execute()
  118. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
  119. web_1         |     self.fetch_command(subcommand).run_from_argv(self.argv)
  120. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
  121. web_1         |     self.execute(*args, **cmd_options)
  122. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
  123. web_1         |     output = self.handle(*args, **options)
  124. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
  125. web_1         |     res = handle_func(*args, **kwargs)
  126. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 233, in handle
  127. web_1         |     fake_initial=fake_initial,
  128. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 117, in migrate
  129. web_1         |     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  130. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
  131. web_1         |     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  132. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
  133. web_1         |     state = migration.apply(state, schema_editor)
  134. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/migration.py", line 124, in apply
  135. web_1         |     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  136. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/operations/fields.py", line 249, in database_forwards
  137. web_1         |     schema_editor.alter_field(from_model, from_field, to_field)
  138. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 565, in alter_field
  139. web_1         |     old_db_params, new_db_params, strict)
  140. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/schema.py", line 149, in _alter_field
  141. web_1         |     new_db_params, strict,
  142. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 745, in _alter_field
  143. web_1         |     self.execute(self._create_unique_sql(model, [new_field.column]))
  144. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 142, in execute
  145. web_1         |     cursor.execute(sql, params)
  146. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
  147. web_1         |     return super().execute(sql, params)
  148. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
  149. web_1         |     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  150. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
  151. web_1         |     return executor(sql, params, many, context)
  152. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  153. web_1         |     return self.cursor.execute(sql, params)
  154. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
  155. web_1         |     raise dj_exc_value.with_traceback(traceback) from exc_value
  156. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  157. web_1         |     return self.cursor.execute(sql, params)
  158. web_1         | django.db.utils.IntegrityError: could not create unique index "apimanager_user_email_10cb89e1_uniq"
  159. web_1         | DETAIL:  Key (email)=(newluciocheg@gmail.com) is duplicated.
  160. web_1         |
  161. db_1          | 2020-01-24 11:00:42.489 UTC [34] ERROR:  column "name" of relation "apimanager_apimethod" does not exist at character 35
  162. db_1          | 2020-01-24 11:00:42.489 UTC [34] STATEMENT:  UPDATE "apimanager_apimethod" SET "name" = 'Логин', "path" = '/user/login/', "http_method" = 'post', "description" = 'Получить токен авторизации.', "status" = 'open', "example_request" = '{"email": "email@example.com", "password": "Lg85Jfgl5"}', "example_response" = '{"success": "\u0412\u0445\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e", "auth_token": "f759cabe02652b0f4b464316432ec67af1e9f96f"}' WHERE "apimanager_apimethod"."id" = 7
  163. web_1         | Traceback (most recent call last):
  164. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  165. web_1         |     return self.cursor.execute(sql, params)
  166. web_1         | psycopg2.errors.UndefinedColumn: column "name" of relation "apimanager_apimethod" does not exist
  167. web_1         | LINE 1: UPDATE "apimanager_apimethod" SET "name" = 'Логин', "path" =...
  168. web_1         |                                           ^
  169. web_1         |
  170. web_1         |
  171. web_1         | The above exception was the direct cause of the following exception:
  172. web_1         |
  173. web_1         | Traceback (most recent call last):
  174. web_1         |   File "/code/manage.py", line 21, in <module>
  175. web_1         |     main()
  176. web_1         |   File "/code/manage.py", line 17, in main
  177. web_1         |     execute_from_command_line(sys.argv)
  178. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
  179. web_1         |     utility.execute()
  180. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
  181. web_1         |     self.fetch_command(subcommand).run_from_argv(self.argv)
  182. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
  183. web_1         |     self.execute(*args, **cmd_options)
  184. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
  185. web_1         |     output = self.handle(*args, **options)
  186. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
  187. web_1         |     self.loaddata(fixture_labels)
  188. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 114, in loaddata
  189. web_1         |     self.load_label(fixture_label)
  190. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 181, in load_label
  191. web_1         |     obj.save(using=self.using)
  192. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/serializers/base.py", line 223, in save
  193. web_1         |     models.Model.save_base(self.object, using=using, raw=True, **kwargs)
  194. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 784, in save_base
  195. web_1         |     force_update, using, update_fields,
  196. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 864, in _save_table
  197. web_1         |     forced_update)
  198. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 916, in _do_update
  199. web_1         |     return filtered._update(values) > 0
  200. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 771, in _update
  201. web_1         |     return query.get_compiler(self.db).execute_sql(CURSOR)
  202. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1485, in execute_sql
  203. web_1         |     cursor = super().execute_sql(result_type)
  204. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1137, in execute_sql
  205. web_1         |     cursor.execute(sql, params)
  206. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
  207. web_1         |     return super().execute(sql, params)
  208. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
  209. web_1         |     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  210. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
  211. web_1         |     return executor(sql, params, many, context)
  212. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  213. web_1         |     return self.cursor.execute(sql, params)
  214. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
  215. web_1         |     raise dj_exc_value.with_traceback(traceback) from exc_value
  216. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  217. web_1         |     return self.cursor.execute(sql, params)
  218. web_1         | django.db.utils.ProgrammingError: Problem installing fixture '/code/apimanager/fixtures/apimanager.json': Could not load apimanager.ApiMethod(pk=7): column "name" of relation "apimanager_apimethod" does not exist
  219. web_1         | LINE 1: UPDATE "apimanager_apimethod" SET "name" = 'Логин', "path" =...
  220. web_1         |                                           ^
  221. web_1         |
  222. web_1         | Found another file with the destination path 'admin/js/SelectFilter2.js'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  223. web_1         | Found another file with the destination path 'admin/js/admin/DateTimeShortcuts.js'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  224. web_1         | Found another file with the destination path 'admin/js/admin/RelatedObjectLookups.js'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  225. web_1         | Found another file with the destination path 'admin/css/base.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  226. web_1         | Found another file with the destination path 'admin/css/dashboard.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  227. web_1         | Found another file with the destination path 'admin/css/rtl.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  228. web_1         | Found another file with the destination path 'admin/css/widgets.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  229. web_1         | Found another file with the destination path 'admin/css/fonts.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  230. web_1         | Found another file with the destination path 'admin/css/login.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  231. web_1         | Found another file with the destination path 'admin/css/changelists.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  232. web_1         | Found another file with the destination path 'admin/css/forms.css'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
  233. web_1         |
  234. web_1         | 454 static files copied to '/static'.
  235. web_1         | Watching for file changes with StatReloader
  236. web_1         | Performing system checks...
  237. web_1         |
  238. web_1         | System check identified no issues (0 silenced).
  239. web_1         |
  240. web_1         | You have 7 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): apimanager, jet.
  241. web_1         | Run 'python manage.py migrate' to apply them.
  242. web_1         | January 24, 2020 - 11:00:45
  243. web_1         | Django version 3.0.1, using settings 'settings.settings'
  244. web_1         | Starting development server at http://0.0.0.0:8000/
  245. web_1         | Quit the server with CONTROL-C.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement