Satellite 6.2 - Pulp Fail with error: pulp.server.db.migrate.models:ERROR: pulp.server.db.migrations hasn't been updated to the latest available migration.
Issue
When testing Satellite with hammer ping
command, the following error is printed:
# hammer ping
candlepin:
Status: ok
Server Response: Duration: 44ms
candlepin_auth:
Status: ok
Server Response: Duration: 31ms
pulp:
Status: FAIL
Server Response:
foreman_tasks:
Status: ok
Server Response: Duration: 62ms
And the /var/log/messages
captured by foreman-tail
shows the errors:
==> /var/log/messages <==
Aug 15 11:06:44 satellite-server foreman[3404]: INFO app : Started GET "/katello/api/ping" for ::1 at 2018-08-15 11:06:44 -0400
Aug 15 11:06:44 satellite-server foreman[3404]: INFO app : Processing by Katello::Api::V2::PingController#index as JSON
Aug 15 11:06:44 satellite-server foreman[3404]: INFO app : Parameters: {"api_version"=>"v2", "ping"=>{}}
Aug 15 11:06:44 satellite-server pulp: pulp.server.db.migrate.models:ERROR: pulp.server.db.migrations hasn't been updated to the latest available migration.
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:CRITICAL: *************************************************************
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:CRITICAL: The Pulp server failed to start due to the following reasons:
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) Traceback (most recent call last):
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 111, in wsgi_application
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) _initialize_web_services()
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 74, in _initialize_web_services
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) migration_models.check_package_versions()
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 310, in check_package_versions
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) raise Exception(error_message)
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:ERROR: (2387-38400) InitializationException: The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
Aug 15 11:06:44 satellite-server pulp: pulp.server.webservices.application:CRITICAL: *************************************************************
Environment
Red Hat Satellite 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.