Troubleshoot offline RPM installation
Resolve common errors when installing Red Hat Edge Manager RPMs from an offline repository on a management server or edge device.
Missing dependency errors during dnf install
The offline tree is incomplete or was built on a prep machine that does not match the target Red Hat Enterprise Linux version.
- Confirm
repodata/exists under yourbaseurlpath. If metadata is missing after Option B, runcreaterepo_con the prep host again. See Preparing offline RPMs with subscription repositories. - Re-run
dnf reposync(Option A) ordnf download --resolve --alldeps(Option B) on a prep host that matches the target, then transfer the updated tree. - Confirm
flightctl-agent,flightctl-cli, andflightctl-selinuxRPMs are in the tree:find /var/rhem-offline-rpms -name 'flightctl-*.rpm' | grep -E 'agent|cli|selinux'
install-rpms.sh fails with dependency or version conflict
When the bundle was built on a newer Red Hat Enterprise Linux minor version than the target, system packages such as librepo can conflict. The install-rpms.sh script in the bundle passes --nobest to dnf to handle most cases. If installation still fails, rebuild the bundle on a prep host that matches the target Red Hat Enterprise Linux major and minor version. See Pinning bundle contents to a release version.
Quadlet service fails with manifest unknown or image not found
- Verify the image is in the local registry:
curl http://localhost:5000/v2/_catalog curl http://localhost:5000/v2/<image-path>/tags/list - Confirm
/etc/containers/registries.confredirects the image’s upstream registry prefix to your local registry. See Configuring registry redirection for disconnected installs. - Confirm the image tag in the local registry matches what the quadlet unit references. Rebuild the bundle with
--tag-overrideset to the RPM version you installed.
SELinux denials after installing the agent
- Verify the policy package and module:
rpm -q flightctl-selinux semodule -l | grep flightctl ls -Z /usr/bin/flightctl-agent - If the module is missing, reinstall from the offline repository:
sudo dnf reinstall -y --disablerepo='*' --enablerepo=rhem-offline flightctl-agent
Service fails to start after installation
- Review logs for the failed unit (
flightctl-agentorflightctl.target):sudo journalctl -u <unit> -b --no-pager - For the management server, confirm container images are in the local registry and
registries.confis configured. See Configuring registry redirection for disconnected installs. - For the agent, confirm enrollment configuration before you expect API connectivity. See Enrolling devices.