Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Why are MetaDefender Core AppSec Engines Failing to Load After RHEL 8 to RHEL 9 Upgrade?
Applies to
MetaDefender Core 5.x on RHEL 9 after in-place upgrade from RHEL 8, especially hardened builds where engine paths may inherit noexec.
Summary
Post-upgrade, some Core servers fail to start AppSec engines. The engines directory may be empty or engines fail self-tests with errors like:
Wait for hello message timeoutfailed to map segment from shared object
Primary cause: the filesystem hosting engines is mounted with noexec. Contributing factors: missing RHEL 9 libraries and SELinux denials.
Symptoms
Engines don’t load / self-tests fail.
enginesfolder not repopulating after updates or manual copy.Errors as above in UI/logs.
Diagnosis
Mount options
ENGINES_DIR=/var/lib/ometascan/engines findmnt -T "$ENGINES_DIR" grep -nE ' /var |/ometascan|/engines' /etc/fstabIf you see
noexec, engines can’t run.SELinux status/denials
getenforce ausearch -m avc -ts recent | tail -n 50RHEL 9 deps present?
rpm -q libnsl krb5-libs libicu openssl-libs zlib compat-openssl11 || true
Resolution
A. Remove noexec from engines filesystem
Edit
/etc/fstabto dropnoexecfor the partition backing engines (e.g.,/var).Remount:
sudo mount -o remount,exec /var findmnt -T /var/lib/ometascan/enginesIf policy requires
noexecon/var, move engines to a dedicatedexecmount and bind-mount back.
B. Install required libraries
C. Address SELinux (only if AVCs present)
Temporary for troubleshooting:
sudo setenforce 0 # revert with: sudo setenforce 1Permanent policy:
ausearch -m avc -ts recent | audit2allow -M mdcore-engines sudo semodule -i mdcore-engines.pp sudo restorecon -Rv /var/lib/ometascan/engines
Verification
enginesdirectory repopulates.Engine self-tests pass; logs show successful startup/handshake.
No new SELinux AVCs; mount for engines shows
exec.
Best Practices
Keep engines on a filesystem mounted with
exec; bind-mount if/varmust benoexec.Preinstall RHEL 9 runtime libraries on Core nodes.
Validate SELinux contexts/policies on hardened builds.
Support:
If Further Assistance is required, please proceed to log a [support case or chat with our support engineer at https://my.opswat.com/support.