Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245040

Re: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use
Date 2022-02-06 15:50 +0100
Message-ID <DNR1v-2vq-1@gated-at.bofh.it> (permalink)
References <DNQyt-2lz-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Feb 06, 2022 at 03:02:59PM +0100, Maurizio Caloro wrote:
> No other service are running on this port 1812, yes I'am shure.

Don't just tell us.  SHOW us.

unicorn:~$ sudo lsof -i :1812
[sudo] password for greg: 
unicorn:~$ 

If there's something using that port, lsof will show it:

unicorn:~$ sudo lsof -i :25
COMMAND      PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
tcpserver    657 qpsmtpd    3u  IPv4   15669      0t0  TCP *:smtp (LISTEN)
/usr/loca 182487 qpsmtpd    0u  IPv4 1625329      0t0  TCP 10.0.0.7:smtp->ip246.tervelnet.com:11288 (ESTABLISHED)
/usr/loca 182487 qpsmtpd    1u  IPv4 1625329      0t0  TCP 10.0.0.7:smtp->ip246.tervelnet.com:11288 (ESTABLISHED)
/usr/loca 182490 qpsmtpd    0u  IPv4 1625339      0t0  TCP 10.0.0.7:smtp->212.70.149.89:6882 (ESTABLISHED)
/usr/loca 182490 qpsmtpd    1u  IPv4 1625339      0t0  TCP 10.0.0.7:smtp->212.70.149.89:6882 (ESTABLISHED)
/usr/loca 182494 qpsmtpd    0u  IPv4 1624452      0t0  TCP 10.0.0.7:smtp->5.34.205.151:64226 (ESTABLISHED)
/usr/loca 182494 qpsmtpd    1u  IPv4 1624452      0t0  TCP 10.0.0.7:smtp->5.34.205.151:64226 (ESTABLISHED)

> Yes kill -9 PID always done, without any change

STOP that!!

DO NOT use kill -9 unless it's ABSOLUTELY necessary!  Even if you think
it's absolutely necessary, consider rebooting instead.  You might have to
anyway, if some process is stuck on a hardware failure.

> Failed binding to auth interface enp3s0 address * port 1812 bound to server
> default: Address already in use
> 
> /etc/freeradius/3.0/sites-enabled/default[59]: Error binding to port for
> 0.0.0.0 port 1812

Sure sounds like something is using the port.  lsof should show it.  Or
ss, or netstat, if you use them correctly.

unicorn:~$ ss -ntl | grep :25
LISTEN 0      20           0.0.0.0:25         0.0.0.0:*

unicorn:~$ sudo ss -ntlp | grep :25
LISTEN 0      20           0.0.0.0:25         0.0.0.0:*    users:(("tcpserver",pid=657,fd=3))

(The -p option requires superuser privs.)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

freeradius - Bullseye - port for 0.0.0.0 port 1812 in use "Maurizio Caloro" <maurizio@caloro.ch> - 2022-02-06 15:20 +0100
  Re: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use Greg Wooledge <greg@wooledge.org> - 2022-02-06 15:50 +0100
    AW: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use "Maurizio Caloro" <maurizio@caloro.ch> - 2022-02-06 16:10 +0100
      Re: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use Greg Wooledge <greg@wooledge.org> - 2022-02-06 16:20 +0100
        AW: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use "Maurizio Caloro" <maurizio@caloro.ch> - 2022-02-06 16:40 +0100
          Re: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use Greg Wooledge <greg@wooledge.org> - 2022-02-06 18:00 +0100

csiph-web