Project

General

Profile

Actions

Bug #37670

open

Change of primary port makes Foreman Proxy fail

Added by Martin Juhl 5 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Network
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi guys..

I'm trying to change the default port on my foreman/katello installation from 443 -> 8043..

I have run: --foreman-proxy-trusted-hosts HOSTNAME --foreman-foreman-url https://rHOSTNAME:8043 --foreman-cli-foreman-url https://HOSTNAME:8043 --foreman-proxy-foreman-base-url https://HOSTNAME:8043..

but I get this error: https://pastebin.com/NNrNi0Qi

Production.log: https://pastebin.com/5XBjrKHE


Files

foreman-debug-U8OmE.tar.xz foreman-debug-U8OmE.tar.xz 1.53 MB Foreman Debug Martin Juhl, 07/21/2024 03:57 PM
Actions #1

Updated by Martin Juhl 5 months ago

[root@repo mj]# foreman-rake errors:fetch_log request_id=84fc119a
Foreman version: 3.10.0
Plugins:
- foreman-tasks 9.1.1
- foreman_ansible 14.0.0
- foreman_remote_execution 13.0.0
- katello 4.12.1

2024-07-21T17:33:33 [I|app|84fc119a] Started GET "/smart_proxies/1-repo-ngds-dk" for 192.168.50.2 at 2024-07-21 17:33:33 +0200
2024-07-21T17:33:33 [I|app|84fc119a] Processing by SmartProxiesController#show as HTML
2024-07-21T17:33:33 [I|app|84fc119a] Parameters: {"id"=>"1-repo-ngds-dk"}
2024-07-21T17:33:33 [I|app|84fc119a] Rendered smart_proxies/show.html.erb (Duration: 200.5ms | Allocations: 28043)
2024-07-21T17:33:33 [I|app|84fc119a] Rendered /usr/share/gems/gems/katello-4.12.1/app/views/foreman/smart_proxies/show.html.erb within katello/layouts/foreman_with_bastion (Duration: 206.1ms | Allocations: 28907)
2024-07-21T17:33:33 [I|app|84fc119a] Rendered layout /usr/share/gems/gems/katello-4.12.1/app/views/katello/layouts/foreman_with_bastion.html.erb (Duration: 206.2ms | Allocations: 28964)
2024-07-21T17:33:33 [W|app|84fc119a] A smart proxy seems to have been refreshed without pulpcore being running. Please refresh the smart proxy after ensuring that pulpcore services are running.
2024-07-21T17:33:33 [I|app|84fc119a] Backtrace for 'A smart proxy seems to have been refreshed without pulpcore being running. Please refresh the smart proxy after ensuring that pulpcore services are running.' error (ActionView::Template::Error): A smart proxy seems to have been refreshed without pulpcore being running. Please refresh the smart proxy after ensuring that pulpcore services are running.
84fc119a | /usr/share/gems/gems/katello-4.12.1/app/services/katello/repository_type_manager.rb:29:in `fix_pulp3_capabilities'
84fc119a | /usr/share/gems/gems/katello-4.12.1/app/services/katello/repository_type_manager.rb:35:in `enabled_repository_types'
84fc119a | /usr/share/gems/gems/katello-4.12.1/app/models/katello/concerns/smart_proxy_extensions.rb:370:in `supported_pulp_types'
84fc119a | /usr/share/gems/gems/katello-4.12.1/app/views/smart_proxies/plugins/_pulpcore.html.erb:11:in `__usr_share_gems_gems_katello________app_views_smart_proxies_plugins__pulpcore_html_erb___2361449514172616532_107060'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:271:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:22:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:38:in `block in render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:273:in `in_rendering_context'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:34:in `render'
84fc119a | /usr/share/foreman/app/views/smart_proxies/show.html.erb:112:in `block in app_views_smart_proxies_show_html_erb__3507163220344311972_106940'
84fc119a | /usr/share/foreman/app/views/smart_proxies/show.html.erb:109:in `each'
84fc119a | /usr/share/foreman/app/views/smart_proxies/show.html.erb:109:in `_app_views_smart_proxies_show_html_erb___3507163220344311972_106940'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:75:in `render_with_layout'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:11:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:22:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:38:in `block in render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:273:in `in_rendering_context'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:34:in `render'
84fc119a | /usr/share/gems/gems/katello-4.12.1/app/views/foreman/smart_proxies/show.html.erb:7:in `__usr_share_gems_gems_katello________app_views_foreman_smart_proxies_show_html_erb___2650479719162205746_106920'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:71:in `block in render_with_layout'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:70:in `render_with_layout'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/template_renderer.rb:11:in `render'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:117:in `block in _render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:273:in `in_rendering_context'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:116:in `_render_template'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/streaming.rb:218:in `_render_template'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:103:in `render_to_body'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/rendering.rb:25:in `render'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rendering.rb:36:in `render'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
84fc119a | /usr/share/ruby/benchmark.rb:308:in `realtime'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/core_ext/benchmark.rb:14:in `ms'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
84fc119a | /usr/share/gems/gems/activerecord-6.1.7.8/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:45:in `render'
84fc119a | /usr/share/gems/gems/katello-4.12.1/app/controllers/katello/concerns/smart_proxies_controller_extensions.rb:9:in `show'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/base.rb:228:in `process_action'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rendering.rb:30:in `process_action'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
84fc119a | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
84fc119a | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
84fc119a | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
84fc119a | /usr/share/gems/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
84fc119a | /usr/share/gems/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:137:in `run_callbacks'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/callbacks.rb:41:in `process_action'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/rescue.rb:22:in `process_action'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
84fc119a | /usr/share/gems/gems/activerecord-6.1.7.8/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/abstract_controller/base.rb:165:in `process'
84fc119a | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/rendering.rb:39:in `process'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal.rb:190:in `dispatch'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_controller/metal.rb:254:in `dispatch'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/routing/route_set.rb:33:in `serve'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/journey/router.rb:50:in `block in serve'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/journey/router.rb:32:in `each'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/journey/router.rb:32:in `serve'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/routing/route_set.rb:842:in `call'
84fc119a | /usr/share/gems/gems/katello-4.12.1/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
84fc119a | /usr/share/gems/gems/katello-4.12.1/lib/katello/middleware/event_daemon.rb:10:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
84fc119a | /usr/share/gems/gems/apipie-dsl-2.6.2/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
84fc119a | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/static_dispatcher.rb:74:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/static.rb:24:in `call'
84fc119a | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
84fc119a | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
84fc119a | /usr/share/gems/gems/apipie-rails-1.3.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/tempfile_reaper.rb:15:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/etag.rb:27:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/conditional_get.rb:27:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/head.rb:12:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
84fc119a | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:266:in `context'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:260:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/cookies.rb:697:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/callbacks.rb:98:in `run_callbacks'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
84fc119a | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/rack/logger.rb:37:in `call_app'
84fc119a | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/rack/logger.rb:28:in `call'
84fc119a | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
84fc119a | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
84fc119a | /usr/share/gems/gems/request_store-1.6.0/lib/request_store/middleware.rb:19:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/request_id.rb:26:in `call'
84fc119a | /usr/share/gems/gems/katello-4.12.1/lib/katello/prevent_json_parsing.rb:12:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/method_override.rb:24:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/runtime.rb:22:in `call'
84fc119a | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/executor.rb:14:in `call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/sendfile.rb:110:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/ssl.rb:77:in `call'
84fc119a | /usr/share/gems/gems/actionpack-6.1.7.8/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
84fc119a | /usr/share/gems/gems/secure_headers-6.5.0/lib/secure_headers/middleware.rb:11:in `call'
84fc119a | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/engine.rb:539:in `call'
84fc119a | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/railtie.rb:207:in `public_send'
84fc119a | /usr/share/gems/gems/railties-6.1.7.8/lib/rails/railtie.rb:207:in `method_missing'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:74:in `block in call'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `each'
84fc119a | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `call'
84fc119a | /usr/share/gems/gems/puma-6.4.2/lib/puma/configuration.rb:272:in `call'
84fc119a | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:100:in `block in handle_request'
84fc119a | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:378:in `with_force_shutdown'
84fc119a | /usr/share/gems/gems/puma-6.4.2/lib/puma/request.rb:99:in `handle_request'
84fc119a | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:464:in `process_client'
84fc119a | /usr/share/gems/gems/puma-6.4.2/lib/puma/server.rb:245:in `block in run'
84fc119a | /usr/share/gems/gems/puma-6.4.2/lib/puma/thread_pool.rb:155:in `block in spawn_thread'
84fc119a | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2024-07-21T17:33:33 [I|app|84fc119a] Rendered common/500.html.erb within layouts/application (Duration: 3.0ms | Allocations: 497)
2024-07-21T17:33:33 [I|app|84fc119a] Rendered layouts/base.html.erb (Duration: 3.1ms | Allocations: 1617)
2024-07-21T17:33:33 [I|app|84fc119a] Rendered layout layouts/application.html.erb (Duration: 6.8ms | Allocations: 2385)
2024-07-21T17:33:33 [I|app|84fc119a] Completed 500 Internal Server Error in 257ms (Views: 7.5ms | ActiveRecord: 11.4ms | Allocations: 36761)

Actions #3

Updated by Martin Juhl 5 months ago

It seems like the proxy is still trying to connect to the 443 port..

How do I change that?

From /var/log/foreman-proxy/proxy.log

2024-07-21T18:30:03 6eadeac1 [I] Started GET /v2/features
2024-07-21T18:30:03 6eadeac1 [I] Started GET /v2/features
2024-07-21T18:30:03 6eadeac1 [I] Started GET /v2/features
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [E] Could not fetch capabilities: Failed to open TCP connection to repo.ngds.dk:443 (Connection refused - connect(2) for "repo.ngds.dk" port 443)
2024-07-21T18:30:03 6eadeac1 [I] Finished GET /v2/features with 200 (3.52 ms)
2024-07-21T18:30:03 6eadeac1 [I] Finished GET /v2/features with 200 (3.52 ms)
2024-07-21T18:30:03 6eadeac1 [I] Finished GET /v2/features with 200 (3.52 ms)
2024-07-21T18:30:03 6eadeac1 [I] Finished GET /v2/features with 200 (3.52 ms)
2024-07-21T18:30:03 6eadeac1 [I] Finished GET /v2/features with 200 (3.52 ms)

Actions #4

Updated by Martin Juhl 5 months ago

  • Subject changed from Change of primary port makes Foreman fail to Change of primary port makes Foreman Proxy fail
Actions #5

Updated by Martin Juhl 4 months ago

I haven't found the cause, but I now have a workaround...

First running:

foreman-installer --foreman-foreman-url https://repo.ngds.dk:8043 --foreman-cli-foreman-url https://repo.ngds.dk:8043 --foreman-proxy-foreman-base-url https://repo.ngds.dk:8043 --foreman-server-ssl-port 8043 --foreman-proxy-ssl-port 8443

and

foreman-installer --reset-foreman-proxy-registered-name --reset-foreman-proxy-registered-proxy-url

Both of the above commands will fail, but we'll fix that later

then I create a fix script:

#!/bin/bash

cp /etc/httpd/conf.d/05-foreman-ssl.conf /etc/httpd/conf.d/05-foreman-ssl-altport.conf
sed -i "s/*:8043/*:443/g" /etc/httpd/conf.d/05-foreman-ssl-altport.conf

echo "Listen 443" > /etc/httpd/conf.d/ports.conf

systemctl restart httpd

This needs to be run after each time that foreman-installer has been run..

Hope that we can fix this the correct way in time..

Actions #6

Updated by Martin Juhl 4 months ago

Which brings me straight into a new problem.. the repos fetched from the server, still points to the 443 address :(

name: Ubuntu Noble Security
baseurl: https://repo.ngds.dk/pulp/deb/Default_Organization/Helsinge/Ubuntu_Noble/custom/Ubuntu_Noble/Ubuntu_Noble_Security
enabled: 1
gpgcheck: 0
sslverify: 1
sslcacert: /etc/rhsm/ca/katello-server-ca.pem
sslclientkey: /etc/pki/entitlement/8219216279493189048-key.pem
sslclientcert: /etc/pki/entitlement/8219216279493189048.pem
metadata_expire: 1
enabled_metadata: 0
arches: amd64
Types: deb
URIs: katello:/pulp/deb/Default_Organization/Helsinge/Ubuntu_Noble/custom/Ubuntu_Noble/Ubuntu_Noble_Security
Suites: default
Components: all
Trusted: yes
Architectures: amd64
Signed-By: /etc/apt/trusted.gpg.d/client.asc
id: Default_Organization_Ubuntu_Noble_Ubuntu_Noble_Security

Actions

Also available in: Atom PDF