TASK [edxapp : migrate] 报错,修改了ssh允许密码登录还是无效


#1
failed: [localhost] (item=lms) => {"changed": true, "cmd": ["/edx/bin/edxapp-migrate-lms"], "delta": "0:00:02.076235", "end": "2017-03-06 16:06:19.846067", "failed": true, "item": "lms", "rc": 1, "start": "2017-03-06 16:06:17.769832", "stderr": "2017-03-06 03:06:19,671 INFO 30393 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125\nTraceback (most recent call last):\n  File \"manage.py\", line 116, in <module>\n    execute_from_command_line([sys.argv[0]] + django_args)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 354, in execute_from_command_line\n    utility.execute()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 346, in execute\n    self.fetch_command(subcommand).run_from_argv(self.argv)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py\", line 394, in run_from_argv\n    self.execute(*args, **cmd_options)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py\", line 444, in execute\n    self.check()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py\", line 482, in check\n    include_deployment_checks=include_deployment_checks,\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/registry.py\", line 72, in run_checks\n    new_errors = check(app_configs=app_configs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/model_checks.py\", line 28, in check_all_models\n    errors.extend(model.check(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py\", line 1205, in check\n    errors.extend(cls._check_fields(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py\", line 1282, in _check_fields\n    errors.extend(field.check(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 934, in check\n    errors = super(AutoField, self).check(**kwargs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 207, in check\n    errors.extend(self._check_backend_specific_checks(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 306, in _check_backend_specific_checks\n    return connection.validation.check_field(self, **kwargs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py\", line 18, in check_field\n    field_type = field.db_type(connection)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 614, in db_type\n    return connection.data_types[self.get_internal_type()] % data\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/__init__.py\", line 36, in __getattr__\n    return getattr(connections[DEFAULT_DB_ALIAS], item)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py\", line 59, in __get__\n    res = instance.__dict__[self.name] = self.func(instance)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 196, in data_types\n    if self.features.supports_microsecond_precision:\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py\", line 59, in __get__\n    res = instance.__dict__[self.name] = self.func(instance)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/features.py\", line 52, in supports_microsecond_precision\n    return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py\", line 59, in __get__\n    res = instance.__dict__[self.name] = self.func(instance)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 371, in mysql_version\n    with self.temporary_connection():\n  File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\n    return self.gen.next()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 462, in temporary_connection\n    cursor = self.cursor()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 164, in cursor\n    cursor = self.make_cursor(self._cursor())\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 135, in _cursor\n    self.ensure_connection()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 130, in ensure_connection\n    self.connect()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/utils.py\", line 98, in __exit__\n    six.reraise(dj_exc_type, dj_exc_value, traceback)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 130, in ensure_connection\n    self.connect()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 119, in connect\n    self.connection = self.get_new_connection(conn_params)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 276, in get_new_connection\n    conn = Database.connect(**conn_params)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/__init__.py\", line 81, in Connect\n    return Connection(*args, **kwargs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/connections.py\", line 193, in __init__\n    super(Connection, self).__init__(*args, **kwargs2)\ndjango.db.utils.OperationalError: (1045, \"Access denied for user 'migrate'@'localhost' (using password: YES)\")", "stdout": "", "stdout_lines": [], "warnings": []}
failed: [localhost] (item=cms) => {"changed": true, "cmd": ["/edx/bin/edxapp-migrate-cms"], "delta": "0:00:02.341407", "end": "2017-03-06 16:06:22.260825", "failed": true, "item": "cms", "rc": 1, "start": "2017-03-06 16:06:19.919418", "stderr": "2017-03-06 03:06:22,032 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:49: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomer doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n  class EnterpriseCustomer(TimeStampedModel):\n\n2017-03-06 03:06:22,034 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/simple_history/models.py:123: RemovedInDjango19Warning: Model class enterprise.models.HistoricalEnterpriseCustomer doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n  type(str(name), self.bases, attrs))\n\n2017-03-06 03:06:22,035 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:219: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomerUser doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n  class EnterpriseCustomerUser(TimeStampedModel):\n\n2017-03-06 03:06:22,036 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:278: RemovedInDjango19Warning: Model class enterprise.models.PendingEnterpriseCustomerUser doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n  class PendingEnterpriseCustomerUser(TimeStampedModel):\n\n2017-03-06 03:06:22,037 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:327: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomerBrandingConfiguration doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n  class EnterpriseCustomerBrandingConfiguration(TimeStampedModel):\n\n2017-03-06 03:06:22,038 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:382: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomerIdentityProvider doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n  class EnterpriseCustomerIdentityProvider(TimeStampedModel):\n\n2017-03-06 03:06:22,040 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/simple_history/models.py:123: RemovedInDjango19Warning: Model class enterprise.models.HistoricalUserDataSharingConsentAudit doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n  type(str(name), self.bases, attrs))\n\n2017-03-06 03:06:22,109 INFO 30440 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125\nTraceback (most recent call last):\n  File \"manage.py\", line 116, in <module>\n    execute_from_command_line([sys.argv[0]] + django_args)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 354, in execute_from_command_line\n    utility.execute()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 346, in execute\n    self.fetch_command(subcommand).run_from_argv(self.argv)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py\", line 394, in run_from_argv\n    self.execute(*args, **cmd_options)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py\", line 444, in execute\n    self.check()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py\", line 482, in check\n    include_deployment_checks=include_deployment_checks,\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/registry.py\", line 72, in run_checks\n    new_errors = check(app_configs=app_configs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/model_checks.py\", line 28, in check_all_models\n    errors.extend(model.check(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py\", line 1205, in check\n    errors.extend(cls._check_fields(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py\", line 1282, in _check_fields\n    errors.extend(field.check(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 934, in check\n    errors = super(AutoField, self).check(**kwargs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 207, in check\n    errors.extend(self._check_backend_specific_checks(**kwargs))\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 306, in _check_backend_specific_checks\n    return connection.validation.check_field(self, **kwargs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py\", line 18, in check_field\n    field_type = field.db_type(connection)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 614, in db_type\n    return connection.data_types[self.get_internal_type()] % data\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/__init__.py\", line 36, in __getattr__\n    return getattr(connections[DEFAULT_DB_ALIAS], item)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py\", line 59, in __get__\n    res = instance.__dict__[self.name] = self.func(instance)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 196, in data_types\n    if self.features.supports_microsecond_precision:\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py\", line 59, in __get__\n    res = instance.__dict__[self.name] = self.func(instance)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/features.py\", line 52, in supports_microsecond_precision\n    return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py\", line 59, in __get__\n    res = instance.__dict__[self.name] = self.func(instance)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 371, in mysql_version\n    with self.temporary_connection():\n  File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\n    return self.gen.next()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 462, in temporary_connection\n    cursor = self.cursor()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 164, in cursor\n    cursor = self.make_cursor(self._cursor())\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 135, in _cursor\n    self.ensure_connection()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 130, in ensure_connection\n    self.connect()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/utils.py\", line 98, in __exit__\n    six.reraise(dj_exc_type, dj_exc_value, traceback)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 130, in ensure_connection\n    self.connect()\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py\", line 119, in connect\n    self.connection = self.get_new_connection(conn_params)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py\", line 276, in get_new_connection\n    conn = Database.connect(**conn_params)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/__init__.py\", line 81, in Connect\n    return Connection(*args, **kwargs)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/connections.py\", line 193, in __init__\n    super(Connection, self).__init__(*args, **kwargs2)\ndjango.db.utils.OperationalError: (1045, \"Access denied for user 'migrate'@'localhost' (using password: YES)\")", "stdout": "", "stdout_lines": [], "warnings": []}

尝试修改了允许密码登录还是无效,是哪里出现问题了?


#2

看到这个报错了


#3

TASK [edxapp : migrate] ********************************************************
failed: [localhost] (item=lms) => {“changed”: true, “cmd”: ["/edx/bin/edxapp-migrate-lms"], “delta”: “0:00:02.076235”, “end”: “2017-03-06 16:06:19.846067”, “failed”: true, “item”: “lms”, “rc”: 1, “start”: “2017-03-06 16:06:17.769832”, “stderr”: “2017-03-06 03:06:19,671 INFO 30393 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125\nTraceback (most recent call last):\n File “manage.py”, line 116, in \n execute_from_command_line([sys.argv[0]] + django_args)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/init.py”, line 354, in execute_from_command_line\n utility.execute()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/init.py”, line 346, in execute\n self.fetch_command(subcommand).run_from_argv(self.argv)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py”, line 394, in run_from_argv\n self.execute(*args, **cmd_options)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py”, line 444, in execute\n self.check()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py”, line 482, in check\n include_deployment_checks=include_deployment_checks,\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/registry.py”, line 72, in run_checks\n new_errors = check(app_configs=app_configs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/model_checks.py”, line 28, in check_all_models\n errors.extend(model.check(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py”, line 1205, in check\n errors.extend(cls._check_fields(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py”, line 1282, in _check_fields\n errors.extend(field.check(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 934, in check\n errors = super(AutoField, self).check(**kwargs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 207, in check\n errors.extend(self._check_backend_specific_checks(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 306, in _check_backend_specific_checks\n return connection.validation.check_field(self, **kwargs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py”, line 18, in check_field\n field_type = field.db_type(connection)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 614, in db_type\n return connection.data_types[self.get_internal_type()] % data\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/init.py”, line 36, in getattr\n return getattr(connections[DEFAULT_DB_ALIAS], item)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 59, in get\n res = instance.dict[self.name] = self.func(instance)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py”, line 196, in data_types\n if self.features.supports_microsecond_precision:\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 59, in get\n res = instance.dict[self.name] = self.func(instance)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/features.py”, line 52, in supports_microsecond_precision\n return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 59, in get\n res = instance.dict[self.name] = self.func(instance)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py”, line 371, in mysql_version\n with self.temporary_connection():\n File “/usr/lib/python2.7/contextlib.py”, line 17, in enter\n return self.gen.next()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 462, in temporary_connection\n cursor = self.cursor()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 164, in cursor\n cursor = self.make_cursor(self._cursor())\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 135, in _cursor\n self.ensure_connection()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 130, in ensure_connection\n self.connect()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/utils.py”, line 98, in exit\n six.reraise(dj_exc_type, dj_exc_value, traceback)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 130, in ensure_connection\n self.connect()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 119, in connect\n self.connection = self.get_new_connection(conn_params)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py”, line 276, in get_new_connection\n conn = Database.connect(**conn_params)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect\n return Connection(*args, **kwargs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 193, in init\n super(Connection, self).init(*args, **kwargs2)\ndjango.db.utils.OperationalError: (1045, “Access denied for user ‘migrate’@‘localhost’ (using password: YES)”)”, “stdout”: “”, “stdout_lines”: [], “warnings”: []}
failed: [localhost] (item=cms) => {“changed”: true, “cmd”: ["/edx/bin/edxapp-migrate-cms"], “delta”: “0:00:02.341407”, “end”: “2017-03-06 16:06:22.260825”, “failed”: true, “item”: “cms”, “rc”: 1, “start”: “2017-03-06 16:06:19.919418”, “stderr”: “2017-03-06 03:06:22,032 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:49: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomer doesn’t declare an explicit app_label and either isn’t in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n class EnterpriseCustomer(TimeStampedModel):\n\n2017-03-06 03:06:22,034 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/simple_history/models.py:123: RemovedInDjango19Warning: Model class enterprise.models.HistoricalEnterpriseCustomer doesn’t declare an explicit app_label and either isn’t in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n type(str(name), self.bases, attrs))\n\n2017-03-06 03:06:22,035 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:219: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomerUser doesn’t declare an explicit app_label and either isn’t in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n class EnterpriseCustomerUser(TimeStampedModel):\n\n2017-03-06 03:06:22,036 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:278: RemovedInDjango19Warning: Model class enterprise.models.PendingEnterpriseCustomerUser doesn’t declare an explicit app_label and either isn’t in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n class PendingEnterpriseCustomerUser(TimeStampedModel):\n\n2017-03-06 03:06:22,037 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:327: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomerBrandingConfiguration doesn’t declare an explicit app_label and either isn’t in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n class EnterpriseCustomerBrandingConfiguration(TimeStampedModel):\n\n2017-03-06 03:06:22,038 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/enterprise/models.py:382: RemovedInDjango19Warning: Model class enterprise.models.EnterpriseCustomerIdentityProvider doesn’t declare an explicit app_label and either isn’t in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n class EnterpriseCustomerIdentityProvider(TimeStampedModel):\n\n2017-03-06 03:06:22,040 WARNING 30440 [py.warnings] base.py:116 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/simple_history/models.py:123: RemovedInDjango19Warning: Model class enterprise.models.HistoricalUserDataSharingConsentAudit doesn’t declare an explicit app_label and either isn’t in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.\n type(str(name), self.bases, attrs))\n\n2017-03-06 03:06:22,109 INFO 30440 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125\nTraceback (most recent call last):\n File “manage.py”, line 116, in \n execute_from_command_line([sys.argv[0]] + django_args)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/init.py”, line 354, in execute_from_command_line\n utility.execute()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/init.py”, line 346, in execute\n self.fetch_command(subcommand).run_from_argv(self.argv)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py”, line 394, in run_from_argv\n self.execute(*args, **cmd_options)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py”, line 444, in execute\n self.check()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py”, line 482, in check\n include_deployment_checks=include_deployment_checks,\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/registry.py”, line 72, in run_checks\n new_errors = check(app_configs=app_configs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/checks/model_checks.py”, line 28, in check_all_models\n errors.extend(model.check(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py”, line 1205, in check\n errors.extend(cls._check_fields(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py”, line 1282, in _check_fields\n errors.extend(field.check(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 934, in check\n errors = super(AutoField, self).check(**kwargs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 207, in check\n errors.extend(self._check_backend_specific_checks(**kwargs))\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 306, in _check_backend_specific_checks\n return connection.validation.check_field(self, **kwargs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py”, line 18, in check_field\n field_type = field.db_type(connection)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 614, in db_type\n return connection.data_types[self.get_internal_type()] % data\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/init.py”, line 36, in getattr\n return getattr(connections[DEFAULT_DB_ALIAS], item)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 59, in get\n res = instance.dict[self.name] = self.func(instance)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py”, line 196, in data_types\n if self.features.supports_microsecond_precision:\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 59, in get\n res = instance.dict[self.name] = self.func(instance)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/features.py”, line 52, in supports_microsecond_precision\n return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 59, in get\n res = instance.dict[self.name] = self.func(instance)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py”, line 371, in mysql_version\n with self.temporary_connection():\n File “/usr/lib/python2.7/contextlib.py”, line 17, in enter\n return self.gen.next()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 462, in temporary_connection\n cursor = self.cursor()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 164, in cursor\n cursor = self.make_cursor(self._cursor())\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 135, in _cursor\n self.ensure_connection()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 130, in ensure_connection\n self.connect()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/utils.py”, line 98, in exit\n six.reraise(dj_exc_type, dj_exc_value, traceback)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 130, in ensure_connection\n self.connect()\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/base/base.py”, line 119, in connect\n self.connection = self.get_new_connection(conn_params)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py”, line 276, in get_new_connection\n conn = Database.connect(**conn_params)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect\n return Connection(*args, **kwargs)\n File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 193, in init\n super(Connection, self).init(*args, **kwargs2)\ndjango.db.utils.OperationalError: (1045, “Access denied for user ‘migrate’@‘localhost’ (using password: YES)”)”, “stdout”: “”, “stdout_lines”: [], “warnings”: []}


#4

修改了
这个目录下 /etc/ssh/sshd_config:

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes
然后service ssh restart 了

#5

最后是如何解决的?我看到是mysql不能访问,你修改了ssh和这个无关。


#6

我看也是MySQL的问题我从新加源后从look for MySQL 5.6 这一步开始后面就没报错了