2021-11-19 14:23:00 Collect static files
--
Fri, Nov 19 2021 2:23:00 pm | 2021-11-19 14:23:00 Collect static files done
Fri, Nov 19 2021 2:23:00 pm | 2021-11-19 14:23:00 Check database structure change ...
Fri, Nov 19 2021 2:23:00 pm | 2021-11-19 14:23:00 Migrate model change to database ...
Fri, Nov 19 2021 2:23:05 pm | 2021-11-19 14:23:05 [common DEBUG] Start subscribe for expire orgs mapping from memory
Fri, Nov 19 2021 2:23:05 pm | 2021-11-19 14:23:05 [node_assets_mapping DEBUG] Start subscribe for expire node assets id mapping from memory
Fri, Nov 19 2021 2:23:05 pm | 2021-11-19 14:23:05 [models DEBUG] Refresh setting: TERMINAL_HOST_KEY
Fri, Nov 19 2021 2:23:05 pm | 2021-11-19 14:23:05 [signals_handler DEBUG] Start subscribe setting change
Fri, Nov 19 2021 2:23:05 pm |
Fri, Nov 19 2021 2:23:05 pm | 477 static files copied to '/opt/jumpserver/data/static'.
Fri, Nov 19 2021 2:23:07 pm | Operations to perform:
Fri, Nov 19 2021 2:23:07 pm | Apply all migrations: acls, admin, applications, assets, audits, auth, authentication, captcha, common, contenttypes, django_cas_ng, django_celery_beat, jms_oidc_rp, notifications, ops, orgs, perms, sessions, settings, terminal, tickets, users
Fri, Nov 19 2021 2:23:07 pm | Running migrations:
Fri, Nov 19 2021 2:23:07 pm | Traceback (most recent call last):
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
Fri, Nov 19 2021 2:23:07 pm | return self.cursor.execute(sql, params)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute
Fri, Nov 19 2021 2:23:07 pm | return self.cursor.execute(query, args)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
Fri, Nov 19 2021 2:23:07 pm | res = self._query(query)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
Fri, Nov 19 2021 2:23:07 pm | db.query(q)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query
Fri, Nov 19 2021 2:23:07 pm | _mysql.connection.query(self, query)
Fri, Nov 19 2021 2:23:07 pm | MySQLdb._exceptions.OperationalError: (1051, "Unknown table 'jumpserver.assets_asset_protocols'")
Fri, Nov 19 2021 2:23:07 pm |
Fri, Nov 19 2021 2:23:07 pm | The above exception was the direct cause of the following exception:
Fri, Nov 19 2021 2:23:07 pm |
Fri, Nov 19 2021 2:23:07 pm | Traceback (most recent call last):
Fri, Nov 19 2021 2:23:07 pm | File "manage.py", line 28, in <module>
Fri, Nov 19 2021 2:23:07 pm | execute_from_command_line(sys.argv)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
Fri, Nov 19 2021 2:23:07 pm | utility.execute()
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
Fri, Nov 19 2021 2:23:07 pm | self.fetch_command(subcommand).run_from_argv(self.argv)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
Fri, Nov 19 2021 2:23:07 pm | self.execute(*args, **cmd_options)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
Fri, Nov 19 2021 2:23:07 pm | output = self.handle(*args, **options)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped
Fri, Nov 19 2021 2:23:07 pm | res = handle_func(*args, **kwargs)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 243, in handle
Fri, Nov 19 2021 2:23:07 pm | post_migrate_state = executor.migrate(
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 117, in migrate
Fri, Nov 19 2021 2:23:07 pm | state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
Fri, Nov 19 2021 2:23:07 pm | state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
Fri, Nov 19 2021 2:23:07 pm | state = migration.apply(state, schema_editor)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/migration.py", line 124, in apply
Fri, Nov 19 2021 2:23:07 pm | operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/migrations/operations/fields.py", line 166, in database_forwards
Fri, Nov 19 2021 2:23:07 pm | schema_editor.remove_field(from_model, from_model._meta.get_field(self.name))
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 510, in remove_field
Fri, Nov 19 2021 2:23:07 pm | return self.delete_model(field.remote_field.through)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 342, in delete_model
Fri, Nov 19 2021 2:23:07 pm | self.execute(self.sql_delete_table % {
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 142, in execute
Fri, Nov 19 2021 2:23:07 pm | cursor.execute(sql, params)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
Fri, Nov 19 2021 2:23:07 pm | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
Fri, Nov 19 2021 2:23:07 pm | return executor(sql, params, many, context)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
Fri, Nov 19 2021 2:23:07 pm | return self.cursor.execute(sql, params)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
Fri, Nov 19 2021 2:23:07 pm | raise dj_exc_value.with_traceback(traceback) from exc_value
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
Fri, Nov 19 2021 2:23:07 pm | return self.cursor.execute(sql, params)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute
Fri, Nov 19 2021 2:23:07 pm | return self.cursor.execute(query, args)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
Fri, Nov 19 2021 2:23:07 pm | res = self._query(query)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
Fri, Nov 19 2021 2:23:07 pm | db.query(q)
Fri, Nov 19 2021 2:23:07 pm | File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query
Fri, Nov 19 2021 2:23:07 pm | _mysql.connection.query(self, query)
Fri, Nov 19 2021 2:23:07 pm | django.db.utils.OperationalError: (1051, "Unknown table 'jumpserver.assets_asset_protocols'")
Fri, Nov 19 2021 2:23:08 pm | 2021-11-19 14:23:08 Perform migrate failed, exit
Fri, Nov 19 2021 2:23:08 pm | Applying assets.0034_auto_20190705_1348...