Unit firewalld.service is masked - firewalld

When I want to start the firewalld service, I got this error
[root#servera ~]# systemctl start firewalld
Failed to start firewalld.service: Unit firewalld.service is masked.
and I searched in the web and got a solution that run systemctl unmask firewalld, but it is not working, others get a message Removed symlink /etc/systemd/system/firewalld.service. but I got nothing.
When I want to enable this service, I got an error
[root#servera ~]# systemctl enable firewalld
Failed to enable unit: Unit file /usr/lib/systemd/system/firewalld.service is masked.
It's abnormal, because it's /usr/lib/systemd/system/firewalld.service, not /etc/systemd/system/firewalld.service
Any hints? Thanks!
I have tried
systemctl unmask firewalld
but it's no response and not working

Related

systemctl restart logrotate throws error "Failed to restart logrotate.service: Unit not found."

I'm trying to make changes to logrotate.conf just to be sure before making changes to md_logging.c
I'm not able to check the functionality through
systemctl restart logrotate
Failed to restart logrotate.service: Unit not found.
I also tried logrotate.conf with the following command :
systemctl restart logrotate.conf
Failed to restart logrotate.conf.service: Unit not found.

I'm not able to communicate with Kibana server

I'm getting this error kibana server is not ready yet can anyone help.
Just stop and start your kibana service.
sudo systemctl stop kibana.service
sudo systemctl start kibana.service
Restart the Kibana By using following cmnds
sudo service kibana stop
sudo service kibana start

Failed to start couchbase-server.service: Unit couchbase-server.service is masked

couchbase service stopped , so i started it manually by exec following command:
sudo service couchbase-server start and got response
Failed to start couchbase-server.service: Unit couchbase-server.service is masked.
I have ubuntu 16.04LTS and couchbase 5.1
you can unmask your service
sudo systemctl unmask couchbase-server
sudo systemctl start couchbase-server
Go to $CouchbaseHome and run following command to start and stop manually
Start
 ./bin/couchbase-server \-- -noinput -detached
Shutdown
./bin/couchbase-server -k

RHEL7: How to solve “ import read failed(2)”?

I am trying to add Docker’s public key for CS packages using the following command( which is taken from the link https://docs.docker.com/docker-trusted-registry/install/install-csengine/):
sudo rpm --import "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"
However, I am getting the following error on running the above command:
curl: (6) Could not resolve host: sks-keyservers.net; Name or service not known
error: https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e: import read failed(2).
Is it a firewall issue??
Please let me know if I need to add a host entry in /etc/hosts?
This problem is caused by your firewall, enable / disable it and try again
systemctl disable firewalld
systemctl stop firewalld
or
systemctl enable firewalld
systemctl start firewalld

How to enable firewall on Centos 7?

My firewall is currently inactive.
# systemctl status firewalld
firewalld.service
Loaded: masked (/dev/null)
Active: inactive (dead)
I used the following command to enable the firewall
$systemctl unmask firewalld
but I got this error
# systemctl unmask firewalld
Failed to issue method call: Access denied
Please advise.
Thanks in advance!
Try this:
systemctl unmask firewalld
return: Removed symlink /etc/systemd/system/firewalld.service.
After that, you can:
systemctl restart firewalld
Try this:
sudo systemctl restart firewalld
sudo systemctl enable firewalld
But before you should install firewalld. You can use yum for that:
sudo yum install firewalld

Resources