Nutanix Guest Tools on Linux using port 5000 per default, preventing start of first site

CMK version: 2.2p5

The forum search did not find any so i assume this is the first entry on this :slight_smile:
A few days ago i had a support call where a site won’t start.
Error:
Temporary filesystem already mounted
Starting agent-receiver…OK
Starting mkeventd…OK
Starting liveproxyd…OK
Starting mknotifyd…OK
Starting rrdcached…OK
Starting cmc…OK
Starting apache…(98)Address already in use: AH00072: make_sock: could not bind to address 127.0.0.1:5000
no listening sockets available, shutting down
AH00015: Unable to open logs
…ERROR
Starting dcd…OK
Starting redis…OK
Initializing Crontab…OK

→ lsof -i -P -n | grep LISTEN

systemd 1 root 36u IPv4 36373 0t0 TCP *:111 (LISTEN)
systemd 1 root 38u IPv6 42044 0t0 TCP *:111 (LISTEN)
rpcbind 642 _rpc 4u IPv4 36373 0t0 TCP *:111 (LISTEN)
rpcbind 642 _rpc 6u IPv6 42044 0t0 TCP *:111 (LISTEN)
systemd-r 685 systemd-resolve 14u IPv4 41550 0t0 TCP 127.0.0.53:53 (LISTEN)
cmk-agent 710 cmk-agent 9u IPv6 38898 0t0 TCP *:6556 (LISTEN)
sshd 783 root 3u IPv4 42843 0t0 TCP *:22 (LISTEN)
sshd 783 root 4u IPv6 42845 0t0 TCP *:22 (LISTEN)
python3 788 root 11u IPv4 45383 0t0 TCP 127.0.0.1:5000 (LISTEN)
apache2 871 root 4u IPv6 42877 0t0 TCP *:80 (LISTEN)
apache2 871 root 6u IPv6 42881 0t0 TCP *:443 (LISTEN)
apache2 873 www-data 4u IPv6 42877 0t0 TCP *:80 (LISTEN)
apache2 873 www-data 6u IPv6 42881 0t0 TCP *:443 (LISTEN)
apache2 874 www-data 4u IPv6 42877 0t0 TCP *:80 (LISTEN)
apache2 874 www-data 6u IPv6 42881 0t0 TCP *:443 (LISTEN)
master 2064 root 13u IPv4 45774 0t0 TCP *:25 (LISTEN)
master 2064 root 14u IPv6 45775 0t0 TCP *:25 (LISTEN)
gunicorn: 5359 hklw 7u IPv6 55872 0t0 TCP *:8003 (LISTEN)
gunicorn: 5363 hklw 7u IPv6 55872 0t0 TCP *:8003 (LISTEN)
apache2 5519 hklw 3u IPv4 54105 0t0 TCP 127.0.0.1:5003 (LISTEN)
apache2 5522 hklw 3u IPv4 54105 0t0 TCP 127.0.0.1:5003 (LISTEN)
apache2 5523 hklw 3u IPv4 54105 0t0 TCP 127.0.0.1:5003 (LISTEN)
gunicorn: 6328 printers 7u IPv6 60013 0t0 TCP *:8000 (LISTEN)
gunicorn: 6381 printers 7u IPv6 60013 0t0 TCP *:8000 (LISTEN)
apache2 7614 hklw 3u IPv4 54105 0t0 TCP 127.0.0.1:5003 (LISTEN)

→ ls -l /proc/788/exe
lrwxrwxrwx 1 root root 0 Jul 18 15:09 /proc/788/exe → /usr/local/nutanix/ngt/python36/python3

So Nutanix Guest Tools starting before Apache, blocking port 5000 and preventing the site from being started.
Note: Site was there first, tools have been installed after migration from ESX to AHV.
Changing port to 5001 solved it.

BR Thomas

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.