While installing Red Hat satellite, smart_proxy_dynflow_core fails to start if /foo directory exists

Solution Verified - Updated -

Environment

  • Red Hat satellite 6.2

Issue

  • 'smart_proxy_dynflow_core' fails to start if /foo exists and is a directory:
systemd[1]: Starting Foreman smart proxy dynflow core service...
smart_proxy_dynflow_core[9507]: /opt/rh/rh-ruby22/root/usr/share/gems/gems/bundler-1.7.8/lib/bundler.rb:327:in `read': Is a directory @ io_fread - foo (Errno::EISDIR)
  • Installation fails if there a /foo in directory structure.

Resolution

  • Please make sure there is no /foo directory in your directory structure or any other unusual directory under /.
# df -hT
# ls -la /

Root Cause

  • Ruby services that use bundler ext fail to start if /foo exists and is a directory.

Diagnostic Steps

  • Installation log:
# satellite-installer --scenario satellite --foreman-initial-organization "name" --foreman-initial-location "name" --foreman-admin-username admin --foreman-admin-password xxxx
 Could not start Service[smart_proxy_dynflow_core]: Execution of '/usr/share/katello-installer-base/modules/service_wait/bin/service-wait start smart_proxy_dynflow_core' returned 1: Redirecting to /bin/systemctl start smart_proxy_dynflow_core.service
 /Stage[main]/Foreman_proxy::Plugin::Dynflow/Service[smart_proxy_dynflow_core]/ensure: change from stopped to running failed: Could not start Service[smart_proxy_dynflow_core]: Execution of '/usr/share/katello-installer-base/modules/service_wait/bin/service-wait start smart_proxy_dynflow_core' returned 1: Redirecting to /bin/systemctl start smart_proxy_dynflow_core.service
 Could not start Service[foreman-proxy]: Execution of '/usr/share/katello-installer-base/modules/service_wait/bin/service-wait start foreman-proxy' returned 1: Redirecting to /bin/systemctl start foreman-proxy.service
 /Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]/ensure: change from stopped to running failed: Could not start Service[foreman-proxy]: Execution of '/usr/share/katello-installer-base/modules/service_wait/bin/service-wait start foreman-proxy' returned 1: Redirecting to /bin/systemctl start foreman-proxy.service
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy]: Failed to call refresh: Proxycannot be registered (ApipieBindings::MissingArgumentsError: id): N/A
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy: Proxy cannot be registered (ApipieBindings::MissingArgumentsError: id): N/A
Installing             Done                                               [100%] []
  Something went wrong! Check the log for ERROR-level output

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.

Close

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