Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Unable to Start SystemD Service: "Unit wlp-agent-osqueryd.service is masked"
in Linux
Applies To:
Oracle Cloud Infrastructure
Oracle Linux
Symptoms
The wlp-agent-osqueryd.service cannot be started with the below error:
# systemctl start wlp-agent-osqueryd.service Failed to start wlp-agent-osqueryd.service: Unit wlp-agent-osqueryd.service is masked.
Changes
Application Patching
Cause
The service file is masked:
# systemctl list-unit-files | grep osquery wlp-agent-osqueryd.service masked
Also, it can be observed that the below unit file size is 0 bytes.
# ls -l /usr/lib/systemd/system/wlp-agent-osqueryd.service rwxr-x-- 1 root root 0 Feb 17 2024 /usr/lib/systemd/system/wlp-agent-osqueryd.service
Solution
Masked services are prevented from starting.
Try to unmask the service using the below command:
# systemctl unmask wlp-agent-osqueryd.service
If this does not help to start the service , reinstalling the package is recommended and will helps to re-create any damaged files.
Tagged:
0