Home › Knowledge base › Agent service will not start on Linux after a kernel update
Agent service will not start on Linux after a kernel update
- Article
- KB-1075
- Category
- Installation
- Applies to
- Linux
Symptoms
After updating and restarting, the device is offline. systemctl status cbk-agent shows the unit as failed:
cbk-agent.service: Main process exited, code=exited, status=127/n/a
cbk-agent.service: Failed with result 'exit-code'.
or the journal shows error while loading shared libraries.
Causes
A distribution upgrade replaced a library. Upgrading between major releases (for example Ubuntu 22.04 to 24.04, or RHEL 8 to 9) changes library versions. The agent package for the old release no longer loads.
The package repository was disabled during the upgrade. Release upgrade tools disable third-party repositories. The agent is then left at its old version and is not upgraded with the system.
SELinux relabelling. After some kernel updates on RHEL-family systems with a full relabel, the agent's policy module needs reinstalling.
Resolution
Reinstall the agent package for the new release. Registration and configuration under /etc/cyphonix and /var/lib/cyphonix are kept.
Debian and Ubuntu:
sudo sed -i 's/^# *deb/deb/' /etc/apt/sources.list.d/cyphonix.list
sudo apt update && sudo apt install --reinstall cbk-agent
RHEL family:
sudo dnf reinstall cbk-agent
sudo semodule -l | grep cbk_agent
If the SELinux module is missing:
sudo semodule -i /usr/share/cyphonix/selinux/cbk_agent.pp
sudo restorecon -Rv /usr/lib/cyphonix /var/lib/cyphonix
Then:
sudo systemctl restart cbk-agent
sudo cbk status
Ordinary kernel updates
A routine kernel update within the same release should never stop the agent; it has no kernel modules. If it did, send diagnostics to support.