[RHUI 3 ] rhui-manager command fails with 'raise exceptions.ApacheServerException(response_body)' error after packages updated on RHUA

Solution Verified - Updated -

Issue

  • rhui-manager command fails with the below error.

    [root@rhua ~]# rhui-manager
    Logging into the RHUI.
    
    It is recommended to change the user's password
    in the User Management section of RHUI Tools.
    
    RHUI Username: admin
    RHUI Password:
    Traceback (most recent call last):
      File "/usr/bin/rhui-manager", line 9, in <module>
        load_entry_point('rhui-tools==3.0.7', 'console_scripts', 'rhui-manager')()
      File "/usr/lib/python2.7/site-packages/rhui/tools/launcher.py", line 313, in main
        pulp_api = _pulp_api(config, prompt, values.username, values.password)
      File "/usr/lib/python2.7/site-packages/rhui/tools/launcher.py", line 128, in _pulp_api
        auth.login(pulp_api, prompt)
      File "/usr/lib/python2.7/site-packages/rhui/tools/auth.py", line 70, in login
        cert_pem = _login(pulp, prompt)
      File "/usr/lib/python2.7/site-packages/rhui/tools/auth.py", line 120, in _login
        response = pulp.login(username, password)
      File "/usr/lib/python2.7/site-packages/rhui/tools/pulp_api.py", line 128, in login
        cert = self.login_api.login(username, password)
      File "/usr/lib/python2.7/site-packages/pulp/bindings/actions.py", line 20, in login
        return self.server.POST(path)
      File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 100, in POST
        log_request_body=log_request_body, ignore_prefix=ignore_prefix)
      File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 166, in _request
        self._handle_exceptions(response_code, response_body)
      File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 202, in _handle_exceptions
        raise exceptions.ApacheServerException(response_body)
    pulp.bindings.exceptions.ApacheServerException
    
  • The following errors were observed in /var/log/messages.

    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:CRITICAL: *************************************************************
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:CRITICAL: The Pulp server failed to start due to the following reasons:
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768)   The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768) Traceback (most recent call last):
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 111, in wsgi_application
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768)     _initialize_web_services()
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 74, in _initialize_web_services
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768)     migration_models.check_package_versions()
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768)   File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 314, in check_package_versions
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768)     raise Exception(error_message)
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:ERROR: (25549-80768) InitializationException: The database has not been migrated to the current version. Run pulp-manage-db and restart the application.
    Jul  3 17:45:03 rhua pulp: pulp.server.webservices.application:CRITICAL: *************************************************************
    

Environment

  • Red Hat Update Infrastructure v.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In