Freeswitch does not start

From Kolmisoft Wiki
Revision as of 10:44, 19 March 2020 by Admin (talk | contribs)
Jump to navigationJump to search

Stuck on Starting safe_freeswitch

Looks like this:

service freeswitch start
Starting safe_freeswitch

and nothing happens anymore.


Do:

killall -9 safe_freeswitch
killall -9 freeswitch
killall -9 fs_cli
service freeswitch start

Troubleshooting

killall -9 safe_freeswitch
killall -9 freeswitch
killall -9 fs_cli
rm -fr /usr/local/freeswitch/run/freeswitch.pid
/usr/local/freeswitch/bin/freeswitch -nf


Check what it writes.

[ERR] mod_event_socket.c:2969 Socket Error! Could not listen on 0.0.0.0:8021

[ERR] mod_event_socket.c:2969 Socket Error! Could not listen on 0.0.0.0:8021

Means port 8021 is taken.

netstat -vatupn | grep 8021

will show which process is on 8021 port. Usually it is fs_cli, kill it:

killall -9 fs_cli


Attach to the process

strace -p PID 

where PID - fs processs PID

Shows syscalls on this process. It could help to troubleshoot.