Getting (404 Resource Not Found) errors for calls to pulp/api/v2/

Solution Verified - Updated -

Issue

  • Calls to Satellite pulp api /pulp/api/v2/* shows errors like below in foreman production.log :
2017-02-05 01:15:50 [app] [I] Started GET "/pulp/api/v2//status/" for 172.17.1.18 at 2017-02-05 01:15:50 -0500
2017-02-05 01:15:50 [app] [F] 
 | ActionController::RoutingError (No route matches [GET] "/pulp/api/v2/status"):
 |   actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
 |   actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
 |   railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
 |   railties (4.1.5) lib/rails/rack/logger.rb:22:in `call'
 |   actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
 |   rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
 |   rack (1.5.2) lib/rack/runtime.rb:17:in `call'
 |   activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
 |   actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
 |   actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
 |   rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
 |   railties (4.1.5) lib/rails/engine.rb:514:in `call'
 |   railties (4.1.5) lib/rails/application.rb:144:in `call'
 |   railties (4.1.5) lib/rails/railtie.rb:194:in `public_send'
 |   railties (4.1.5) lib/rails/railtie.rb:194:in `method_missing'
 |   rack (1.5.2) lib/rack/builder.rb:138:in `call'
 |   rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call'
 |   rack (1.5.2) lib/rack/urlmap.rb:50:in `each'
 |   rack (1.5.2) lib/rack/urlmap.rb:50:in `call'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
 |   /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
 |   logging (1.8.2) lib/logging/diagnostic_context.rb:323:in `call'
 |   logging (1.8.2) lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
 | 
 | 
2017-02-05 01:15:50 [app] [W] 404 Resource Not Found

Or

2017-02-05 02:30:45 [katello/pulp_rest] [I] RestClient.post "https://sat.example.com/pulp/api/v2/repositories/search/", 537 byte(s) length, "Accept"=>"*/*; q=0.5, application/
xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"537", "accept"=>"application/json", "content_type"=>"application/json"
 | \n# => 404 NotFound | application/json 36 bytes
 | 
2017-02-05 02:30:45 [app] [I] Completed 500 Internal Server Error in 320ms
2017-02-05 02:30:45 [app] [F] 
 | RestClient::ResourceNotFound (404 Resource Not Found)
  • Can not register hosts or perform other actions, pulp is not running:
[root@satellite]# hammer ping
candlepin:
    Status:          ok
    Server Response: Duration: 59ms
candlepin_auth:
    Status:          ok
    Server Response: Duration: 59ms
pulp:
    Status:          FAIL
    Server Response:
foreman_tasks:
    Status:          ok
    Server Response: Duration: 15ms

Environment

  • Satellite 6.2.7

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.