Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MacBook-Pro-Maxim:work lucio$ git clone https://gitlab.com/apimanager/backend.git
- Клонирование в «backend»…
- remote: Enumerating objects: 554, done.
- remote: Counting objects: 100% (554/554), done.
- remote: Compressing objects: 100% (265/265), done.
- remote: Total 554 (delta 334), reused 447 (delta 255), pack-reused 0
- Получение объектов: 100% (554/554), 487.79 KiB | 227.00 KiB/s, готово.
- Определение изменений: 100% (334/334), готово.
- MacBook-Pro-Maxim:work lucio$ cd backend
- MacBook-Pro-Maxim:backend lucio$ git fetch
- MacBook-Pro-Maxim:backend lucio$ git branch -a
- * develop
- remotes/origin/HEAD -> origin/develop
- remotes/origin/develop
- remotes/origin/feature/API-29_balance_history
- remotes/origin/feature/API-43_api-doc
- remotes/origin/feature/API-64_payments
- remotes/origin/master
- remotes/origin/release/sprint-03-auth
- remotes/origin/release/sprint-04
- MacBook-Pro-Maxim:backend lucio$ git checkout release/sprint-04
- Ветка «release/sprint-04» отслеживает внешнюю ветку «release/sprint-04» из «origin».
- Переключено на новую ветку «release/sprint-04»
- MacBook-Pro-Maxim:backend lucio$ git branch
- develop
- * release/sprint-04
- MacBook-Pro-Maxim:backend lucio$ docker-compose up --b
- Building web
- Step 1/19 : FROM python:3.7
- ---> b567432174fe
- Step 2/19 : ENV PYTHONUNBUFFERED 1
- ---> Using cache
- ---> 21d89f805e81
- Step 3/19 : RUN mkdir /code
- ---> Using cache
- ---> edfb6b308404
- Step 4/19 : WORKDIR /code
- ---> Using cache
- ---> dd5ec9cd4bdc
- Step 5/19 : ADD requirements.txt /code/
- ---> Using cache
- ---> 050d0b60ca03
- Step 6/19 : RUN pip install -r requirements.txt
- ---> Using cache
- ---> 6a0c1446a6ec
- Step 7/19 : ADD . /code/
- ---> 490ee31a791f
- Step 8/19 : RUN echo 'alias manage="python manage.py"' >> ~/.bashrc
- ---> Running in 011ed2b6cfd5
- Removing intermediate container 011ed2b6cfd5
- ---> 429b6cc4d99d
- Step 9/19 : RUN adduser --disabled-password --gecos '' django
- ---> Running in af1e3741d0b8
- Adding user `django' ...
- Adding new group `django' (1000) ...
- Adding new user `django' (1000) with group `django' ...
- Creating home directory `/home/django' ...
- Copying files from `/etc/skel' ...
- Removing intermediate container af1e3741d0b8
- ---> b0f03a875025
- Step 10/19 : RUN groupadd docker
- ---> Running in 10b9807d3613
- Removing intermediate container 10b9807d3613
- ---> e54205ae233e
- Step 11/19 : RUN usermod -aG docker django
- ---> Running in d8c64fd25bdd
- Removing intermediate container d8c64fd25bdd
- ---> fc7a79bee643
- Step 12/19 : RUN mkdir ~/scripts/
- ---> Running in de26dfd8af33
- Removing intermediate container de26dfd8af33
- ---> c6ce8410b948
- Step 13/19 : RUN chown -R django:django ~/
- ---> Running in 6ca5954fe12e
- Removing intermediate container 6ca5954fe12e
- ---> 8131da0f9e18
- Step 14/19 : RUN chown -R django:django ~/scripts/
- ---> Running in fc7811b8076e
- Removing intermediate container fc7811b8076e
- ---> 093ff738ae0b
- Step 15/19 : RUN chown -R django:django /code/
- ---> Running in 462f4bb49099
- Removing intermediate container 462f4bb49099
- ---> b8af50bece62
- Step 16/19 : ADD start.sh /home/django/scripts/
- ---> 9146597f1dfe
- Step 17/19 : ADD wait_for_postgres.sh /home/django/scripts/
- ---> 66bcc927541d
- Step 18/19 : RUN ["chmod", "+x", "/home/django/scripts/start.sh"]
- ---> Running in 5154e855bc22
- Removing intermediate container 5154e855bc22
- ---> 7fcfc6aead55
- Step 19/19 : RUN ["chmod", "+x", "/home/django/scripts/wait_for_postgres.sh"]
- ---> Running in 672fbeeb90cd
- Removing intermediate container 672fbeeb90cd
- ---> 0289bcfee1d3
- Successfully built 0289bcfee1d3
- Successfully tagged backend_web:latest
- Starting backend_db_1 ... done
- Starting backend_clickhouse_1 ... done
- Recreating backend_web_1 ... done
- Attaching to backend_db_1, backend_clickhouse_1, backend_web_1
- clickhouse_1 | Include not found: clickhouse_remote_servers
- clickhouse_1 | Include not found: clickhouse_compression
- clickhouse_1 | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
- clickhouse_1 | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
- clickhouse_1 | Include not found: networks
- db_1 |
- db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
- db_1 |
- db_1 | 2020-01-24 10:54:21.065 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
- db_1 | 2020-01-24 10:54:21.067 UTC [1] LOG: listening on IPv6 address "::", port 5432
- db_1 | 2020-01-24 10:54:21.074 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
- 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
- db_1 | 2020-01-24 10:54:21.168 UTC [1] LOG: database system is ready to accept connections
- web_1 | Postgres запустился - запускаю сервер
- clickhouse_1 | Include not found: clickhouse_remote_servers
- clickhouse_1 | Include not found: clickhouse_compression
- web_1 | Migrations for 'apimanager':
- web_1 | apimanager/migrations/0034_auto_20200124_1054.py
- web_1 | - Change Meta options on supportrequest
- web_1 | Operations to perform:
- web_1 | Apply all migrations: admin, apimanager, auth, authtoken, contenttypes, jet, sessions
- web_1 | Running migrations:
- db_1 | 2020-01-24 10:54:26.676 UTC [34] ERROR: could not create unique index "apimanager_user_email_10cb89e1_uniq"
- db_1 | 2020-01-24 10:54:26.676 UTC [34] DETAIL: Key (email)=(newluciocheg@gmail.com) is duplicated.
- 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")
- web_1 | Applying apimanager.0030_auto_20200117_1421...Traceback (most recent call last):
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
- web_1 | return self.cursor.execute(sql, params)
- web_1 | psycopg2.errors.UniqueViolation: could not create unique index "apimanager_user_email_10cb89e1_uniq"
- web_1 | DETAIL: Key (email)=(newluciocheg@gmail.com) is duplicated.
- web_1 |
- web_1 |
- web_1 | The above exception was the direct cause of the following exception:
- web_1 |
- web_1 | Traceback (most recent call last):
- web_1 | File "/code/manage.py", line 21, in <module>
- web_1 | main()
- web_1 | File "/code/manage.py", line 17, in main
- web_1 | execute_from_command_line(sys.argv)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
- web_1 | utility.execute()
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
- web_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
- web_1 | self.execute(*args, **cmd_options)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
- web_1 | output = self.handle(*args, **options)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped
- web_1 | res = handle_func(*args, **kwargs)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 233, in handle
- web_1 | fake_initial=fake_initial,
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 117, in migrate
- web_1 | state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
- web_1 | state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
- web_1 | state = migration.apply(state, schema_editor)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/migration.py", line 124, in apply
- web_1 | operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/migrations/operations/fields.py", line 249, in database_forwards
- web_1 | schema_editor.alter_field(from_model, from_field, to_field)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 565, in alter_field
- web_1 | old_db_params, new_db_params, strict)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/schema.py", line 149, in _alter_field
- web_1 | new_db_params, strict,
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 745, in _alter_field
- web_1 | self.execute(self._create_unique_sql(model, [new_field.column]))
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 142, in execute
- web_1 | cursor.execute(sql, params)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
- web_1 | return super().execute(sql, params)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
- web_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
- web_1 | return executor(sql, params, many, context)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
- web_1 | return self.cursor.execute(sql, params)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
- web_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
- web_1 | return self.cursor.execute(sql, params)
- web_1 | django.db.utils.IntegrityError: could not create unique index "apimanager_user_email_10cb89e1_uniq"
- web_1 | DETAIL: Key (email)=(newluciocheg@gmail.com) is duplicated.
- web_1 |
- db_1 | 2020-01-24 10:54:28.510 UTC [35] ERROR: column "name" of relation "apimanager_apimethod" does not exist at character 35
- 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
- web_1 | Traceback (most recent call last):
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
- web_1 | return self.cursor.execute(sql, params)
- web_1 | psycopg2.errors.UndefinedColumn: column "name" of relation "apimanager_apimethod" does not exist
- web_1 | LINE 1: UPDATE "apimanager_apimethod" SET "name" = 'Логин', "path" =...
- web_1 | ^
- web_1 |
- web_1 |
- web_1 | The above exception was the direct cause of the following exception:
- web_1 |
- web_1 | Traceback (most recent call last):
- web_1 | File "/code/manage.py", line 21, in <module>
- web_1 | main()
- web_1 | File "/code/manage.py", line 17, in main
- web_1 | execute_from_command_line(sys.argv)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
- web_1 | utility.execute()
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
- web_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 328, in run_from_argv
- web_1 | self.execute(*args, **cmd_options)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 369, in execute
- web_1 | output = self.handle(*args, **options)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
- web_1 | self.loaddata(fixture_labels)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 114, in loaddata
- web_1 | self.load_label(fixture_label)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 181, in load_label
- web_1 | obj.save(using=self.using)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/core/serializers/base.py", line 223, in save
- web_1 | models.Model.save_base(self.object, using=using, raw=True, **kwargs)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 784, in save_base
- web_1 | force_update, using, update_fields,
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 864, in _save_table
- web_1 | forced_update)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 916, in _do_update
- web_1 | return filtered._update(values) > 0
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 771, in _update
- web_1 | return query.get_compiler(self.db).execute_sql(CURSOR)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1485, in execute_sql
- web_1 | cursor = super().execute_sql(result_type)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1137, in execute_sql
- web_1 | cursor.execute(sql, params)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
- web_1 | return super().execute(sql, params)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
- web_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
- web_1 | return executor(sql, params, many, context)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
- web_1 | return self.cursor.execute(sql, params)
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
- web_1 | raise dj_exc_value.with_traceback(traceback) from exc_value
- web_1 | File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
- web_1 | return self.cursor.execute(sql, params)
- 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
- web_1 | LINE 1: UPDATE "apimanager_apimethod" SET "name" = 'Логин', "path" =...
- web_1 | ^
- web_1 |
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- web_1 |
- web_1 | 454 static files copied to '/static'.
- web_1 | Watching for file changes with StatReloader
- web_1 | Performing system checks...
- web_1 |
- web_1 | System check identified no issues (0 silenced).
- web_1 |
- web_1 | You have 7 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): apimanager, jet.
- web_1 | Run 'python manage.py migrate' to apply them.
- web_1 | January 24, 2020 - 10:54:33
- web_1 | Django version 3.0.1, using settings 'settings.settings'
- web_1 | Starting development server at http://0.0.0.0:8000/
- web_1 | Quit the server with CONTROL-C.
- web_1 | [24/Jan/2020 10:54:52] "POST /user/login/ HTTP/1.1" 200 110
- db_1 | 2020-01-24 10:54:56.432 UTC [38] ERROR: relation "apimanager_supportrequest" does not exist at character 13
- 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"
- web_1 | relation "apimanager_supportrequest" does not exist
- web_1 | LINE 1: INSERT INTO "apimanager_supportrequest" ("title", "descripti...
- web_1 | ^
- web_1 |
- web_1 | Internal Server Error: /support/create/
- 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