ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021

Status
Not open for further replies.

wouam31

Member
Jul 1, 2022
71
9
8
40
Hello everyone, I have a problem with my FusionPBX

Version: 5.1.2
Branch:master
Commit: ebb8193add4ed7a99314b3d25420d5f7b3adf533
Origin: https://github.com/fusionpbx/fusionpbx
Status: Your branch is up to date with 'origin/master'. +20 days ago

Operating System Debian11


I looked in:
/etc/freeswitch/autoload_configs/event_socket.conf.xml


<configuration name="event_socket.conf" description="Socket Client">
<settings>
<param name="nat-map" value="false"/>
<param name="listen-ip" value="127.0.0.1"/>
<param name="listen-port" value="8021"/>
<param name="password" value="ClueCon"/>
<!--<param name="apply-inbound-acl" value="lan"/>-->
</settings>
</configuration>

ps aux | grep freeswitch


www-data 687 1.9 2.9 1252584 114208 ? S<Ll Oct01 531:08 /usr/bin/freeswitch -nc -u www-data -g www-data -nonat
www-data 2830582 1.6 3.7 1259764 145924 ? S<Lsl 08:46 3:50 /usr/bin/freeswitch -u www-data -g www-data -ncwait -nonat
root 2990855 0.0 0.0 5288 700 pts/0 S+ 12:38 0:00 grep freeswitch

netstat -atn | grep 8021

tcp 0 0 127.0.0.1:8021 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8021 127.0.0.1:46164 ESTABLISHED
tcp 0 0 127.0.0.1:46164 127.0.0.1:8021 ESTABLISHED



And in the logViewer I have lots of errors.

23-10-20 12:48:46.661760 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:46.761773 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:46.861774 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:46.961776 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:47.061768 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:47.161784 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:47.261785 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:47.361795 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021
2023-10-20 12:48:47.461791 95.97% [ERR] mod_event_socket.c:2992 Socket Error! Could not listen on 127.0.0.1:8021


I restarted the freeswitch service, but I still get the errors.

An idea?
Thank you so much.
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
Try stopping freeswitch then after do a netstat -antup | grep 8021

If there is anything still listening, kill that process
 

wouam31

Member
Jul 1, 2022
71
9
8
40
Hi!

I tried to stop the freeswitch service, but it never stopped.
For what ? But it does not matter!

I did a netstat -vatupn | grep 8021

tcp 0 0 127.0.0.1:8021 0.0.0.0:* LISTEN 147241/freeswitch
tcp 0 0 127.0.0.1:8021 127.0.0.1:57924 ESTABLISHED 147241/freeswitch
tcp 0 0 127.0.0.1:57924 127.0.0.1:8021 ESTABLISHED 147210/php

Then I have
killall -9 freeswitch
killall -9 php

then restart freeswitch

It seems to work.

(I took the opportunity to update, this caused me problems with the time conditions)
 
Status
Not open for further replies.