rhui-installer failing with Could not evaluate: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable.

Solution Verified - Updated -

Environment

  • Red Hat Update Infrastructure 3.0

Issue

  • Unable to install RHUI on a fresh setup.

Resolution

  • rhui-installer is failing as it is unable to perform any operations on /var which has noexec parameter set:
[root@rhua] # cat /etc/fstab |grep /var
/dev/mapper/rootvg-var_lv   /var    ext4    defaults,nodev,noexec   1   2
  • Remove any/all hardening parameters from the machine you are installing RHUI 3.0 on:
[root@rhua] # vi /etc/fstab |grep /var
/dev/mapper/rootvg-var_lv   /var    ext4    defaults,nodev  1   2

[root@rhua] # reboot
  • Resume installation.

Root Cause

  • noexec parameter set on /var of RHUA server.

Diagnostic Steps

  • Errors as found in /var/log/kafo/configuration.log of RHUA server:
[ERROR 2019-04-03 11:44:01 main] Errors encountered during run:
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Apache/Concat[/etc/httpd/conf/ports.conf]/Exec[concat_/etc/httpd/conf/ports.conf]: Could not evaluate: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Apache/Concat[/etc/httpd/conf/ports.conf]/Exec[concat_/etc/httpd/conf/ports.conf]: Failed to call refresh: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Apache/Concat[/etc/httpd/conf/ports.conf]/Exec[concat_/etc/httpd/conf/ports.conf]: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Pulp::Apache/Apache::Vhost[pulp-https]/Concat[05-pulp-https.conf]/Exec[concat_05-pulp-https.conf]: Could not evaluate: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Pulp::Apache/Apache::Vhost[pulp-https]/Concat[05-pulp-https.conf]/Exec[concat_05-pulp-https.conf]: Failed to call refresh: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Pulp::Apache/Apache::Vhost[pulp-https]/Concat[05-pulp-https.conf]/Exec[concat_05-pulp-https.conf]: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Apache/Apache::Vhost[default]/Concat[15-default.conf]/Exec[concat_15-default.conf]: Could not evaluate: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Apache/Apache::Vhost[default]/Concat[15-default.conf]/Exec[concat_15-default.conf]: Failed to call refresh: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Apache/Apache::Vhost[default]/Concat[15-default.conf]/Exec[concat_15-default.conf]: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: Failed to call refresh: pulp-manage-db returned 70 instead of one of [0]
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Pulp::Database/Exec[migrate_pulp_db]: pulp-manage-db returned 70 instead of one of [0]
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Puppet::Config/Concat[/etc/puppet/puppet.conf]/Exec[concat_/etc/puppet/puppet.conf]: Could not evaluate: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Puppet::Config/Concat[/etc/puppet/puppet.conf]/Exec[concat_/etc/puppet/puppet.conf]: Failed to call refresh: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable
[ERROR 2019-04-03 11:44:01 main]  /Stage[main]/Puppet::Config/Concat[/etc/puppet/puppet.conf]/Exec[concat_/etc/puppet/puppet.conf]: '/var/lib/puppet/concat/bin/concatfragments.rb' is not executable

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.

Comments