Netdata Community

LISTENER: IPv4 bind() on ip '127.0.0.1' port 19999, socktype 1 failed. (errno 98, Address already in use)

##Linux Mint 20.1 Cinnamon; Intel© Core™ i7-4790 CPU @ 3.60GHz × 4

New Netdata installation, immediate after reboot I get this error message,

but "netstat | grep “19999” does not show port 19999 in use

What I expected to happen

I expected netdata to start

Hey,

Can you repeat the error message just to verify my understanding? I don’t seem to be able to see it.

Hi @papaworx

The command doesn’t show network connections in LISTEN state.

Try

  • sudo netstat -ntlp | grep 19999 or
  • sudo ss -ntlp | grep 19999

Hi ilyam8,
thanks, you were right.
. . . tcp 0 0 127.0.0.1:19999 0.0.0.0:* LISTEN 1882/netdata
. . . LISTEN 0 4096 127.0.0.1:19999 0.0.0.0:* users:((“netdata”,pid=1882,fd=4))

But it suggests that it is netdata itself that is using the port, nothing else. So how does that help me?

That means that the netdata process is running on your server and it binds to 127.0.0.1:19999.

You can see it using `ps` command
[ilyam@pc ~]$ ps faxu | grep "[n]etdata"
netdata   157743  1.1  0.1 297060 43636 ?        Ssl  12:05   0:11 /opt/netdata/usr/sbin/netdata -P /opt/netdata/var/run/netdata/netdata.pid -D
netdata   157765  0.0  0.0  29692  6384 ?        Sl   12:05   0:00  \_ /opt/netdata/usr/sbin/netdata --special-spawn-server
netdata   157894  0.2  0.0   4500  3364 ?        S    12:05   0:02  \_ bash /opt/netdata/usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
root      157901  0.5  0.0 467644  5060 ?        Sl   12:05   0:05  \_ /opt/netdata/usr/libexec/netdata/plugins.d/ebpf.plugin 1
netdata   157902  0.9  0.0  60328  6164 ?        S    12:05   0:09  \_ /opt/netdata/usr/libexec/netdata/plugins.d/apps.plugin 1
netdata   157906  2.1  0.1 236120 57208 ?        Sl   12:05   0:21  \_ /usr/bin/python /opt/netdata/usr/libexec/netdata/plugins.d/python.d.plugin 1
netdata   157907  0.0  0.0      0     0 ?        Z    12:05   0:00  \_ [cups.plugin] <defunct>
netdata   157908  0.0  0.0 723920 20700 ?        Sl   12:05   0:00  \_ /opt/netdata/usr/libexec/netdata/plugins.d/go.d.plugin 1

Likely you install Netdata several times.

You haven’t provided details on your install method, how did you install Netdata, why you decided to reinstall it, etc.