Cannot start a service, getting "Failed to start unit .. is masked" error

Solution In Progress - Updated -

Issue

  • Cannot start or enable a service, getting "Failed to .. is masked" message.
  • Cannot start or enable a systemd unit, getting "Failed to .. is masked" message.

Example when trying to start the httpd.service unit:

# systemctl start httpd
Failed to start httpd.service: Unit httpd.service is masked.

Example when trying to enable the httpd.service unit:

# systemctl enable httpd
Failed to enable unit: Unit file /etc/systemd/system/httpd.service is masked.

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content