SOLVED Freeswitch not loading sofia profiles

Status
Not open for further replies.

Marco Zink

New Member
Aug 30, 2017
3
0
1
39
Hello,

I had a problem today for no apparent reason. It seems the sofia profiles are not being loaded, my gateways and extensions are not registered, if I go to Status -> Sip Status and try to restart any of the profiles I can see in the cli some errors:
Code:
2017-08-30 18:22:04.438906 [ERR] mod_memcache.c:425 Error while running command get: A TIMEOUT OCCURRED
2017-08-30 18:22:04.438906 [ERR] switch_xml.c:1695 Error[[error near line 1]: root tag missing]
2017-08-30 18:22:04.438906 [WARNING] sofia.c:5984 No Such Profile 'internal'
The files external.xml, internal.xml and their respective IPv6 versions seem to be fine.

Any help or information to point me to the right direction will be much apreciated.
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,038
556
113
There is definitely some error in the xml, you say internal.xml and external are OK but fusionpbx is database driven anyway the xml gets served from there. What version are you using master or stable?
 

Marco Zink

New Member
Aug 30, 2017
3
0
1
39
Thank you.

I believe I am using stable, I installed using the Debian fusionpbx-install.sh script with no extra args.
 

Marco Zink

New Member
Aug 30, 2017
3
0
1
39
Found the problem, it seems that PostgreSQL was only listening on IPv6, changed it to 127.0.0.1 and now everything is working again.

Thanks for the heads up.
 

agile

New Member
Oct 21, 2020
27
2
3
42
Found the problem, it seems that PostgreSQL was only listening on IPv6, changed it to 127.0.0.1 and now everything is working again.

Thanks for the heads up.
How did you change this to 127.0.0.1 I have the same issue on the new install and I am using master.
 

arvind18

New Member
Mar 23, 2022
1
0
1
30
Hello Agile, could you post a screenshot of what you see when you do netstat -tupln (as root) ?
 

agile

New Member
Oct 21, 2020
27
2
3
42
Hello Agile, could you post a screenshot of what you see when you do netstat -tupln (as root) ?
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 960/exim4
tcp 0 0 127.0.0.1:5433 0.0.0.0:* LISTEN 643/postgres
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 627/nginx: master p
tcp 0 0 10.10.1.4:5060 0.0.0.0:* LISTEN 1457/freeswitch
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 627/nginx: master p
tcp 0 0 127.0.0.1:8021 0.0.0.0:* LISTEN 1457/freeswitch
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 621/sshd
tcp 0 0 10.10.1.4:5080 0.0.0.0:* LISTEN 1457/freeswitch
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 642/postgres
tcp6 0 0 ::1:25 :::* LISTEN 960/exim4
tcp6 0 0 ::1:5060 :::* LISTEN 1457/freeswitch
tcp6 0 0 :::22 :::* LISTEN 621/sshd
udp 0 0 10.10.1.4:5060 0.0.0.0:* 1457/freeswitch
udp 0 0 10.10.1.4:5080 0.0.0.0:* 1457/freeswitch
udp 0 0 0.0.0.0:68 0.0.0.0:* 397/dhclient
udp 0 0 0.0.0.0:161 0.0.0.0:* 615/snmpd
udp 0 0 127.0.0.1:323 0.0.0.0:* 618/chronyd
udp6 0 0 fe80::4d6:23ff:feb5:546 :::* 509/dhclient
udp6 0 0 ::1:5060 :::* 1457/freeswitch
udp6 0 0 ::1:323 :::* 618/chronyd



root@ip-10-10-1-4:/etc/freeswitch# netstat -an | grep 5060
tcp 0 0 10.10.1.4:5060 0.0.0.0:* LISTEN
tcp6 0 0 ::1:5060 :::* LISTEN
udp 0 0 10.10.1.4:5060 0.0.0.0:*
udp6 0 0 ::1:5060 :::*
root@ip-10-10-1-4:/etc/freeswitch#
 

Attachments

  • netstat.PNG
    netstat.PNG
    42.7 KB · Views: 38
Status
Not open for further replies.