ProLiant Servers (ML,DL,SL)
1832679 Members
2773 Online
110043 Solutions
New Discussion

Morpheus Reconfigure Hangs at `ruby_block[elasticsearch_wait]` on RHEL and other linux OS

 
asingh1
HPE Pro

Morpheus Reconfigure Hangs at `ruby_block[elasticsearch_wait]` on RHEL and other linux OS

During an upgrade or initial setup of the Morpheus appliance on RHEL 8 and other linux-based os, you may encounter a hang or stall at the following step when running:

sudo morpheus-ctl reconfigure

`
The process hangs specifically at:

* ruby_block[wait for elasticsearch service socket] action run (skipped due to not_if)
(up to date)
* ruby_block[elasticsearch_wait] action run


This behavior typically indicates that the Elasticsearch service cannot start. In many RHEL-based systems, this is due to the fapolicyd (File Access Policy Daemon) blocking the execution of required binaries.

Root Cause

fapolicyd is a security daemon introduced in RHEL 8 and its derivatives (like Rocky Linux) that enforces policies restricting which binaries can be executed. If it is running in **`BLOCK`** mode, it may deny access to:

* Elasticsearch components
* Ruby or embedded binaries used by Morpheus
* Scripts and services during the reconfigure process

This results in `morpheus-ctl reconfigure` hanging.
How to Identify the Issue:

1. Check if fapolicyd is running:

systemctl status fapolicyd


Solution
Temporarily Disable fapolicyd

sudo systemctl stop fapolicyd
sudo systemctl disable fapolicyd


Then rerun:

sudo morpheus-ctl reconfigure


This will allow the Morpheus services to start without interference.

Summary:
If you're running Morpheus on RHEL 8 / Rocky Linux 8, and encounter issues during `morpheus-ctl reconfigure`, particularly related to Elasticsearch or hanging Ruby blocks, `fapolicyd` is likely the root cause. Disabling it allows the configuration to proceed smoothly.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo