Docker hub image search fails

Problem:
I installed the docker plugin for test purposes but the search for images on docker hub fails with the error shown below. Strange thing is that it can find the tags for the images just fine. Anyone knows what the problem might be ?

Foreman and Proxy versions:
1.16.0-1

Docker plugin version:
3.2.1

Logs:

production.log

2018-03-19T21:01:29 19e457ea [app] [I] Started GET “/image_search/1/search_repository?registry=hub&search=debian&registry_id=” for 10.0.10.10 at 2018-03-19 21:01:29 +0100
2018-03-19T21:01:29 19e457ea [app] [I] Processing by ImageSearchController#search_repository as JSON
2018-03-19T21:01:29 19e457ea [app] [I] Parameters: {“registry”=>“hub”, “search”=>“debian”, “registry_id”=>"", “id”=>“1”}
2018-03-19T21:01:29 19e457ea [app] [I] Current user: admin (administrator)
2018-03-19T21:01:29 f9b41df7 [app] [W] API v1 - Search failed ["/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/expects.rb:7:in response_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/response_parser.rb:9:inresponse_call’", “/usr/share/foreman/vendor/ruby/2.3.0/gems/docker-api-1.33.4/lib/excon/middlewares/hijack.rb:45:in response_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:389:inresponse’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:253:in request'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/idempotent.rb:30:inerror_call’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:in error_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:inerror_call’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:in error_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:273:inrescue in request’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:216:in request'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/idempotent.rb:30:inerror_call’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:in error_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:inerror_call’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:in error_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:273:inrescue in request’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:216:in request'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/idempotent.rb:30:inerror_call’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:in error_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:inerror_call’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/middlewares/base.rb:11:in error_call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:273:inrescue in request’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/excon-0.59.0/lib/excon/connection.rb:216:in request'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/docker-api-1.33.4/lib/docker/connection.rb:40:inrequest’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/docker-api-1.33.4/lib/docker/connection.rb:65:in block (2 levels) in <class:Connection>'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/models/service/registry_api.rb:24:inget’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/models/service/registry_api.rb:33:in search'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:54:inregistry_search’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:85:in block (2 levels) in sources_results_for'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:84:ineach’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:84:in block in sources_results_for'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:83:ineach’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:83:in sources_results_for'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:38:inimages’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/services/foreman_docker/image_search.rb:31:in search'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/controllers/image_search_controller.rb:5:inblock in search_repository’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/controllers/image_search_controller.rb:19:in catch_network_errors'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_docker-3.2.1/app/controllers/image_search_controller.rb:3:insearch_repository’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal/implicit_render.rb:4:in send_action'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/abstract_controller/base.rb:198:inprocess_action’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal/rendering.rb:10:in process_action'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/abstract_controller/callbacks.rb:20:inblock in process_action’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:117:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:555:inblock (2 levels) in compile’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:505:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:498:inblock (2 levels) in around’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:313:in block (2 levels) in halting'", "/usr/share/foreman/app/controllers/concerns/application_shared.rb:15:inset_timezone’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:432:in block in make_lambda'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:312:inblock in halting’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:497:in block in around'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:505:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:498:in block (2 levels) in around'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:313:inblock (2 levels) in halting’”, “/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in clear_thread'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:432:inblock in make_lambda’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:312:in block in halting'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:497:inblock in around’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:505:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:498:inblock (2 levels) in around’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:313:in block (2 levels) in halting'", "/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:inset_topbar_sweeper_controller’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:432:in block in make_lambda'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:312:inblock in halting’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:497:in block in around'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:505:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:498:in block (2 levels) in around'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:313:inblock (2 levels) in halting’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.5.0/lib/audited/sweeper.rb:14:in around'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:455:inpublic_send’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:455:in block in make_lambda'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:312:inblock in halting’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:497:in block in around'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:505:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:92:in __run_callbacks__'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:778:in_run_process_action_callbacks’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:81:in run_callbacks'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/abstract_controller/callbacks.rb:19:inprocess_action’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal/rescue.rb:29:in process_action'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal/instrumentation.rb:32:inblock in process_action’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/notifications.rb:164:in block in instrument'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/notifications/instrumenter.rb:20:ininstrument’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/notifications.rb:164:in instrument'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal/instrumentation.rb:30:inprocess_action’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal/params_wrapper.rb:250:in process_action'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/railties/controller_runtime.rb:18:inprocess_action’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/abstract_controller/base.rb:137:in process'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-4.2.9/lib/action_view/rendering.rb:30:inprocess’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal.rb:196:in dispatch'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal/rack_delegation.rb:13:indispatch’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_controller/metal.rb:237:in block in action'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/routing/route_set.rb:74:indispatch’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/routing/route_set.rb:43:in serve'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/journey/router.rb:43:inblock in serve’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/journey/router.rb:30:in each'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/journey/router.rb:30:inserve’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/routing/route_set.rb:817:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.5/lib/apipie/static_dispatcher.rb:65:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.5/lib/apipie/extractor/recorder.rb:136:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.5/lib/apipie/middleware/checksum_in_headers.rb:27:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/etag.rb:24:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/conditionalget.rb:25:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/head.rb:13:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/params_parser.rb:27:incall’”, “/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/flash.rb:260:incall’”, “/usr/share/foreman/lib/middleware/session_safe_logging.rb:17:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/session/abstract/id.rb:225:incontext’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/session/abstract/id.rb:220:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/cookies.rb:560:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/query_cache.rb:36:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-4.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/callbacks.rb:29:in block in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:88:inrun_callbacks’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:778:in _run_call_callbacks'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/callbacks.rb:81:inrun_callbacks’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/callbacks.rb:27:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/remote_ip.rb:78:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/debug_exceptions.rb:17:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/show_exceptions.rb:30:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-4.2.9/lib/rails/rack/logger.rb:38:in call_app'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-4.2.9/lib/rails/rack/logger.rb:22:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in call'", "/usr/share/foreman/lib/middleware/tagged_logging.rb:18:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/request_id.rb:21:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/methodoverride.rb:22:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/runtime.rb:18:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-4.2.9/lib/action_dispatch/middleware/static.rb:120:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/sendfile.rb:113:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-3.7.3/lib/secure_headers/middleware.rb:12:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:518:incall’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:165:in call'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-4.2.9/lib/rails/railtie.rb:194:inpublic_send’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/railties-4.2.9/lib/rails/railtie.rb:194:in method_missing'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/urlmap.rb:66:inblock in call’”, “/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/urlmap.rb:50:in each'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/rack-1.6.8/lib/rack/urlmap.rb:50:incall’”, “/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in process_request'", "/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:inaccept_and_process_next_request’”, “/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in main_loop'", "/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:inblock (3 levels) in start_threads’”, “/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in block in create_thread_and_abort_on_exception'", "/usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:inblock in create_with_logging_context’”]

Could you try to apply https://github.com/theforeman/foreman_docker/pull/197 - then restart httpd/apache2 and test again.

I installed foreman_docker 4.0.0 and I don’t get errors anymore and can start containers on my compute nodes now, only the “autocompletion” does not work anymore for images and tags but not a problem for me now. Thanks for the help !