Skip to content

Instantly share code, notes, and snippets.

@ariestiyansyah
Created June 18, 2016 10:31
Show Gist options
  • Save ariestiyansyah/291e20418907e6c64ee2dc6ed125a0f5 to your computer and use it in GitHub Desktop.
Save ariestiyansyah/291e20418907e6c64ee2dc6ed125a0f5 to your computer and use it in GitHub Desktop.
Open edX Error
TASK: [edxapp | migrate] ******************************************************
failed: [localhost] => (item=lms) => {"changed": true, "cmd": ["/edx/bin/edxapp-migrate-lms"], "delta": "0:00:03.528950", "end": "2016-06-17 17:23:11.778722", "item": "lms", "rc": 1, "start": "2016-06-17 17:23:08.249772", "warnings": []}
stderr: warning: unable to access '/root/.config/git/attributes': Permission denied
2016-06-17 13:23:10,390 INFO 15779 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Traceback (most recent call last):
File "manage.py", line 116, in <module>
execute_from_command_line([sys.argv[0]] + django_args)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
ignore_ghosts = ignore_ghosts,
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/__init__.py", line 200, in migrate_app
applied_all = check_migration_histories(applied_all, delete_ghosts, ignore_ghosts)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/__init__.py", line 95, in check_migration_histories
raise exceptions.GhostMigrations(ghosts)
south.exceptions.GhostMigrations:
! These migrations are in the database but not on disk:
<course_overviews: 0004_auto__add_field_courseoverview_enrollment_start__add_field_courseoverv>
! I'm not trusting myself; either fix this yourself by fiddling
! with the south_migrationhistory table, or pass --delete-ghost-migrations
! to South to have it delete ALL of these records (this may not be good).
failed: [localhost] => (item=cms) => {"changed": true, "cmd": ["/edx/bin/edxapp-migrate-cms"], "delta": "0:00:03.650117", "end": "2016-06-17 17:23:15.498487", "item": "cms", "rc": 1, "start": "2016-06-17 17:23:11.848370", "warnings": []}
stderr: 2016-06-17 13:23:14,955 INFO 15812 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Traceback (most recent call last):
File "manage.py", line 116, in <module>
execute_from_command_line([sys.argv[0]] + django_args)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
ignore_ghosts = ignore_ghosts,
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/__init__.py", line 200, in migrate_app
applied_all = check_migration_histories(applied_all, delete_ghosts, ignore_ghosts)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/__init__.py", line 95, in check_migration_histories
raise exceptions.GhostMigrations(ghosts)
south.exceptions.GhostMigrations:
! These migrations are in the database but not on disk:
<course_overviews: 0004_auto__add_field_courseoverview_enrollment_start__add_field_courseoverv>
! I'm not trusting myself; either fix this yourself by fiddling
! with the south_migrationhistory table, or pass --delete-ghost-migrations
! to South to have it delete ALL of these records (this may not be good).
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
INFO:ansible.callback_plugins.datadog_tasks_timing:edxapp | install python requirements ------------------------------------------- 1331.50s
INFO:ansible.callback_plugins.datadog_tasks_timing:edxapp | checkout edx-platform repo into {{ edxapp_code_dir }} ------------------ 56.37s
INFO:ansible.callback_plugins.datadog_tasks_timing:rbenv | clone ruby-build repo --------------------------------------------------- 11.73s
INFO:ansible.callback_plugins.datadog_tasks_timing:rbenv | install bundler --------------------------------------------------------- 10.55s
INFO:ansible.callback_plugins.datadog_tasks_timing:rbenv | update rbenv repo -------------------------------------------------------- 9.42s
INFO:ansible.callback_plugins.datadog_tasks_timing:edxapp_common | Install system packages ------------------------------------------ 8.59s
INFO:ansible.callback_plugins.datadog_tasks_timing:edxapp | install system packages on which LMS and CMS rely ----------------------- 8.19s
INFO:ansible.callback_plugins.datadog_tasks_timing:server_utils | Install system packages ------------------------------------------- 8.12s
INFO:ansible.callback_plugins.datadog_tasks_timing:common | Install role-independent useful system packages ------------------------- 7.73s
INFO:ansible.callback_plugins.datadog_tasks_timing:edxapp | migrate ----------------------------------------------------------------- 7.32s
INFO:ansible.callback_plugins.datadog_tasks_timing:
Playbook vagrant-fullstack-delta finished: Fri Jun 17 17:23:15 2016, 141 total tasks. 0:24:59 elapsed.
to retry, use: --limit @/home/ubuntu/vagrant-fullstack-delta.retry
localhost : ok=126 changed=52 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment