Red Hat Satellite 6 pulp service fails with /usr/lib/python2.7/site-packages/gofer/messaging/adapter/factory.py NoAdaptersLoaded: No messaging adapters loaded

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • On Satellite 6 when running hammer ping shows pulp and pulp_auth services are not in a failed state.

       pulp:             
           Status:          FAIL
           Server Response: Message: 500 Internal Server Error
       pulp_auth:        
           Status:          FAIL
           Server Response: Message: Skipped pulp_auth check after failed                                                       
       pulp check
    

Resolution

  • Make sure python-gofer-qpid package is installed from Red Hat Satellite repository.

  • Enable the relavent Satellite repository and install the package.

      # subscription-manager repos --enable=rhel-7-server-satellite-6.x-rpms
      # yum install python-gofer-qpid
    
  • Run satellite-installer.

      # satellite-installer --scenario satellite
    

For more KB articles/solutions related to Red Hat Satellite 6.x Pulp 2.0 Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Pulp 2.0-related Issues

Root Cause

  • Package "python-gofer-qpid" is installed from third-party repository.

       # yum list installed python-gofer-qpid
       Installed Packages
       python-gofer-qpid.noarch            2.12.5-7.el7sat            Fedora Project
    

Diagnostic Steps

  • /var/log/messages shows following error:

        id-sat-bta pulp: pulp.server.webservices.application:CRITICAL:     
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-       43456) The Pulp server encountered an unexpected failure  during initialization
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456) Traceback (most recent call last):
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line   111, in wsgi_application
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)     _initialize_web_services()
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 86, in _initialize_web_services
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)     AgentServices.start()
         id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)   File "/usr/lib/python2.7/site-packages/pulp/server/agent/direct/services.py", line 37, in start
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)     Services.reply_handler = ReplyHandler(url)
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)   File "/usr/lib/python2.7/site-packages/pulp/server/agent/direct/services.py", line 111, in __init__
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)     queue.declare(url)
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)   File "/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 40, in _fn
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)     return fn(*args, **keywords)
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)   File "/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 360, in declare
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)     adapter = Adapter.find(url)
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)   File "/usr/lib/python2.7/site-packages/gofer/messaging/adapter/factory.py", line 165, in find
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456)     raise NoAdaptersLoaded()
        id-sat-bta pulp: pulp.server.webservices.application:ERROR: (1501-43456) NoAdaptersLoaded: No messaging adapters loaded
        id-sat-bta pulp: pulp.server.webservices.application:CRITICAL: 
    
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.