Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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/
- ---> 27d51889d6d2
- Step 8/19 : RUN echo 'alias manage="python manage.py"' >> ~/.bashrc
- ---> Running in 3a2fc97e2e7e
- Removing intermediate container 3a2fc97e2e7e
- ---> a2f88613b182
- Step 9/19 : RUN adduser --disabled-password --gecos '' django
- ---> Running in df5e984d1a62
- 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 df5e984d1a62
- ---> 5225c18672b4
- Step 10/19 : RUN groupadd docker
- ---> Running in 8cdf7cef6858
- Removing intermediate container 8cdf7cef6858
- ---> e0ecb3748ccc
- Step 11/19 : RUN usermod -aG docker django
- ---> Running in 2821a7b904ba
- Removing intermediate container 2821a7b904ba
- ---> 5fd92f6fca11
- Step 12/19 : RUN mkdir ~/scripts/
- ---> Running in 513e3a381590
- Removing intermediate container 513e3a381590
- ---> 2d06aabf3d06
- Step 13/19 : RUN chown -R django:django ~/
- ---> Running in db7a3ec7a44e
- Removing intermediate container db7a3ec7a44e
- ---> 9afad6a40239
- Step 14/19 : RUN chown -R django:django ~/scripts/
- ---> Running in 7719c501e2c4
- Removing intermediate container 7719c501e2c4
- ---> 35d61131a451
- Step 15/19 : RUN chown -R django:django /code/
- ---> Running in 4cb55797c833
- Removing intermediate container 4cb55797c833
- ---> b65645e53db6
- Step 16/19 : ADD start.sh /home/django/scripts/
- ---> 71589291c586
- Step 17/19 : ADD wait_for_postgres.sh /home/django/scripts/
- ---> 5f422591a8db
- Step 18/19 : RUN ["chmod", "+x", "/home/django/scripts/start.sh"]
- ---> Running in db288a15e588
- Removing intermediate container db288a15e588
- ---> 0f930a501687
- Step 19/19 : RUN ["chmod", "+x", "/home/django/scripts/wait_for_postgres.sh"]
- ---> Running in 3c9d6e380899
- Removing intermediate container 3c9d6e380899
- ---> 06612e05d30d
- Successfully built 06612e05d30d
- 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
- db_1 |
- db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
- db_1 |
- 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
- db_1 | 2020-01-24 11:00:37.139 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
- db_1 | 2020-01-24 11:00:37.139 UTC [1] LOG: listening on IPv6 address "::", port 5432
- clickhouse_1 | Include not found: networks
- db_1 | 2020-01-24 11:00:37.144 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
- 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
- db_1 | 2020-01-24 11:00:37.208 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_1100.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 11:00:41.138 UTC [33] ERROR: could not create unique index "apimanager_user_email_10cb89e1_uniq"
- db_1 | 2020-01-24 11:00:41.138 UTC [33] DETAIL: Key (email)=(newluciocheg@gmail.com) is duplicated.
- 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")
- 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 11:00:42.489 UTC [34] ERROR: column "name" of relation "apimanager_apimethod" does not exist at character 35
- 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
- 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 - 11:00:45
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement