Zabbix server not starting listener failed: zbx_tcp_listen() fatal error: unable to serve on any address [[-]:10051]

John Test asked:

Error in logs

listener failed: zbx_tcp_listen() fatal error: unable to serve on any address [[-]:10051]

[root@abc-zabserver-b zabbix]# netstat -lntp | grep 10051
tcp        0      0 0.0.0.0:10051               0.0.0.0:*                   LISTEN      2150/zabbix_server
tcp        0      0 :::10051                    :::*                        LISTEN      2150/zabbix_server

Service status and when trying to start

[root@abc-zabserver-b zabbix]# service zabbix-server status
zabbix_server is stopped
[root@abc-zabserver-b zabbix]# service zabbix-server start
Starting Zabbix server:                                    [  OK  ]
[root@abc-zabserver-b zabbix]# service zabbix-server status
zabbix_server is stopped

Process is running (sometimes shows multiple processes running)

[root@abc-zabserver-b zabbix]# ps afx | grep -i zabbix
 3852 pts/1    S+     0:00  |       _ grep -i zabbix
 2150 ?        S      0:00 zabbix_server -c /etc/zabbix/zabbix_server.conf

But service still stopped

[root@abc-zabserver-b zabbix]# service zabbix-server status
zabbix_server is stopped

My answer:


It can’t start because it’s already running (and the pid file somehow doesn’t reflect that). Kill it yourself, then restart it.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.