ant-media-server Aws ubuntu ip:5080 can't connecting - ant-media-server

ant-media-server Aws ubuntu ip:5080 can't connecting
Netstat
tcp 0 0 0.0.0.0:5080 0.0.0.0:* LISTEN
sudo systemctl status antmedia.service
Loaded: loaded (/lib/systemd/system/antmedia.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-04-09 06:06:41 UTC; 16min ago
Then i test with the port ip:5080 can't connecting

Related

Unexpected result of Nginx

I've a server with 2 services on it. Software are Ubuntu20.04 OS, Nginx and certbot.
So, then I check nginx status:
~$ sudo systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2021-12-13 10:48:55 CET; 35min ago
Docs: man:nginx(8)
....
des. 13 10:48:55 u nginx[248435]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
des. 13 10:48:55 u nginx[248435]: nginx: [emerg] still could not bind()
des. 13 10:48:55 u systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
des. 13 10:48:55 u systemd[1]: nginx.service: Failed with result 'exit-code'.
des. 13 10:48:55 u systemd[1]: Failed to start A high performance web server and a reverse proxy server.
and checking of configuration:
~$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
But at the same time both services are up and working as they should. If I ask about nginxs' processes, i've next
~$ sudo ps -ax | grep nginx
245336 ? S 0:00 nginx: worker process
245337 ? S 0:00 nginx: worker process
245338 ? S 0:00 nginx: worker process
250704 pts/7 S+ 0:00 grep --color=auto nginx
and check one of them (it doesn't matter which one)
~$ sudo systemctl status 245336
● snap.certbot.certbot.***********.scope
Loaded: loaded (/run/systemd/transient/snap.certbot.certbot.***********.scope; transien>
Transient: yes
Active: active (running) since Mon 2021-12-13 09:39:30 CET; 1h 35min ago
I can't imagine what happens and why it works in this way. Before this problem, I updated certbot and deleted a few certifates (they were expired and unused).
Who can explain me how it's work? And why are the services up?

Is there a way to resolve an issue with nginx status Active: inactive (dead) problem in CENTOS

This is what it brings when you check nginx status
[root#ttproxyapp conf.d]# service nginx status
Redirecting to /bin/systemctl status nginx.service
● nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: inactive (dead)
sudo systemctl stop apache2
sudo systemctl start nginx
should work since looks like the port is in use (with apache probably)
It realy looks like your NGINX ins't running. nginx -s reload is just working if there is a running instance and therfore a PID-file.
Please check the result of the following command.
[root#localhost conf.d]# sudo ps -elf | grep nginx
Should be something like
1 S root 88262 1 0 80 0 - 13143 sigsus 23:47 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
5 S nginx 88263 88262 0 80 0 - 13257 ep_pol 23:47 ? 00:00:00 nginx: worker process
0 R root 88265 69227 0 80 0 - 28178 - 23:47 pts/1 00:00:00 grep --color=auto nginx
You need at least! the master process and the worker process! If there is no process start your instance by typing
sudo /bin/systemctl start nginx.service OR sudo service nginx start
Check your processlist after running the command.
After you have started the NGINX service there should be PID-file located at
/var/run/nginx.pid and sudo systemctl status nginx.service should printout something like
[root#localhost conf.d]# systemctl status nginx.service
● nginx.service - NGINX Plus - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-03-14 23:47:13 EDT; 5min ago
Docs: https://www.nginx.com/resources/
Process: 88232 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 88260 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 88251 ExecStartPre=/usr/libexec/nginx-plus/check-subscription (code=exited, status=0/SUCCESS)
Main PID: 88262 (nginx)
Tasks: 2
Memory: 1.7M
CGroup: /system.slice/nginx.service
├─88262 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
└─88263 nginx: worker process
Mar 14 23:47:13 localhost.localdomain systemd[1]: Starting NGINX Plus - high performance web server...
Mar 14 23:47:13 localhost.localdomain systemd[1]: Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory
Mar 14 23:47:13 localhost.localdomain systemd[1]: Started NGINX Plus - high performance web server.
I am running NGINX Plus but it doesn't matter in this case.
there is maybe an apache server running. you must stop that apache server order run the Nginx server.
sudo systemctl stop apache2
sudo systemctl start nginx

Kibana restarts every 14seconds in CentOS7 Core

This is a newly installed Elasticsearch and Kibana on CentOS7 Core. This system was hardened following "CIS_CentOS_Linux_7_Benchmark_v2.2.0.pdf". I'm experiencing a very weird situation wherein Kibana restarts every 14 seconds, please refer to the following for session excerpts:
[root#syslog ~]#
[root#syslog ~]# cat /etc/*release
CentOS Linux release 7.6.1810 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.6.1810 (Core)
CentOS Linux release 7.6.1810 (Core)
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# rpm -qi kibana
Name : kibana
Version : 7.4.0
Release : 1
Architecture: x86_64
Install Date: Tue 15 Oct 2019 04:12:07 PM +08
Group : default
Size : 721891086
License : Elastic License
Signature : RSA/SHA512, Fri 27 Sep 2019 06:42:56 PM +08, Key ID d27d666cd88e42b4
Source RPM : kibana-7.4.0-1.src.rpm
Build Date : Fri 27 Sep 2019 05:20:41 PM +08
Build Host : packer-virtualbox-iso-1559162487
Relocations : /
Packager : Kibana Team <info#elastic.co>
Vendor : Elasticsearch, Inc.
URL : https://www.elastic.co
Summary : Explore and visualize your Elasticsearch data
Description :
Explore and visualize your Elasticsearch data
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# rpm -qi elasticsearch
Name : elasticsearch
Epoch : 0
Version : 7.4.0
Release : 1
Architecture: x86_64
Install Date: Tue 15 Oct 2019 03:58:18 PM +08
Group : Application/Internet
Size : 491338024
License : Elastic License
Signature : RSA/SHA512, Fri 27 Sep 2019 06:39:55 PM +08, Key ID d27d666cd88e42b4
Source RPM : elasticsearch-7.4.0-1-src.rpm
Build Date : Fri 27 Sep 2019 04:49:21 PM +08
Build Host : packer-virtualbox-iso-1559162487
Relocations : /usr
Packager : Elasticsearch
Vendor : Elasticsearch
URL : https://www.elastic.co/
Summary : Distributed RESTful search engine built for the cloud
Description :
Reference documentation can be found at
https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
and the 'Elasticsearch: The Definitive Guide' book can be found at
https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# grep -v ^# /etc/kibana/kibana.yml | sed '/^$/d'
server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://127.0.0.1:9200"]
elasticsearch.requestTimeout: 50000
elasticsearch.startupTimeout: 50000
pid.file: /var/run/kibana/kibana.pid
logging.dest: /var/log/kibana/kibana.log
logging.verbose: true
xpack.security.encryptionKey: "kibanaencryptionKey4n0th3r3ncrypt10nK3y"
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# grep -v ^# /etc/elasticsearch/elasticsearch.yml | sed '/^$/d'
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: localhost
http.port: 9200
[root#syslog ~]#
[root#syslog ~]# curl http://127.0.0.1:9200
{
"name" : "syslog",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "lQmq1kcpTmKd5JAXrpg3-w",
"version" : {
"number" : "7.4.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "22e1767283e61a198cb4db791ea66e3f11ab9910",
"build_date" : "2019-09-27T08:36:48.569419Z",
"build_snapshot" : false,
"lucene_version" : "8.2.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# systemctl start kibana
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 2s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]#
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 3s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]#
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 5s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]#
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 6s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 7s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 8s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 9s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 10s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 12s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 13s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
└─25870 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:18:55 +08; 14s ago
Main PID: 25870 (node)
CGroup: /system.slice/kibana.service
‣ 25870 [node]
Oct 20 08:18:55 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 839ms ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 2s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 3s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 4s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 5s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 6s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 7s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 8s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 9s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 10s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 11s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 12s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:10 +08; 13s ago
Main PID: 25906 (node)
CGroup: /system.slice/kibana.service
└─25906 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:10 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:24 +08; 332ms ago
Main PID: 25943 (node)
CGroup: /system.slice/kibana.service
└─25943 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:24 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 1s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 2s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 3s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 4s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 5s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 6s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 7s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 8s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 9s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 10s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 11s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 12s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 13s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:39 +08; 13s ago
Main PID: 25981 (node)
CGroup: /system.slice/kibana.service
└─25981 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:39 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:53 +08; 1ms ago
Main PID: 26021 ((kibana))
CGroup: /system.slice/kibana.service
└─26021 (kibana)
Oct 20 08:19:53 syslog systemd[1]: Started Kibana.
[root#syslog ~]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-10-20 08:19:53 +08; 764ms ago
Main PID: 26021 (node)
CGroup: /system.slice/kibana.service
└─26021 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 20 08:19:53 syslog systemd[1]: Started Kibana.
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# rpm -qi nginx
Name : nginx
Epoch : 1
Version : 1.12.2
Release : 3.el7
Architecture: x86_64
Install Date: Tue 15 Oct 2019 05:57:15 PM +08
Group : System Environment/Daemons
Size : 1575034
License : BSD
Signature : RSA/SHA256, Fri 10 May 2019 04:20:18 PM +08, Key ID 6a2faea2352c64e5
Source RPM : nginx-1.12.2-3.el7.src.rpm
Build Date : Fri 10 May 2019 04:10:45 PM +08
Build Host : buildvm-14.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager : Fedora Project
Vendor : Fedora Project
URL : http://nginx.org/
Bug URL : https://bugz.fedoraproject.org/nginx
Summary : A high performance web server and reverse proxy server
Description :
Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and
IMAP protocols, with a strong focus on high concurrency, performance and low
memory usage.
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# grep -v ^# /etc/nginx/nginx.conf | sed '/^$/d'
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}
[root#syslog ~]#
[root#syslog ~]# cat /etc/nginx/conf.d/syslog.local.conf
server {
listen 80;
server_name syslog.local;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.kibana;
location / {
proxy_pass http://127.0.0.1:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# curl http://127.0.0.1:5601
curl: (56) Recv failure: Connection reset by peer
[root#syslog ~]#
[root#syslog ~]# curl http://127.0.0.1:5601
curl: (7) Failed connect to 127.0.0.1:5601; Connection refused
[root#syslog ~]#
[root#syslog ~]# curl http://127.0.0.1:5601
Kibana server is not ready yet[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# curl http://127.0.0.1:5601
curl: (56) Recv failure: Connection reset by peer
[root#syslog ~]#
[root#syslog ~]# curl http://127.0.0.1:5601
curl: (7) Failed connect to 127.0.0.1:5601; Connection refused
[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]# curl http://127.0.0.1:5601
Kibana server is not ready yet[root#syslog ~]#
[root#syslog ~]#
[root#syslog ~]#
The kibana.log can be seen/downloaded at here
Thank you
I re-installed Elasticsearch and Kibana but still getting that restart every 14 seconds. I was able to resolve this issue by removing "noexec" from /var; got the solution from https://discuss.elastic.co/t/kibana-server-is-not-ready-yet-throw-er-unhandled-error-event/175879/7
I actually debugged the startup of Kibana and this was the log I got during the stop to start:
Oct 30 15:58:16 syslog kibana: {"type":"log","#timestamp":"2019-10-30T07:58:16Z","tags":["status","plugin:reporting#7.4.1","info"],"pid":14119,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Oct 30 15:58:16 syslog kibana: {"type":"log","#timestamp":"2019-10-30T07:58:16Z","tags":["reporting","warning"],"pid":14119,"message":"The Reporting plugin encountered issues launching Chromium in a self-test. You may have trouble generating reports: [TypeError: input.on is not a function]"}
Oct 30 15:58:16 syslog kibana: {"type":"log","#timestamp":"2019-10-30T07:58:16Z","tags":["reporting","warning"],"pid":14119,"message":"See Chromium's log output at \"/var/lib/kibana/headless_shell-linux/chrome_debug.log\""}
Oct 30 15:58:16 syslog kibana: {"type":"log","#timestamp":"2019-10-30T07:58:16Z","tags":["reporting","warning"],"pid":14119,"message":"Reporting plugin self-check failed. Please check the Kibana Reporting settings. Error: Could not close browser client handle!"}
Oct 30 15:58:17 syslog kibana: events.js:174
Oct 30 15:58:17 syslog kibana: throw er; // Unhandled 'error' event
Oct 30 15:58:17 syslog kibana: ^
Oct 30 15:58:17 syslog kibana: Error: spawn /var/lib/kibana/headless_shell-linux/headless_shell EACCES
Oct 30 15:58:17 syslog kibana: at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
Oct 30 15:58:17 syslog kibana: at onErrorNT (internal/child_process.js:415:16)
Oct 30 15:58:17 syslog kibana: at process._tickCallback (internal/process/next_tick.js:63:19)
Oct 30 15:58:17 syslog kibana: Emitted 'error' event at:
Oct 30 15:58:17 syslog kibana: at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
Oct 30 15:58:17 syslog kibana: at onErrorNT (internal/child_process.js:415:16)
Oct 30 15:58:17 syslog kibana: at process._tickCallback (internal/process/next_tick.js:63:19)
Oct 30 15:58:17 syslog systemd: kibana.service: main process exited, code=exited, status=1/FAILURE
Oct 30 15:58:17 syslog systemd: Unit kibana.service entered failed state.
Oct 30 15:58:17 syslog systemd: kibana.service failed.
Oct 30 15:58:17 syslog systemd: kibana.service holdoff time over, scheduling restart.
Oct 30 15:58:17 syslog systemd: Stopped Kibana.
Oct 30 15:58:17 syslog systemd: Started Kibana.
Oct 30 15:58:20 syslog kibana: {"type":"log","#timestamp":"2019-10-30T07:58:20Z","tags":["info","plugins-system"],"pid":14144,"message":"Setting up [4] plugins: [security,translations,inspector,data]"}
Oct 30 15:58:20 syslog kibana: {"type":"log","#timestamp":"2019-10-30T07:58:20Z","tags":["info","plugins","security"],"pid":14144,"message":"Setting up plugin"}
which led me to search for "kibana: Error: spawn /var/lib/kibana/headless_shell-linux/headless_shell EACCES" that directed me to the solution URL.
Thanks to Kaldayr for the solution.
One other potential place to look for info on Kibana shutting down and restarting is /var/log/messages
grep kibana /var/log/messages

Shiny-server installation: Server not responding on port 3838

I installed the shiny-server on a Ubuntu 16.04.1 and according to the console output it is active and running:
systemctl status shiny-server
● shiny-server.service - ShinyServer
Loaded: loaded (/etc/systemd/system/shiny-server.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2016-08-24 18:17:09 CEST; 15h ago
Process: 13175 ExecStartPost=/bin/sleep 3 (code=exited, status=0/SUCCESS)
Main PID: 13179 (shiny-server)
Tasks: 7
Memory: 28.5M
CPU: 158ms
CGroup: /system.slice/shiny-server.service
├─13174 /bin/bash -c /opt/shiny-server/bin/shiny-server --pidfile=/var/run/shiny-server.p
└─13179 /opt/shiny-server/ext/node/bin/shiny-server /opt/shiny-server/lib/main.js --pidfi
lines 1-11/11 (END)
Then I opened the port 3838 as stated in the installation guide:
netstat -ntlp | grep LISTEN
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:3838 0.0.0.0:* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
sudo ufw status
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
3838/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
3838/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
Howevever if I try to access my server over the port 3838 in a browser, I don't get any response from the server and the site stays blank and eventually times out.
Any ideas what I might be missing?
Apparently there was some problem with the port 3838 on my server. Although the console output above states that it is open and listed as "LISTEN", it still didn't work. When I changed the default port for my shiny-server in the configuration file (/etc/shiny-server/shiny-server.conf) to 80, it suddently worked:
# Define a top-level server which will listen on a port
server {
# Instruct this server to listen on port 3838
listen 80;
...

How to disable FTP port (Debian)?

I am newbie in Debian. I have open FTP port (21) on Debian 6 (http server of the system is Nginx). How I can stop or disable the port via service or somehow yet? The command /etc/init.d/proftpd stop is not working, it shows in console bash: /etc/init.d/proftpd: No such file or directory because proftpd is absent.
Inputing this command netstat -tnlp, you can find which process is running on port 21.
Then you can some work by youself.
If you are to lazy to stop the service from running you can write an iptables rule
sbin/iptables -A INPUT -p tcp --destination-port {PORT-NUMBER-HERE} -j DROP
Start by checking if your port is listening
sudo ss -tulnp | grep LISTEN
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp LISTEN 0 5 127.0.0.1:29754 0.0.0.0:* users:(("vpnagentd",pid=960,fd=4))
tcp LISTEN 0 128 0.0.0.0:17500 0.0.0.0:* users:(("dropbox",pid=3129583,fd=48))
tcp LISTEN 0 50 0.0.0.0:445 0.0.0.0:* users:(("smbd",pid=923696,fd=48))
tcp LISTEN 0 128 127.0.0.1:17600 0.0.0.0:* users:(("dropbox",pid=3129583,fd=67))
tcp LISTEN 0 128 127.0.0.1:17603 0.0.0.0:* users:(("dropbox",pid=3129583,fd=75))
tcp LISTEN 0 50 0.0.0.0:139 0.0.0.0:* users:(("smbd",pid=923696,fd=49))
tcp LISTEN 0 32 0.0.0.0:53 0.0.0.0:* users:(("dnsmasq",pid=1276,fd=7))
tcp LISTEN 0 32 0.0.0.0:21 0.0.0.0:* users:(("vsftpd",pid=1230,fd=3))
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=43857,fd=3))
tcp LISTEN 0 128 127.0.0.1:631 0.0.0.0:* users:(("cupsd",pid=3138801,fd=7))
tcp LISTEN 0 128 [::]:17500 [::]:* users:(("dropbox",pid=3129583,fd=47))
tcp LISTEN 0 2 *:3389 *:* users:(("xrdp",pid=1306,fd=11))
tcp LISTEN 0 50 [::]:445 [::]:* users:(("smbd",pid=923696,fd=46))
tcp LISTEN 0 50 [::]:139 [::]:* users:(("smbd",pid=923696,fd=47))
tcp LISTEN 0 32 [::]:53 [::]:* users:(("dnsmasq",pid=1276,fd=9))
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=43857,fd=4))
tcp LISTEN 0 2 [::1]:3350 [::]:* users:(("xrdp-sesman",pid=1295,fd=7))
tcp LISTEN 0 128 [::1]:631 [::]:* users:(("cupsd",pid=3138801,fd=6))
So, you see in port 21 you have service vsftpd listening.
You can check the status:
sudo service vsftpd status
● vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-07-19 09:42:45 EDT; 2 months 15 days ago
Main PID: 1230 (vsftpd)
Tasks: 1 (limit: 38363)
Memory: 972.0K
CPU: 7ms
CGroup: /system.slice/vsftpd.service
└─1230 /usr/sbin/vsftpd /etc/vsftpd.conf
Now, you can block the port with the firewall (for example you can use ufw), or stop the service
$ sudo service vsftpd stop
$ sudo service vsftpd status
● vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2022-10-03 10:55:50 EDT; 9s ago
Process: 1230 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=killed, signal=TERM)
Main PID: 1230 (code=killed, signal=TERM)
CPU: 7ms
Oct 03 10:55:50 Tuxy systemd[1]: Stopping vsftpd FTP server...
Oct 03 10:55:50 Tuxy systemd[1]: vsftpd.service: Succeeded.
Oct 03 10:55:50 Tuxy systemd[1]: Stopped vsftpd FTP server.
So, in summary. Install ufw. Unblock only ports you are going to use (ssh, etc). Start only the services you are going to use. (sudo service *** start/stop)
good luck

Resources