Unable to Start SystemD Service: "Unit wlp-agent-osqueryd.service is masked" — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
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"

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!