Fs_cli socket error

1,607 views
Skip to first unread message

Robert A

unread,
Apr 6, 2012, 7:35:12 PM4/6/12
to Newfies-Dialer
Hi, after making a new fresh install on ubuntu 10.04 and i try to run
fs_cli i get
[ERROR] fs_cli.c:1320 main() Error Connecting [Socket Connection
Error]
What can i do? Thanks?

Areski

unread,
Apr 7, 2012, 3:47:00 AM4/7/12
to newfies...@googlegroups.com
Hi Robert,

If fs_cli show this error is certainly because FreeSWITCH is not installed properly.
You can verify this with :

/etc/init.d/freeswitch status

try to restart with :
/etc/init.d/freeswitch restart

--
Kinds regards,
/Areski

----
Arezqui Belaid
are...@gmail.com / +34650784355

Founder at Star2Billing (www.star2billing.com)
Author @ A2Billing (www.a2billing.net), @ Newfies-Dialer (www.newfies-dialer.org), @ CDR-Stats (www.cdr-stats.org)
----
Twitter : http://twitter.com/areskib / LinkedIN : http://www.linkedin.com/in/areski

Robert A

unread,
Apr 7, 2012, 4:29:27 AM4/7/12
to Newfies-Dialer
Hi, thanks so much, after making the new fresh install on ubuntu 10.04
and tried to start freeswitch i doesnt started, then i have opened /
etc/init.d/freeswitch and i have seen that the daemon path wasnt
right /usr/local/freeswitch and i have changed it to /usr/src/
freeswitch/ after making that change when i make "service freeswitch
start" it starts without any problem, "starting Freeswitch freeswitch
OK" what can i do now? Thanks again.

On 7 abr, 02:47, Areski <are...@gmail.com> wrote:
> Hi Robert,
>
> If fs_cli show this error is certainly because FreeSWITCH is not installed
> properly.
> You can verify this with :
>
> /etc/init.d/freeswitch status
>
> try to restart with :
> /etc/init.d/freeswitch restart
>
> On Sat, Apr 7, 2012 at 1:35 AM, Robert A <aguilat...@gmail.com> wrote:
> > Hi, after making a new fresh install on ubuntu 10.04 and i try to run
> > fs_cli i get
> > [ERROR] fs_cli.c:1320 main() Error Connecting [Socket Connection
> > Error]
> > What can i do? Thanks?
>
> --
> Kinds regards,
> /Areski
>
> ----
> *Arezqui Belaid*,

Jonathan Roper

unread,
Apr 7, 2012, 4:39:02 AM4/7/12
to newfies...@googlegroups.com
Hi

I'm running a test install on Ubuntu now, to see if I can replicate your issue,

Joe

Robert A

unread,
Apr 7, 2012, 4:40:55 AM4/7/12
to Newfies-Dialer
Is there anyway to uninstall it and then install it again? Thanks.

On 7 abr, 02:47, Areski <are...@gmail.com> wrote:
> Hi Robert,
>
> If fs_cli show this error is certainly because FreeSWITCH is not installed
> properly.
> You can verify this with :
>
> /etc/init.d/freeswitch status
>
> try to restart with :
> /etc/init.d/freeswitch restart
>
> On Sat, Apr 7, 2012 at 1:35 AM, Robert A <aguilat...@gmail.com> wrote:
> > Hi, after making a new fresh install on ubuntu 10.04 and i try to run
> > fs_cli i get
> > [ERROR] fs_cli.c:1320 main() Error Connecting [Socket Connection
> > Error]
> > What can i do? Thanks?
>
> --
> Kinds regards,
> /Areski
>
> ----
> *Arezqui Belaid*,

Jonathan Roper

unread,
Apr 7, 2012, 4:47:03 AM4/7/12
to newfies...@googlegroups.com
Hi

It should not cause any issues if you log into your pbx. then run the following commands:

sudo su -

wget https://raw.github.com/Star2Billing/newfies-dialer/master/install/install-all.sh

bash install-all.sh

Obviously the second step does not have run if you have already go a copy of "install-all" in /root/

Joe

Robert A

unread,
Apr 7, 2012, 5:22:39 AM4/7/12
to Newfies-Dialer
Thanks, i havent seen your messages until now and what im doing right
now is installing again, i didnt uninstall it, im only running again
the script installer https://raw.github.com/Star2Billing/newfies-dialer/master/install/freeswitch/install-freeswitch.sh
when it get installed again i will try to run freeswitch to see what
happens now. It supossed to start without any problem or any
modification of init.d/freeswitch, am i right? thanks.

On 7 abr, 03:39, Jonathan Roper <joe.ro...@gmail.com> wrote:
> Hi
>
> I'm running a test install on Ubuntu now, to see if I can replicate your
> issue,
>
> Joe
>

Robert A

unread,
Apr 7, 2012, 5:42:11 AM4/7/12
to Newfies-Dialer
It have finished. I have installed freeswitch again with
https://raw.github.com/Star2Billing/newfies-dialer/master/install/freeswitch/install-freeswitch.sh
and again it doesnt start when i make service freeswitch start. and
again when i type /etc/init.d/freeswitch restart or /etc/init.d/
freeswitch status it give no response, simply it dont do anything. i
guess its because init.d/freeswitch have the daemon path to /usr/local/
freeswitch/bin/$NAME and i guess its wrong because /usr/local/
freeswitch/bin/ dont exist, Freeswitch its installed on /usr/src/
freeswitch/ and i can see in "freeswitch" and "fs_cli" and others
files. What can i do? I can even let to have access to my installation
if its helps to know what its happening. I have made 5 fresh installs
thinking i was making something wrong but all that i have made all
this times was running the install-all.sh Thanks so much.

On 7 abr, 04:22, Robert A <aguilat...@gmail.com> wrote:
> Thanks, i havent seen your messages until now and what im doing right
> now is installing again, i didnt uninstall it, im only running again
> the script installerhttps://raw.github.com/Star2Billing/newfies-dialer/master/install/fre...

Jonathan Roper

unread,
Apr 7, 2012, 5:59:16 AM4/7/12
to newfies...@googlegroups.com
Hi

I have just completed an install with no issues, and run 1000 calls through the system.

/usr/local/freeswitch looks like this.

root@newfies-201:~# ls -al /usr/local/freeswitch/
total 60
drwxr-xr-x 15 freeswitch freeswitch 4096 2012-04-07 10:07 .
drwxr-xr-x 11 root       root       4096 2012-04-07 10:05 ..
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:06 bin
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:54 db
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:06 grammar
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:06 htdocs
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:06 include
drwxr-xr-x  3 freeswitch freeswitch 4096 2012-04-07 10:07 lib
drwxr-xr-x  4 freeswitch freeswitch 4096 2012-04-07 10:49 log
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:07 mod
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:06 recordings
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:18 run
drwxr-xr-x  2 freeswitch freeswitch 4096 2012-04-07 10:06 scripts
drwxr-xr-x  4 freeswitch freeswitch 4096 2012-04-07 10:07 sounds
drwxr-x---  3 root       root       4096 2012-04-07 10:07 storage
root@newfies-201:~# 

The freeswitch status command looks below, with no modifications to the install.

root@newfies-201:~# /etc/init.d/freeswitch status
 * freeswitch with pid 740 is running.

Can you confirm that you are running install-all.sh as the root user (sudo su -)

Also, watch the installation logs, and see if you can see an error in the script.

Joe

Charles

unread,
Apr 7, 2012, 6:01:49 AM4/7/12
to newfies...@googlegroups.com
how did you run the 1000 calls joe?

Robert A

unread,
Apr 7, 2012, 6:16:58 AM4/7/12
to Newfies-Dialer
In log celery-newfies-node1.log i have a lot of lines like this:<
________________________________
[2012-04-07 05:08:51,482: INFO/MainProcess] Got task from broker:
dialer_campaign.tasks.campaign_spool_contact[bb40602a-02d0-447e-86a8-3881f113c461]
[2012-04-07 05:08:51,483: INFO/PoolWorker-2]
dialer_campaign.tasks.campaign_spool_contact[bb40602a-02d0-447e-86a8-3881f113c461]:
TASK :: campaign_spool_contact
[2012-04-07 05:08:51,487: INFO/MainProcess] Task
dialer_campaign.tasks.campaign_spool_contact[bb40602a-02d0-447e-86a8-3881f113c461]
succeeded in 0.00387382507324s: None
__________________________________

in err-apache-newfies.log i have:
___________________________________
[Fri Apr 06 08:28:14 2012] [error] Exception KeyError:
KeyError(139691500148544,) in <module 'threading' from '/usr/lib/
python2.6/threading.pyc'> ignored
[Fri Apr 06 03:33:26 2012] [error] Exception KeyError:
KeyError(139763557893952,) in <module 'threading' from '/usr/lib/
python2.6/threading.pyc'> ignored
[Fri Apr 06 03:38:11 2012] [error] Exception KeyError:
KeyError(139983429670720,) in <module 'threading' from '/usr/lib/
python2.6/threading.pyc'> ignored
[Fri Apr 06 20:53:50 2012] [error] /usr/share/virtualenvs/newfies-
dialer/lib/python2.6/site-packages/celery/decorators.py:34:
CDeprecationWarning:
[Fri Apr 06 20:53:50 2012] [error] The `celery.decorators` module
along with the magic keyword arguments,
[Fri Apr 06 20:53:50 2012] [error] are deprecated, and will be removed
in version 3.0.
[Fri Apr 06 20:53:50 2012] [error]
[Fri Apr 06 20:53:50 2012] [error] Please use the `celery.task` module
instead of `celery.decorators`,
[Fri Apr 06 20:53:50 2012] [error] and the `task.request` should be
used instead of the magic keyword arguments:
[Fri Apr 06 20:53:50 2012] [error]
[Fri Apr 06 20:53:50 2012] [error] from celery.task import task
[Fri Apr 06 20:53:50 2012] [error]
[Fri Apr 06 20:53:50 2012] [error] See http://bit.ly/celery22major for
more information.
[Fri Apr 06 20:53:50 2012] [error]
[Fri Apr 06 20:53:50 2012] [error]
[Fri Apr 06 20:53:50 2012] [error] """))
[Fri Apr 06 20:54:06 2012] [error] /usr/share/virtualenvs/newfies-
dialer/lib/python2.6/site-packages/feedparser.py:371:
DeprecationWarning: To avoid breaking existing software while fixing
issue 310, a temporary mapping has been created from `updated_parsed`
to `published_parsed` if `updated_parsed` doesn't exist. This fallback
will be removed in a future version of feedparser.
[Fri Apr 06 20:54:06 2012] [error] DeprecationWarning)
[Fri Apr 06 22:56:20 2012] [error] Exception KeyError:
KeyError(140086649313088,) in <module 'threading' from '/usr/lib/
python2.6/threading.pyc'> ignored
[Fri Apr 06 18:54:16 2012] [error] Exception KeyError:
KeyError(139994849847104,) in <module 'threading' from '/usr/lib/
python2.6/threading.pyc'> ignored
[Fri Apr 06 19:29:23 2012] [error] Exception KeyError:
KeyError(139717649741632,) in <module 'threading' from '/usr/lib/
python2.6/threading.pyc'> ignored
________________________________________

in newfies-django.log i have nothing, and in newfies-django-db.log i
have nothing too.
and if i make
root@ip-10-160-231-142:/var/log/newfies# ls -al /usr/local/freeswitch/
total 44
drwxr-x--- 11 freeswitch freeswitch 4096 2012-04-06 18:13 .
drwxr-xr-x 11 root root 4096 2012-04-06 18:13 ..
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-07 05:15 db
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 18:13 grammar
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 19:22 htdocs
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 19:24 log
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 18:13 mod
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 18:13 recordings
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 19:43 run
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 18:13 scripts
drwxr-x--- 2 freeswitch freeswitch 4096 2012-04-06 18:13 sounds

but again, if i make /etc/init.d/freeswitch status i get nothing.
What more can i do? Thanks again.

On 7 abr, 04:59, Jonathan Roper <joe.ro...@gmail.com> wrote:
> Hi
>
> On 7 April 2012 11:42, Robert A <aguilat...@gmail.com> wrote:
>
>
>
>
>
>
>
> > It have finished. I have installed freeswitch again with
>
> >https://raw.github.com/Star2Billing/newfies-dialer/master/install/fre...

Jonathan Roper

unread,
Apr 7, 2012, 6:22:41 AM4/7/12
to newfies...@googlegroups.com
Hi

I created and uploaded a 1000 line contact import file, built a trunk to another VoIP server, and configured the VoIP server to answer the call.

Joe

Jonathan Roper

unread,
Apr 7, 2012, 6:32:54 AM4/7/12
to newfies...@googlegroups.com
Hi

It looks like you have no bin directory in /usr/local/freeswitch, which means that somewhere, your installation of Freeswitch went amiss. You need to run the install of Freeswitch again, while logged on as root, and inspect the installation log carefully to see where it fails.

Joe

Robert A

unread,
Apr 7, 2012, 5:04:45 PM4/7/12
to Newfies-Dialer
Thanks. I have made another fresh install and its the same again.
Freeswitch dont start and dont start because init.d/freeswitch its
wrong, its searching on the wrong path. I have been installing with
install-all.sh I will thanks if anyone could tellme if im the only one
that have this issue. Thanks.

On 7 abr, 05:32, Jonathan Roper <joe.ro...@gmail.com> wrote:
> Hi
>
> It looks like you have no bin directory in /usr/local/freeswitch, which
> means that somewhere, your installation of Freeswitch went amiss. You need
> to run the install of Freeswitch again, while logged on as root, and
> inspect the installation log carefully to see where it fails.
>
> Joe
>
Reply all
Reply to author
Forward
0 new messages