[Freeswitch-users] Unable to run fs_cli (returns Error Connecting [Socket Connection Error])
Craig Stevenson
craig at stevenson.com
Mon Jun 29 23:10:19 MSD 2015
I have an automated script that I have been using to build the 1.6/1.7
(master) branch for FreeSWITCH. Debian = Jessie (8.1); git branch = master.
Life was good. But, about a week (or two) ago, I was no longer able to run
fs_cli from a shell window on my new builds...
craig $ fs_cli
[ERROR] fs_cli.c:1610 main() Error Connecting [Socket Connection Error]
FreeSWITCH itself is running in the background perfectly fine. I can place
calls; and tail -f on the log file shows the same activity that would
expect to see on the fs_cli console. The process is is running as user
"freeswitch" and all of the standard directories are owned by
"freeswitch". And no obvious errors in the build log (but honestly, not
sure I'd spot the error in all the text if there was one :-)
Any hints on what the issue might be? Thanks.
---------------------------------------------------------------
For what it is worth, here are the script commands that I use to build
FreeSWITCH:
# git freeswitch, bootstrap, configure and make...
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
sudo ./bootstrap.sh -j
sudo ./configure -C
perl -i -pe 's/#formats\/mod_vlc/formats\/mod_vlc/g' modules.conf
perl -i -pe 's/#applications\/mod_av/applications\/mod_av/g' modules.conf
sudo make
sudo make install
sudo make cd-sounds-install cd-moh-install samples
# add user & group freeswitch
sudo useradd --shell /bin/bash --password `perl -e 'print crypt("....",
"....")'` freeswitch
sudo adduser freeswitch sudo
sudo chown -R freeswitch:freeswitch /usr/local/freeswitch/
sudo chmod -R o=rwx /usr/local/freeswitch/
sudo chown -R freeswitch:freeswitch /usr/local/src/freeswitch/
sudo chmod -R o=rwx /usr/local/src/freeswitch/
# set to run at startup
sudo ln /usr/local/freeswitch/bin/freeswitch /usr/bin/freeswitch
sudo ln /usr/local/freeswitch/bin/fs_cli /usr/bin/fs_cli
sudo mkdir /etc/freeswitch
sudo ln /usr/local/freeswitch/conf/freeswitch.xml
/etc/freeswitch/freeswitch.xml
sudo chown freeswitch:daemon /etc/freeswitch
sudo chmod ug=rwx,o= /etc/freeswitch
sudo mkdir /var/lib/freeswitch
sudo chown freeswitch:daemon /var/lib/freeswitch
sudo chmod -R ug=rwX,o= /var/lib/freeswitch
sudo cp
/usr/local/src/freeswitch/debian/freeswitch-sysvinit.freeswitch.default
/etc/default/freeswitch
sudo chown freeswitch:daemon /etc/default/freeswitch
sudo chmod ug=rw,o= /etc/default/freeswitch
sudo cp
/usr/local/src/freeswitch/debian/freeswitch-sysvinit.freeswitch.init
/etc/init.d/freeswitch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150629/3b6b41c5/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list