Created
May 2, 2013 10:46
-
-
Save actionjack/5501444 to your computer and use it in GitHub Desktop.
Pulp upgrade from 2.0.8 to 2.1.0 migration error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pulp-manage-db | |
| Beginning database migrations. | |
| Migration package pulp.server.db.migrations is up to date at version 4 | |
| Migration package pulp_puppet.plugins.migrations is up to date at version 0 | |
| Applying pulp_rpm.migrations version 3 | |
| Applying migration pulp_rpm.migrations.0003_custom_metadata_on_scratchpad failed. See log for details. | |
| 2013-05-02 10:47:16,928 db:CRITICAL: Applying migration pulp_rpm.migrations.0003_custom_metadata_on_scratchpad failed. | |
| 2013-05-02 10:47:16,928 db:CRITICAL: 'repodata' | |
| 2013-05-02 10:47:16,929 db:CRITICAL: Traceback (most recent call last): | |
| File "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 79, in migrate_database | |
| update_current_version=not options.test) | |
| File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/models.py", line 161, in apply_migration | |
| migration.migrate() | |
| File "/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0003_custom_metadata_on_scratchpad.py", line 69, in migrate | |
| preserve_custom_metadata_on_repo_scratchpad() | |
| File "/usr/lib/python2.6/site-packages/pulp_rpm/migrations/0003_custom_metadata_on_scratchpad.py", line 63, in preserve_custom_metadata_on_repo_scratchpad | |
| repo_scratchpad["repodata"].update({ftype : data}) | |
| KeyError: 'repodata' | |
| Database migrations complete. | |
| Loading content types. | |
| Content types loaded. |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2013-05-02 10:06:16,007 pulp.server.db.connection:INFO: Attempting Database connection with seeds = ip-10-208-13-32:27017
2013-05-02 10:06:16,009 pulp.server.db.connection:INFO: Database connection established with: seeds = ip-10-208-13-32:27017, name = pulp_database
2013-05-02 10:06:16,332 pulp.server.db.migrate.models:ERROR: pulp.server.db.migrations hasn't been updated to the latest available migration.
2013-05-02 10:06:16,333 pulp.server.db.migrate.models:ERROR: pulp_rpm.migrations hasn't been updated to the latest available migration.
2013-05-02 10:06:16,333 pulp.server.webservices.application:CRITICAL: *************************************************************
2013-05-02 10:06:16,334 pulp.server.webservices.application:CRITICAL: The Pulp server failed to start due to the following reasons:
2013-05-02 10:06:16,334 pulp.server.webservices.application:ERROR: The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 177, in wsgi_application
_initialize_pulp()
File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 106, in _initialize_pulp
migration_models.check_package_versions()
File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/models.py", line 291, in check_package_versions
raise Exception(error_message)
InitializationException: The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
2013-05-02 10:06:16,335 pulp.server.webservices.application:CRITICAL: *************************************************************