Actions
Bug #24443
closed3.6 -> 3.7 upgrade on proxy does not always migrate pulp db
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Upgrades
Target version:
Description
Error from pulp on the smart proxy:
pulp.server.webservices.application:CRITICAL: ************************************************************* pulp.server.db.migrate.models:ERROR: pulp_deb.plugins.migrations hasn't been updated to the latest available migration. pulp.server.webservices.application:CRITICAL: ************************************************************* pulp.server.webservices.application:CRITICAL: The Pulp server failed to start due to the following reasons: pulp.server.webservices.application:ERROR: (7046-60704) The database has not been migrated to the current version. Run pulp-manage-db and restart the application. pulp.server.webservices.application:ERROR: (7046-60704) Traceback (most recent call last): pulp.server.webservices.application:ERROR: (7046-60704) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 111, in wsgi_application pulp.server.webservices.application:ERROR: (7046-60704) _initialize_web_services() pulp.server.webservices.application:ERROR: (7046-60704) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 74, in _initialize_web_services pulp.server.webservices.application:ERROR: (7046-60704) migration_models.check_package_versions() pulp.server.webservices.application:ERROR: (7046-60704) File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 314, in check_package_versions pulp.server.webservices.application:ERROR: (7046-60704) raise Exception(error_message) pulp.server.webservices.application:ERROR: (7046-60704) InitializationException: The database has not been migrated to the current version. Run pulp-manage-db and restart the application. pulp.server.webservices.application:CRITICAL: *************************************************************
Workaround¶
foreman-maintain service stop
service rh-mongodb34-mongod start
sudo -u apache pulp-manage-db
foreman-maintain service start
Actions