Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
2,018
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 20.49 KB | None | 0 0
  1. MacBook-Pro-Maxim:work lucio$ git clone https://gitlab.com/apimanager/backend.git
  2. Клонирование в «backend»…
  3. remote: Enumerating objects: 554, done.
  4. remote: Counting objects: 100% (554/554), done.
  5. remote: Compressing objects: 100% (265/265), done.
  6. remote: Total 554 (delta 334), reused 447 (delta 255), pack-reused 0
  7. Получение объектов: 100% (554/554), 487.79 KiB | 227.00 KiB/s, готово.
  8. Определение изменений: 100% (334/334), готово.
  9. MacBook-Pro-Maxim:work lucio$ cd backend
  10. MacBook-Pro-Maxim:backend lucio$ git fetch
  11. MacBook-Pro-Maxim:backend lucio$ git branch -a
  12. * develop
  13.   remotes/origin/HEAD -> origin/develop
  14.   remotes/origin/develop
  15.   remotes/origin/feature/API-29_balance_history
  16.   remotes/origin/feature/API-43_api-doc
  17.   remotes/origin/feature/API-64_payments
  18.   remotes/origin/master
  19.   remotes/origin/release/sprint-03-auth
  20.   remotes/origin/release/sprint-04
  21. MacBook-Pro-Maxim:backend lucio$ git checkout release/sprint-04
  22. Ветка «release/sprint-04» отслеживает внешнюю ветку «release/sprint-04» из «origin».
  23. Переключено на новую ветку «release/sprint-04»
  24. MacBook-Pro-Maxim:backend lucio$ git branch
  25.   develop
  26. * release/sprint-04
  27. MacBook-Pro-Maxim:backend lucio$ docker-compose up --b
  28. Building web
  29. Step 1/19 : FROM python:3.7
  30.  ---> b567432174fe
  31. Step 2/19 : ENV PYTHONUNBUFFERED 1
  32.  ---> Using cache
  33.  ---> 21d89f805e81
  34. Step 3/19 : RUN mkdir /code
  35.  ---> Using cache
  36.  ---> edfb6b308404
  37. Step 4/19 : WORKDIR /code
  38.  ---> Using cache
  39.  ---> dd5ec9cd4bdc
  40. Step 5/19 : ADD requirements.txt /code/
  41.  ---> Using cache
  42.  ---> 050d0b60ca03
  43. Step 6/19 : RUN pip install -r requirements.txt
  44.  ---> Using cache
  45.  ---> 6a0c1446a6ec
  46. Step 7/19 : ADD . /code/
  47.  ---> 490ee31a791f
  48. Step 8/19 : RUN echo 'alias manage="python manage.py"' >> ~/.bashrc
  49.  ---> Running in 011ed2b6cfd5
  50. Removing intermediate container 011ed2b6cfd5
  51.  ---> 429b6cc4d99d
  52. Step 9/19 : RUN adduser --disabled-password --gecos '' django
  53.  ---> Running in af1e3741d0b8
  54. Adding user `django' ...
  55. Adding new group `django' (1000) ...
  56. Adding new user `django' (1000) with group `django' ...
  57. Creating home directory `/home/django' ...
  58. Copying files from `/etc/skel' ...
  59. Removing intermediate container af1e3741d0b8
  60.  ---> b0f03a875025
  61. Step 10/19 : RUN groupadd docker
  62.  ---> Running in 10b9807d3613
  63. Removing intermediate container 10b9807d3613
  64.  ---> e54205ae233e
  65. Step 11/19 : RUN usermod -aG docker django
  66.  ---> Running in d8c64fd25bdd
  67. Removing intermediate container d8c64fd25bdd
  68.  ---> fc7a79bee643
  69. Step 12/19 : RUN mkdir ~/scripts/
  70.  ---> Running in de26dfd8af33
  71. Removing intermediate container de26dfd8af33
  72.  ---> c6ce8410b948
  73. Step 13/19 : RUN chown -R django:django ~/
  74.  ---> Running in 6ca5954fe12e
  75. Removing intermediate container 6ca5954fe12e
  76.  ---> 8131da0f9e18
  77. Step 14/19 : RUN chown -R django:django ~/scripts/
  78.  ---> Running in fc7811b8076e
  79. Removing intermediate container fc7811b8076e
  80.  ---> 093ff738ae0b
  81. Step 15/19 : RUN chown -R django:django /code/
  82.  ---> Running in 462f4bb49099
  83. Removing intermediate container 462f4bb49099
  84.  ---> b8af50bece62
  85. Step 16/19 : ADD start.sh /home/django/scripts/
  86.  ---> 9146597f1dfe
  87. Step 17/19 : ADD wait_for_postgres.sh /home/django/scripts/
  88.  ---> 66bcc927541d
  89. Step 18/19 : RUN ["chmod", "+x", "/home/django/scripts/start.sh"]
  90.  ---> Running in 5154e855bc22
  91. Removing intermediate container 5154e855bc22
  92.  ---> 7fcfc6aead55
  93. Step 19/19 : RUN ["chmod", "+x", "/home/django/scripts/wait_for_postgres.sh"]
  94.  ---> Running in 672fbeeb90cd
  95. Removing intermediate container 672fbeeb90cd
  96.  ---> 0289bcfee1d3
  97. Successfully built 0289bcfee1d3
  98. Successfully tagged backend_web:latest
  99. Starting backend_db_1         ... done
  100. Starting backend_clickhouse_1 ... done
  101. Recreating backend_web_1      ... done
  102. Attaching to backend_db_1, backend_clickhouse_1, backend_web_1
  103. clickhouse_1  | Include not found: clickhouse_remote_servers
  104. clickhouse_1  | Include not found: clickhouse_compression
  105. clickhouse_1  | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
  106. clickhouse_1  | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
  107. clickhouse_1  | Include not found: networks
  108. db_1          |
  109. db_1          | PostgreSQL Database directory appears to contain a database; Skipping initialization
  110. db_1          |
  111. db_1          | 2020-01-24 10:54:21.065 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
  112. db_1          | 2020-01-24 10:54:21.067 UTC [1] LOG:  listening on IPv6 address "::", port 5432
  113. db_1          | 2020-01-24 10:54:21.074 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
  114. db_1          | 2020-01-24 10:54:21.124 UTC [25] LOG:  database system was shut down at 2020-01-24 10:52:44 UTC
  115. db_1          | 2020-01-24 10:54:21.168 UTC [1] LOG:  database system is ready to accept connections
  116. web_1         | Postgres запустился - запускаю сервер
  117. clickhouse_1  | Include not found: clickhouse_remote_servers
  118. clickhouse_1  | Include not found: clickhouse_compression
  119. web_1         | Migrations for 'apimanager':
  120. web_1         |   apimanager/migrations/0034_auto_20200124_1054.py
  121. web_1         |     - Change Meta options on supportrequest
  122. web_1         | Operations to perform:
  123. web_1         |   Apply all migrations: admin, apimanager, auth, authtoken, contenttypes, jet, sessions
  124. web_1         | Running migrations:
  125. db_1          | 2020-01-24 10:54:26.676 UTC [34] ERROR:  could not create unique index "apimanager_user_email_10cb89e1_uniq"
  126. db_1          | 2020-01-24 10:54:26.676 UTC [34] DETAIL:  Key (email)=(newluciocheg@gmail.com) is duplicated.
  127. db_1          | 2020-01-24 10:54:26.676 UTC [34] STATEMENT:  ALTER TABLE "apimanager_user" ADD CONSTRAINT "apimanager_user_email_10cb89e1_uniq" UNIQUE ("email")
  128. web_1         |   Applying apimanager.0030_auto_20200117_1421...Traceback (most recent call last):
  129. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  130. web_1         |     return self.cursor.execute(sql, params)
  131. web_1         | psycopg2.errors.UniqueViolation: could not create unique index "apimanager_user_email_10cb89e1_uniq"
  132. web_1         | DETAIL:  Key (email)=(newluciocheg@gmail.com) is duplicated.
  133. web_1         |
  134. web_1         |
  135. web_1         | The above exception was the direct cause of the following exception:
  136. web_1         |
  137. web_1         | Traceback (most recent call last):
  138. web_1         |   File "/code/manage.py", line 21, in <module>
  139. web_1         |     main()
  140. web_1         |   File "/code/manage.py", line 17, in main
  141. web_1         |     execute_from_command_line(sys.argv)
  142. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
  143. web_1         |     utility.execute()
  144. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
  145. web_1         |     self.fetch_command(subcommand).run_from_argv(self.argv)
  146. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
  147. web_1         |     self.execute(*args, **cmd_options)
  148. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
  149. web_1         |     output = self.handle(*args, **options)
  150. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
  151. web_1         |     res = handle_func(*args, **kwargs)
  152. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 233, in handle
  153. web_1         |     fake_initial=fake_initial,
  154. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 117, in migrate
  155. web_1         |     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  156. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
  157. web_1         |     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  158. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
  159. web_1         |     state = migration.apply(state, schema_editor)
  160. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/migration.py", line 124, in apply
  161. web_1         |     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  162. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/migrations/operations/fields.py", line 249, in database_forwards
  163. web_1         |     schema_editor.alter_field(from_model, from_field, to_field)
  164. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 565, in alter_field
  165. web_1         |     old_db_params, new_db_params, strict)
  166. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/schema.py", line 149, in _alter_field
  167. web_1         |     new_db_params, strict,
  168. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 745, in _alter_field
  169. web_1         |     self.execute(self._create_unique_sql(model, [new_field.column]))
  170. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 142, in execute
  171. web_1         |     cursor.execute(sql, params)
  172. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
  173. web_1         |     return super().execute(sql, params)
  174. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
  175. web_1         |     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  176. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
  177. web_1         |     return executor(sql, params, many, context)
  178. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  179. web_1         |     return self.cursor.execute(sql, params)
  180. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
  181. web_1         |     raise dj_exc_value.with_traceback(traceback) from exc_value
  182. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  183. web_1         |     return self.cursor.execute(sql, params)
  184. web_1         | django.db.utils.IntegrityError: could not create unique index "apimanager_user_email_10cb89e1_uniq"
  185. web_1         | DETAIL:  Key (email)=(newluciocheg@gmail.com) is duplicated.
  186. web_1         |
  187. db_1          | 2020-01-24 10:54:28.510 UTC [35] ERROR:  column "name" of relation "apimanager_apimethod" does not exist at character 35
  188. db_1          | 2020-01-24 10:54:28.510 UTC [35] 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
  189. web_1         | Traceback (most recent call last):
  190. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  191. web_1         |     return self.cursor.execute(sql, params)
  192. web_1         | psycopg2.errors.UndefinedColumn: column "name" of relation "apimanager_apimethod" does not exist
  193. web_1         | LINE 1: UPDATE "apimanager_apimethod" SET "name" = 'Логин', "path" =...
  194. web_1         |                                           ^
  195. web_1         |
  196. web_1         |
  197. web_1         | The above exception was the direct cause of the following exception:
  198. web_1         |
  199. web_1         | Traceback (most recent call last):
  200. web_1         |   File "/code/manage.py", line 21, in <module>
  201. web_1         |     main()
  202. web_1         |   File "/code/manage.py", line 17, in main
  203. web_1         |     execute_from_command_line(sys.argv)
  204. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
  205. web_1         |     utility.execute()
  206. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
  207. web_1         |     self.fetch_command(subcommand).run_from_argv(self.argv)
  208. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
  209. web_1         |     self.execute(*args, **cmd_options)
  210. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
  211. web_1         |     output = self.handle(*args, **options)
  212. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
  213. web_1         |     self.loaddata(fixture_labels)
  214. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 114, in loaddata
  215. web_1         |     self.load_label(fixture_label)
  216. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 181, in load_label
  217. web_1         |     obj.save(using=self.using)
  218. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/core/serializers/base.py", line 223, in save
  219. web_1         |     models.Model.save_base(self.object, using=using, raw=True, **kwargs)
  220. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 784, in save_base
  221. web_1         |     force_update, using, update_fields,
  222. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 864, in _save_table
  223. web_1         |     forced_update)
  224. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 916, in _do_update
  225. web_1         |     return filtered._update(values) > 0
  226. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 771, in _update
  227. web_1         |     return query.get_compiler(self.db).execute_sql(CURSOR)
  228. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1485, in execute_sql
  229. web_1         |     cursor = super().execute_sql(result_type)
  230. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1137, in execute_sql
  231. web_1         |     cursor.execute(sql, params)
  232. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
  233. web_1         |     return super().execute(sql, params)
  234. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
  235. web_1         |     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  236. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
  237. web_1         |     return executor(sql, params, many, context)
  238. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  239. web_1         |     return self.cursor.execute(sql, params)
  240. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
  241. web_1         |     raise dj_exc_value.with_traceback(traceback) from exc_value
  242. web_1         |   File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
  243. web_1         |     return self.cursor.execute(sql, params)
  244. 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
  245. web_1         | LINE 1: UPDATE "apimanager_apimethod" SET "name" = 'Логин', "path" =...
  246. web_1         |                                           ^
  247. web_1         |
  248. 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.
  249. 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.
  250. 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.
  251. 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.
  252. 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.
  253. 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.
  254. 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.
  255. 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.
  256. 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.
  257. 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.
  258. 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.
  259. web_1         |
  260. web_1         | 454 static files copied to '/static'.
  261. web_1         | Watching for file changes with StatReloader
  262. web_1         | Performing system checks...
  263. web_1         |
  264. web_1         | System check identified no issues (0 silenced).
  265. web_1         |
  266. web_1         | You have 7 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): apimanager, jet.
  267. web_1         | Run 'python manage.py migrate' to apply them.
  268. web_1         | January 24, 2020 - 10:54:33
  269. web_1         | Django version 3.0.1, using settings 'settings.settings'
  270. web_1         | Starting development server at http://0.0.0.0:8000/
  271. web_1         | Quit the server with CONTROL-C.
  272. web_1         | [24/Jan/2020 10:54:52] "POST /user/login/ HTTP/1.1" 200 110
  273. db_1          | 2020-01-24 10:54:56.432 UTC [38] ERROR:  relation "apimanager_supportrequest" does not exist at character 13
  274. db_1          | 2020-01-24 10:54:56.432 UTC [38] STATEMENT:  INSERT INTO "apimanager_supportrequest" ("title", "description", "response", "date", "public_id", "user_id") VALUES ('test', 'test', NULL, '2020-01-24T10:54:56.427324+00:00'::timestamptz, 'd6870875-a5e9-4124-adc3-614b49d163cb', 14) RETURNING "apimanager_supportrequest"."id"
  275. web_1         | relation "apimanager_supportrequest" does not exist
  276. web_1         | LINE 1: INSERT INTO "apimanager_supportrequest" ("title", "descripti...
  277. web_1         |                     ^
  278. web_1         |
  279. web_1         | Internal Server Error: /support/create/
  280. web_1         | [24/Jan/2020 10:54:56] "POST /support/create/ HTTP/1.1" 500 31
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement