Another instance is running

Tags:

#1 PaulAPS

Hello,

I have a problem with a nxlog collector for a SIEM Graylog. On the Graylog page the nxlog appears to be Failing. But on the collector the service looks like running :

root@:/var/run/nxlog# systemctl status nxlog
● nxlog.service - LSB: logging daemon
Loaded: loaded (/etc/init.d/nxlog; generated; vendor preset: enabled)
Active: active (running) since Tue 2021-12-21 15:33:07 CET; 1 day 19h ago
Docs: man:systemd-sysv-generator(8)
Process: 26310 ExecStop=/etc/init.d/nxlog stop (code=exited, status=0/SUCCESS)
Process: 26314 ExecStart=/etc/init.d/nxlog start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nxlog.service
└─26320 /usr/bin/nxlog

When I look into the internal logs for troubleshooting I have this :

root@:/var/run/nxlog# tail /var/log/nxlog/nxlog.log
2021-12-23 10:17:32 INFO configuration OK
2021-12-23 10:17:32 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable
2021-12-23 10:17:33 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable
2021-12-23 10:17:34 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable
2021-12-23 10:17:35 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable
2021-12-23 11:17:32 INFO configuration OK
2021-12-23 11:17:32 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable
2021-12-23 11:17:33 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable
2021-12-23 11:17:34 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable
2021-12-23 11:17:35 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable

root@:/var/run/nxlog# cat /var/run/nxlog/nxlog.pid
26320

root@BDXSVLG01:/var/run/nxlog# ps -aux |grep nxlog
root 4008 0.0 0.0 12776 980 pts/6 D+ 11:21 0:00 grep --color=auto nxlog
nxlog 26320 0.0 0.0 275248 224 ? Ssl déc.21 1:03 /usr/bin/nxlog

The service that is already running is the one with the right pid so I don't get where my problem comes from.

Thank you in advance for your help.

BR, Paul

#2 KlevinDeactivated Nxlog ✓
#1 PaulAPS
Hello, I have a problem with a nxlog collector for a SIEM Graylog. On the Graylog page the nxlog appears to be Failing. But on the collector the service looks like running : root@:/var/run/nxlog# systemctl status nxlog ● nxlog.service - LSB: logging daemon Loaded: loaded (/etc/init.d/nxlog; generated; vendor preset: enabled) Active: active (running) since Tue 2021-12-21 15:33:07 CET; 1 day 19h ago Docs: man:systemd-sysv-generator(8) Process: 26310 ExecStop=/etc/init.d/nxlog stop (code=exited, status=0/SUCCESS) Process: 26314 ExecStart=/etc/init.d/nxlog start (code=exited, status=0/SUCCESS) CGroup: /system.slice/nxlog.service └─26320 /usr/bin/nxlog When I look into the internal logs for troubleshooting I have this : root@:/var/run/nxlog# tail /var/log/nxlog/nxlog.log 2021-12-23 10:17:32 INFO configuration OK 2021-12-23 10:17:32 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable 2021-12-23 10:17:33 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable 2021-12-23 10:17:34 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable 2021-12-23 10:17:35 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable 2021-12-23 11:17:32 INFO configuration OK 2021-12-23 11:17:32 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable 2021-12-23 11:17:33 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable 2021-12-23 11:17:34 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable 2021-12-23 11:17:35 ERROR Another instance is already running (pid 26320);Resource temporarily unavailable root@:/var/run/nxlog# cat /var/run/nxlog/nxlog.pid 26320 root@BDXSVLG01:/var/run/nxlog# ps -aux |grep nxlog root 4008 0.0 0.0 12776 980 pts/6 D+ 11:21 0:00 grep --color=auto nxlog nxlog 26320 0.0 0.0 275248 224 ? Ssl déc.21 1:03 /usr/bin/nxlog The service that is already running is the one with the right pid so I don't get where my problem comes from. Thank you in advance for your help. BR, Paul

Hello Sir,

Wondering if you can close the first instance will the second one run? Also do they run the same modules?

Sincerely Klevin