Edx-release-0610 update

edustack@edX:~$ sudo /edx/bin/update edx-platform release-2015-06-10
[WARNING]: It is unneccessary to use ‘{{’ in loops, leave variables in loop
expressions bare.

PLAY [Deploy edxapp] **********************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [nltk | create the nltk data directory and subdirectories] **************
ok: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip’, ‘path’: ‘taggers/maxent_treebank_pos_tagger’})
ok: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/corpora/stopwords.zip’, ‘path’: ‘corpora/stopwords’})
ok: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/corpora/wordnet.zip’, ‘path’: ‘corpora/wordnet’})

TASK: [nltk | download nltk data] *********************************************
ok: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip’, ‘path’: ‘taggers/maxent_treebank_pos_tagger’})
ok: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/corpora/stopwords.zip’, ‘path’: ‘corpora/stopwords’})
ok: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/corpora/wordnet.zip’, ‘path’: ‘corpora/wordnet’})

TASK: [nltk | unarchive nltk data] ********************************************
skipping: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/taggers/maxent_treebank_pos_tagger.zip’, ‘path’: ‘taggers/maxent_treebank_pos_tagger’})
skipping: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/corpora/stopwords.zip’, ‘path’: ‘corpora/stopwords’})
skipping: [localhost] => (item={‘url’: ‘http://nltk.github.com/nltk_data/packages/corpora/wordnet.zip’, ‘path’: ‘corpora/wordnet’})

TASK: [edxapp | code sandbox | Use libblas for 3gf] ***************************
changed: [localhost]

TASK: [edxapp | code sandbox | Use liblapac for 3gf] **************************
changed: [localhost]

TASK: [edxapp | code sandbox | Create edxapp sandbox user] ********************
ok: [localhost]

TASK: [edxapp | code sandbox | Install apparmor utils system pkg] *************
ok: [localhost]

TASK: [edxapp | code sandbox | write out apparmor code sandbox config] ********
ok: [localhost]

TASK: [edxapp | code sandbox | write out sandbox user sudoers config] *********
ok: [localhost]

TASK: [edxapp | code sandbox | start apparmor service] ************************
ok: [localhost]

TASK: [edxapp | code sandbox | (bootstrap) load code sandbox profile] *********
changed: [localhost]

TASK: [edxapp | code sandbox | (bootstrap) put code sandbox into aa-enforce or aa-complain mode depending on EDXAPP_SANDBOX_ENFORCE] ***
changed: [localhost]

TASK: [edxapp | setup the edxapp env] *****************************************
ok: [localhost]

TASK: [edxapp | create ssh script for git (not authenticated)] ****************
changed: [localhost]

TASK: [edxapp | create ssh script for git (authenticated)] ********************
skipping: [localhost]

TASK: [edxapp | install read-only ssh key] ************************************
skipping: [localhost]

TASK: [edxapp | checkout edx-platform repo into {{edxapp_code_dir}}] **********
changed: [localhost]

TASK: [edxapp | git clean after checking out edx-platform] ********************
changed: [localhost]

TASK: [edxapp | checkout theme] ***********************************************
skipping: [localhost]

TASK: [edxapp | create checksum for requirements, package.json and Gemfile] ***
failed: [localhost] => {“changed”: true, “cmd”: "/usr/bin/md5sum /edx/app/edxapp/edx-platform/requirements/edx/pre.txt /edx/app/edxapp/edx-platform/requirements/edx/post.txt /edx/app/edxapp/edx-platform/requirements/edx/base.txt /edx/app/edxapp/edx-platform/requirements/edx/custom.txt /edx/app/edxapp/edx-platform/requirements/edx/paver.txt /edx/app/edxapp/edx-platform/requirements/edx-sandbox/post.txt /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt 2>/dev/null > /var/tmp/edxapp.req.new ", “delta”: “0:00:00.287404”, “end”: “2015-06-11 09:30:07.618362”, “item”: “”, “rc”: 1, “start”: “2015-06-11 09:30:07.330958”}
…ignoring

TASK: [edxapp | stat path=/var/tmp/edxapp.req.new] ****************************
ok: [localhost]

TASK: [edxapp | stat path=/var/tmp/edxapp.req.installed] **********************
ok: [localhost]

TASK: [edxapp | Updating requirement files for git mirror] ********************
changed: [localhost]

TASK: [edxapp | gem install bundler] ******************************************
changed: [localhost]

TASK: [edxapp | bundle install] ***********************************************
changed: [localhost]

TASK: [edxapp | Set the npm registry] *****************************************
skipping: [localhost]

TASK: [edxapp | Set the npm registry permissions] *****************************
ok: [localhost]

TASK: [edxapp | Install edx-platform npm dependencies] ************************
changed: [localhost]

TASK: [edxapp | install python pre-requirements] ******************************
ok: [localhost]

TASK: [edxapp | install python base-requirements] *****************************
changed: [localhost]

TASK: [edxapp | install python post-requirements] *****************************
ok: [localhost]

TASK: [edxapp | install python paver-requirements] ****************************
changed: [localhost]

TASK: [edxapp | stat path="{{custom_requirements_file}}"] *********************
ok: [localhost]

TASK: [edxapp | install python custom-requirements] ***************************
skipping: [localhost]

TASK: [edxapp | install python post-post requirements] ************************
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/github.txt)
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/local.txt)

TASK: [edxapp | install python private requirements] **************************
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/edx-private.txt)

TASK: [edxapp | install python extra requirements] ****************************
skipping: [localhost]

TASK: [edxapp | install CAS attribute module] *********************************
skipping: [localhost]

TASK: [edxapp | install sandbox requirements into regular venv] ***************
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt)
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/local.txt)
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/post.txt)

TASK: [edxapp | code sandbox | put sandbox apparmor profile in complain mode] ***
changed: [localhost]

TASK: [edxapp | code sandbox | Install base sandbox requirements and create sandbox virtualenv] ***
ok: [localhost]

TASK: [edxapp | code sandbox | Install sandbox requirements into sandbox venv] ***
ok: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/local.txt)
ok: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/post.txt)

TASK: [edxapp | code sandbox | put code sandbox into aa-enforce or aa-complain mode, depending on EDXAPP_SANDBOX_ENFORCE] ***
changed: [localhost]

TASK: [edxapp | compiling all py files in the edx-platform repo] **************
changed: [localhost]

TASK: [edxapp | give other read permissions to the virtualenv] ****************
changed: [localhost]

TASK: [edxapp | create checksum for installed requirements] *******************
changed: [localhost]

TASK: [edxapp | openid workaround] ********************************************
skipping: [localhost]

TASK: [edxapp | get s3 one time url] ******************************************
skipping: [localhost]

TASK: [edxapp | download from one time url] ***********************************
skipping: [localhost]

TASK: [edxapp | unzip the data to the data dir] *******************************
skipping: [localhost]

TASK: [edxapp | make the course data web user writable] ***********************
ok: [localhost]

TASK: [edxapp | create application config] ***********************************
changed: [localhost] => (item=lms)
changed: [localhost] => (item=cms)

TASK: [edxapp | create auth file] ********************************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)

TASK: [edxapp | writing supervisor script] ***********************************
changed: [localhost] => (item=lms)
changed: [localhost] => (item=cms)

TASK: [edxapp | writing edxapp supervisor script] *****************************
ok: [localhost]

TASK: [edxapp | writing celery worker supervisor script] **********************
ok: [localhost]

TASK: [edxapp | enable supervisor script] ************************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)

TASK: [edxapp | enable edxapp supervisor script] ******************************
ok: [localhost]

TASK: [edxapp | enable celery worker supervisor script] ***********************
skipping: [localhost]

TASK: [edxapp | syncdb and migrate] *******************************************
skipping: [localhost] => (item=lms)
skipping: [localhost] => (item=cms)

TASK: [edxapp | gather static assets with paver] *****************************
changed: [localhost] => (item=lms)
changed: [localhost] => (item=cms)

TASK: [edxapp | make the course data updatable by the edxapp user] ************
skipping: [localhost]

TASK: [edxapp | clone the xml course repo] ************************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)

TASK: [edxapp | update course.xml] ********************************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)

TASK: [edxapp | make symlinks for the static data] ****************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)

TASK: [edxapp | make symlinks so code works] **********************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)

TASK: [edxapp | import courses with nostatic flag] ****************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)

TASK: [edxapp | import courses including static data] *************************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)

TASK: [edxapp | delete courses that were fully imported] **********************
skipping: [localhost] => (item=EDXAPP_XML_COURSES)

TASK: [edxapp | create an archive of course data and course static dirs] ******
skipping: [localhost]

TASK: [edxapp | upload archive to s3] *****************************************
skipping: [localhost]

TASK: [edxapp | remove archive from disk] *************************************
skipping: [localhost]

TASK: [edxapp | update supervisor configuration] ******************************
changed: [localhost]

TASK: [edxapp | ensure edxapp has started] ************************************
ok: [localhost] => (item=lms)
ok: [localhost] => (item=cms)

TASK: [edxapp | ensure edxapp_workers has started] ****************************
skipping: [localhost] => (item={‘queue’: ‘low’, ‘service_variant’: ‘cms’, ‘concurrency’: 3})
skipping: [localhost] => (item={‘queue’: ‘default’, ‘service_variant’: ‘cms’, ‘concurrency’: 4})
skipping: [localhost] => (item={‘queue’: ‘high’, ‘service_variant’: ‘cms’, ‘concurrency’: 1})
skipping: [localhost] => (item={‘queue’: ‘low’, ‘service_variant’: ‘lms’, ‘concurrency’: 1})
skipping: [localhost] => (item={‘queue’: ‘default’, ‘service_variant’: ‘lms’, ‘concurrency’: 3})
skipping: [localhost] => (item={‘queue’: ‘high’, ‘service_variant’: ‘lms’, ‘concurrency’: 4})
skipping: [localhost] => (item={‘queue’: ‘high_mem’, ‘service_variant’: ‘lms’, ‘concurrency’: 2})

TASK: [edxapp | create symlinks from the venv bin dir] ************************
ok: [localhost] => (item=python)
ok: [localhost] => (item=pip)
ok: [localhost] => (item=django-admin.py)

TASK: [edxapp | create symlinks from the repo dir] ****************************
ok: [localhost] => (item=manage.py)

TASK: [edxapp | remove read-only ssh key] *************************************
skipping: [localhost]

TASK: [edxapp | get instance information] *************************************
skipping: [localhost]

TASK: [edxapp | tag instance with edx_platform version] ***********************
skipping: [localhost]

TASK: [edxapp | tag instance with edxapp theme version] **********************
skipping: [localhost]

TASK: [edxapp | set_fact edxapp_installed=true] *******************************
ok: [localhost]

TASK: [newrelic | Install newrelic plugin related packages] *******************
skipping: [localhost]

TASK: [newrelic | check out the newrelic logwatcher plugin] *******************
skipping: [localhost]

TASK: [newrelic | bundle install] *********************************************
skipping: [localhost]

TASK: [newrelic | create agent configuration] *********************************
skipping: [localhost]

TASK: [newrelic | template ] **************************************************
skipping: [localhost]

TASK: [newrelic | Install newrelic plugin related packages] *******************
skipping: [localhost]

TASK: [newrelic | Install s3cmd] **********************************************
skipping: [localhost]

TASK: [newrelic | create {{newrelic_s3watcher_repo_dir}}] *********************
skipping: [localhost]

TASK: [newrelic | check out the s3 newrelic plugin] ***************************
skipping: [localhost]

TASK: [newrelic | create bundle install shell script] *************************
skipping: [localhost]

TASK: [newrelic | execute bundle install via rbenv] ***************************
skipping: [localhost]

TASK: [newrelic | create agent configuration] *********************************
skipping: [localhost]

TASK: [newrelic | set agent as executable] ************************************
skipping: [localhost]

TASK: [newrelic | create supervisor wrapper] **********************************
skipping: [localhost]

TASK: [newrelic | create supervisor config] ***********************************
skipping: [localhost]

TASK: [newrelic | update supervisor configuration] ****************************
skipping: [localhost]

TASK: [newrelic | ensure s3watcher is started] ********************************
skipping: [localhost]

NOTIFIED: [edxapp | restart edxapp] *******************************************
changed: [localhost] => (item=lms)
changed: [localhost] => (item=cms)

NOTIFIED: [edxapp | restart edxapp_workers] ***********************************
skipping: [localhost] => (item={‘queue’: ‘low’, ‘service_variant’: ‘cms’, ‘concurrency’: 3})
skipping: [localhost] => (item={‘queue’: ‘default’, ‘service_variant’: ‘cms’, ‘concurrency’: 4})
skipping: [localhost] => (item={‘queue’: ‘high’, ‘service_variant’: ‘cms’, ‘concurrency’: 1})
skipping: [localhost] => (item={‘queue’: ‘low’, ‘service_variant’: ‘lms’, ‘concurrency’: 1})
skipping: [localhost] => (item={‘queue’: ‘default’, ‘service_variant’: ‘lms’, ‘concurrency’: 3})
skipping: [localhost] => (item={‘queue’: ‘high’, ‘service_variant’: ‘lms’, ‘concurrency’: 4})
skipping: [localhost] => (item={‘queue’: ‘high_mem’, ‘service_variant’: ‘lms’, ‘concurrency’: 2})

PLAY RECAP ********************************************************************
localhost : ok=65 changed=25 unreachable=0 failed=0

edxapp@edX:~$ python /edx/app/edxapp/edx-platform/manage.py lms syncdb --migrate --settings aws
2015-06-11 15:55:04,226 INFO 17979 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Syncing…
Creating tables …
Installing custom SQL …
Installing indexes …
Installed 0 object(s) from 0 fixture(s)
Migrating…
Running migrations for courseware:

  • Nothing to migrate.
  • Loading initial data for courseware.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for student:
  • Migrating forwards to 0050_auto__add_manualenrollmentaudit.

student:0050_auto__add_manualenrollmentaudit

  • Loading initial data for student.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for track:
  • Nothing to migrate.
  • Loading initial data for track.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for util:
  • Nothing to migrate.
  • Loading initial data for util.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for certificates:
  • Migrating forwards to 0022_default_modes.

certificates:0021_auto__add_badgeassertion__add_unique_badgeassertion_course_id_user__ad
certificates:0022_default_modes

  • Migration ‘certificates:0022_default_modes’ is marked for no-dry-run.
    2015-06-11 15:55:22,446 ERROR 17979 [boto] utils.py:228 - Caught exception reading instance data
    Traceback (most recent call last):
    File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/utils.py”, line 214, in retry_url
    r = opener.open(req)
    File “/usr/lib/python2.7/urllib2.py”, line 400, in open
    response = self._open(req, data)
    File “/usr/lib/python2.7/urllib2.py”, line 418, in _open
    ’_open’, req)
    File “/usr/lib/python2.7/urllib2.py”, line 378, in _call_chain
    result = func(*args)
    File “/usr/lib/python2.7/urllib2.py”, line 1207, in http_open
    return self.do_open(httplib.HTTPConnection, req)
    File “/usr/lib/python2.7/urllib2.py”, line 1180, in do_open
    r = h.getresponse(buffering=True)
    File “/usr/lib/python2.7/httplib.py”, line 1030, in getresponse
    response.begin()
    File “/usr/lib/python2.7/httplib.py”, line 407, in begin
    version, status, reason = self._read_status()
    File “/usr/lib/python2.7/httplib.py”, line 365, in _read_status
    line = self.fp.readline()
    File “/usr/lib/python2.7/socket.py”, line 447, in readline
    data = self._sock.recv(self._rbufsize)
    timeout: timed out
    2015-06-11 15:55:22,974 ERROR 17979 [boto] utils.py:233 - Unable to read instance data, giving up
    ! Error found during real run of migration! Aborting.

! Since you have a database that does not support running
! schema-altering statements in transactions, we have had
! to leave it in an interim state between migrations.

! You might be able to recover with: (migration cannot be dry-run; cannot discover commands)
! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: certificates:0022_default_modes
Traceback (most recent call last):
File “/edx/app/edxapp/edx-platform/manage.py”, line 116, in
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/django/core/management/base.py”, line 371, in handle
return self.handle_noargs(**options)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/management/commands/syncdb.py”, line 103, in handle_noargs
management.call_command(‘migrate’, **options)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/init.py”, line 150, in call_command
return klass.execute(*args, **defaults)
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 220, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 256, in migrate_many
result = migrator.class.migrate_many(migrator, target, migrations, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 331, in migrate_many
result = self.migrate(migration, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 133, in migrate
result = self.run(migration, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 114, in run
return self.run_migration(migration, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 84, in run_migration
migration_function()
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 60, in
return (lambda: direction(orm))
File “/edx/app/edxapp/edx-platform/lms/djangoapps/certificates/migrations/0022_default_modes.py”, line 20, in forwards
File(open(settings.PROJECT_ROOT / ‘static’ / ‘images’ / ‘default-badges’ / file_name))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 85, in save
name = self.field.generate_filename(self.instance, name)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 263, in generate_filename
return os.path.join(self.get_directory_name(), self.get_filename(filename))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 260, in get_filename
return os.path.normpath(self.storage.get_valid_name(os.path.basename(filename)))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 184, in inner
self._setup()
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 284, in _setup
self._wrapped = get_storage_class()()
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/storages/backends/s3boto.py”, line 163, in init
calling_format=calling_format)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/s3/connection.py”, line 190, in init
validate_certs=validate_certs, profile_name=profile_name)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/connection.py”, line 568, in init
host, config, self.provider, self._required_auth_capability())
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/auth.py”, line 939, in get_auth_handler
’Check your credentials’ % (len(names), str(names)))
boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. [‘HmacAuthV1Handler’] Check your credentials

edxapp@edX:~$ python /edx/app/edxapp/edx-platform/manage.py lms syncdb --migrate --settings aws
2015-06-11 15:55:04,226 INFO 17979 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Syncing…
Creating tables …
Installing custom SQL …
Installing indexes …
Installed 0 object(s) from 0 fixture(s)
Migrating…
Running migrations for courseware:

  • Nothing to migrate.
  • Loading initial data for courseware.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for student:
  • Migrating forwards to 0050_auto__add_manualenrollmentaudit.

student:0050_auto__add_manualenrollmentaudit

  • Loading initial data for student.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for track:
  • Nothing to migrate.
  • Loading initial data for track.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for util:
  • Nothing to migrate.
  • Loading initial data for util.
    Installed 0 object(s) from 0 fixture(s)
    Running migrations for certificates:
  • Migrating forwards to 0022_default_modes.

certificates:0021_auto__add_badgeassertion__add_unique_badgeassertion_course_id_user__ad
certificates:0022_default_modes

  • Migration ‘certificates:0022_default_modes’ is marked for no-dry-run.
    2015-06-11 15:55:22,446 ERROR 17979 [boto] utils.py:228 - Caught exception reading instance data
    Traceback (most recent call last):
    File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/utils.py”, line 214, in retry_url
    r = opener.open(req)
    File “/usr/lib/python2.7/urllib2.py”, line 400, in open
    response = self._open(req, data)
    File “/usr/lib/python2.7/urllib2.py”, line 418, in _open
    ’_open’, req)
    File “/usr/lib/python2.7/urllib2.py”, line 378, in _call_chain
    result = func(*args)
    File “/usr/lib/python2.7/urllib2.py”, line 1207, in http_open
    return self.do_open(httplib.HTTPConnection, req)
    File “/usr/lib/python2.7/urllib2.py”, line 1180, in do_open
    r = h.getresponse(buffering=True)
    File “/usr/lib/python2.7/httplib.py”, line 1030, in getresponse
    response.begin()
    File “/usr/lib/python2.7/httplib.py”, line 407, in begin
    version, status, reason = self._read_status()
    File “/usr/lib/python2.7/httplib.py”, line 365, in _read_status
    line = self.fp.readline()
    File “/usr/lib/python2.7/socket.py”, line 447, in readline
    data = self._sock.recv(self._rbufsize)
    timeout: timed out
    2015-06-11 15:55:22,974 ERROR 17979 [boto] utils.py:233 - Unable to read instance data, giving up
    ! Error found during real run of migration! Aborting.

! Since you have a database that does not support running
! schema-altering statements in transactions, we have had
! to leave it in an interim state between migrations.

! You might be able to recover with: (migration cannot be dry-run; cannot discover commands)
! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: certificates:0022_default_modes
Traceback (most recent call last):
File “/edx/app/edxapp/edx-platform/manage.py”, line 116, in
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/django/core/management/base.py”, line 371, in handle
return self.handle_noargs(**options)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/management/commands/syncdb.py”, line 103, in handle_noargs
management.call_command(‘migrate’, **options)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/init.py”, line 150, in call_command
return klass.execute(*args, **defaults)
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 220, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 256, in migrate_many
result = migrator.class.migrate_many(migrator, target, migrations, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 331, in migrate_many
result = self.migrate(migration, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 133, in migrate
result = self.run(migration, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 114, in run
return self.run_migration(migration, database)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 84, in run_migration
migration_function()
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/migration/migrators.py”, line 60, in
return (lambda: direction(orm))
File “/edx/app/edxapp/edx-platform/lms/djangoapps/certificates/migrations/0022_default_modes.py”, line 20, in forwards
File(open(settings.PROJECT_ROOT / ‘static’ / ‘images’ / ‘default-badges’ / file_name))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 85, in save
name = self.field.generate_filename(self.instance, name)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 263, in generate_filename
return os.path.join(self.get_directory_name(), self.get_filename(filename))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/files.py”, line 260, in get_filename
return os.path.normpath(self.storage.get_valid_name(os.path.basename(filename)))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py”, line 184, in inner
self._setup()
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/files/storage.py”, line 284, in _setup
self._wrapped = get_storage_class()()
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/storages/backends/s3boto.py”, line 163, in init
calling_format=calling_format)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/s3/connection.py”, line 190, in init
validate_certs=validate_certs, profile_name=profile_name)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/connection.py”, line 568, in init
host, config, self.provider, self._required_auth_capability())
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/boto/auth.py”, line 939, in get_auth_handler
’Check your credentials’ % (len(names), str(names)))
boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. [‘HmacAuthV1Handler’] Check your credentials

Powered by eduStack & ifLab