{"action":"opened","issue":{"url":"https://api.github.com/repos/blackholll/loonflow/issues/68","repository_url":"https://api.github.com/repos/blackholll/loonflow","labels_url":"https://api.github.com/repos/blackholll/loonflow/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/blackholll/loonflow/issues/68/comments","events_url":"https://api.github.com/repos/blackholll/loonflow/issues/68/events","html_url":"https://github.com/blackholll/loonflow/issues/68","id":514369516,"node_id":"MDU6SXNzdWU1MTQzNjk1MTY=","number":68,"title":"数据库初始化报错","user":{"login":"Tewrence","id":47233426,"node_id":"MDQ6VXNlcjQ3MjMzNDI2","avatar_url":"https://avatars3.githubusercontent.com/u/47233426?v=4","gravatar_id":"","url":"https://api.github.com/users/Tewrence","html_url":"https://github.com/Tewrence","followers_url":"https://api.github.com/users/Tewrence/followers","following_url":"https://api.github.com/users/Tewrence/following{/other_user}","gists_url":"https://api.github.com/users/Tewrence/gists{/gist_id}","starred_url":"https://api.github.com/users/Tewrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tewrence/subscriptions","organizations_url":"https://api.github.com/users/Tewrence/orgs","repos_url":"https://api.github.com/users/Tewrence/repos","events_url":"https://api.github.com/users/Tewrence/events{/privacy}","received_events_url":"https://api.github.com/users/Tewrence/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-30T03:17:27Z","updated_at":"2019-10-30T03:17:27Z","closed_at":null,"author_association":"NONE","body":"在执行python manage.py migrate的时候，出现如下报错\r\n\r\n(loonflow) ➜  loonflow git:(master) ✗ python manage.py migrate \r\nOperations to perform:\r\n  Apply all migrations: account, admin, auth, contenttypes, sessions, ticket, workflow\r\nRunning migrations:\r\n  Applying account.0001_initial... OK\r\n  Applying contenttypes.0001_initial... OK\r\n  Applying admin.0001_initial... OK\r\n  Applying admin.0002_logentry_remove_auto_add... OK\r\n  Applying contenttypes.0002_remove_content_type_name... OK\r\n  Applying auth.0001_initial... OK\r\n  Applying auth.0002_alter_permission_name_max_length... OK\r\n  Applying auth.0003_alter_user_email_max_length... OK\r\n  Applying auth.0004_alter_user_username_opts... OK\r\n  Applying auth.0005_alter_user_last_login_null... OK\r\n  Applying auth.0006_require_contenttypes_0002... OK\r\n  Applying auth.0007_alter_validators_add_error_messages... OK\r\n  Applying auth.0008_alter_user_username_max_length... OK\r\n  Applying auth.0009_alter_user_last_name_max_length... OK\r\n  Applying sessions.0001_initial... OK\r\n  Applying ticket.0001_initial... OK\r\n  Applying workflow.0001_initial... OK\r\nTraceback (most recent call last):\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/utils.py\", line 85, in _execute\r\n    return self.cursor.execute(sql, params)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/mysql/base.py\", line 71, in execute\r\n    return self.cursor.execute(query, args)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 250, in execute\r\n    self.errorhandler(self, exc, value)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/connections.py\", line 50, in defaulterrorhandler\r\n    raise errorvalue\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 247, in execute\r\n    res = self._query(query)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 411, in _query\r\n    rowcount = self._do_query(q)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 374, in _do_query\r\n    db.query(q)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/connections.py\", line 277, in query\r\n    _mysql.connection.query(self, query)\r\n_mysql_exceptions.OperationalError: (1366, \"Incorrect string value: '\\\\xE9\\\\x83\\\\xA8\\\\xE9\\\\x97\\\\xA8' for column 'name' at row 1\")\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 23, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/core/management/__init__.py\", line 371, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/core/management/__init__.py\", line 365, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/core/management/base.py\", line 288, in run_from_argv\r\n    self.execute(*args, **cmd_options)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/core/management/base.py\", line 335, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/core/management/commands/migrate.py\", line 223, in handle\r\n    self.verbosity, self.interactive, connection.alias, apps=post_migrate_apps, plan=plan,\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/core/management/sql.py\", line 51, in emit_post_migrate_signal\r\n    **kwargs\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/dispatch/dispatcher.py\", line 178, in send\r\n    for receiver in self._live_receivers(sender)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/dispatch/dispatcher.py\", line 178, in <listcomp>\r\n    for receiver in self._live_receivers(sender)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/contrib/auth/management/__init__.py\", line 79, in create_permissions\r\n    Permission.objects.using(using).bulk_create(perms)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/models/query.py\", line 466, in bulk_create\r\n    ids = self._batched_insert(objs_without_pk, fields, batch_size)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/models/query.py\", line 1151, in _batched_insert\r\n    self._insert(item, fields=fields, using=self.db)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/models/query.py\", line 1128, in _insert\r\n    return query.get_compiler(using=using).execute_sql(return_id)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/models/sql/compiler.py\", line 1285, in execute_sql\r\n    cursor.execute(sql, params)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/utils.py\", line 100, in execute\r\n    return super().execute(sql, params)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/utils.py\", line 68, in execute\r\n    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/utils.py\", line 77, in _execute_with_wrappers\r\n    return executor(sql, params, many, context)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/utils.py\", line 85, in _execute\r\n    return self.cursor.execute(sql, params)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/utils.py\", line 89, in __exit__\r\n    raise dj_exc_value.with_traceback(traceback) from exc_value\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/utils.py\", line 85, in _execute\r\n    return self.cursor.execute(sql, params)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/django/db/backends/mysql/base.py\", line 71, in execute\r\n    return self.cursor.execute(query, args)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 250, in execute\r\n    self.errorhandler(self, exc, value)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/connections.py\", line 50, in defaulterrorhandler\r\n    raise errorvalue\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 247, in execute\r\n    res = self._query(query)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 411, in _query\r\n    rowcount = self._do_query(q)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/cursors.py\", line 374, in _do_query\r\n    db.query(q)\r\n  File \"/Users/zhaolei/envs/loonflow/lib/python3.5/site-packages/MySQLdb/connections.py\", line 277, in query\r\n    _mysql.connection.query(self, query)\r\ndjango.db.utils.OperationalError: (1366, \"Incorrect string value: '\\\\xE9\\\\x83\\\\xA8\\\\xE9\\\\x97\\\\xA8' for column 'name' at row 1\")\r\n"}}
{"actor":{"display_login":"Tewrence"}}