Paolo Gabrielli\’s Blog

Just another near empty WordPress.com’s weblog. But this is from Paolo ‘pkirk’ Gabrielli.

Failed to start nginx.service: Unit nginx.service is masked.

Posted by paolo on 29 March, 2016

To fix it I had to
‘cd /etc/systemd/system’
and
‘rm nginx.service’
(and reboot the system, but maybe that is not strictly necessary…)

2 Responses to “Failed to start nginx.service: Unit nginx.service is masked.”

  1. JJJ said

    We’ve run into this on every Nginx server we run, after upgrading from Ubuntu 14.04 to 16.04.

    Thanks for posting this!

  2. Julien said

    Or: `sudo systemctl unmask nginx.service`

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: