kazoo V3 admin account

752 views
Skip to first unread message

Eamon

unread,
Nov 18, 2013, 7:16:45 PM11/18/13
to 2600h...@googlegroups.com
Hi trying to create an admin account as per 


keep getting this error message

/opt/kazoo/utils/sup/sup crossbar_maintenance create_account kazoo sip.localhost.com xxxxxx xxxxxx

Connection to service failed!
Failed to connect to service 'whistl...@kazoo.localhost.com' with cookie 'change_me'
  Possible fixes:
    * Ensure the whistle service you are trying to connect to is running on the host
    * Ensure that you are using the same cookie as the whistle node, "./sup -c <cookie>"
    * Verify that the hostname being used is a whistle node

James Aimonetti

unread,
Nov 19, 2013, 1:26:54 AM11/19/13
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

What does 'hostname -f' return? Is that host defined in your
/etc/hosts file? Try starting a vanilla Erlang shell: 'erl -name foo'.
What prompt do you get? Maybe 'f...@kazoo.localhost.com' or something else?

Check 'epmd -names' to ensure the whistle_apps node is listed.

Those are some ideas for tracking down the issue, but it generally
revolves around hostname mishaps.

James
- --
James Aimonetti
Lead Systems Architect
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF0EAREIAAYFAlKLBK0ACgkQ54NxaUq7OmDx3ADyA9nwZ7Ka4lzx8ihVgIcGpf43
q3t2J2/cxaVlceiT3gD7BRMbtUWlbOEzyU8l/Y/WrOtlGvFzdQZ1NPH3ub9xQmE=
=2jcR
-----END PGP SIGNATURE-----

Eamon

unread,
Nov 19, 2013, 4:13:12 AM11/19/13
to 2600h...@googlegroups.com, ja...@2600hz.com
Hi James

hostname -f is ok same as /etc/hosts
erl -name foo ....prompt foo@hostname

when i check 'epmd -names' 
name foo at port 52827
name bigcouch at port 11500
name freeswitch at port 41686

whistle_apps is not listed ??

Eamon

Eamon

unread,
Nov 19, 2013, 4:54:50 AM11/19/13
to 2600h...@googlegroups.com, ja...@2600hz.com
epmd: up and running on port 4369 with data:
name freeswitch at port 42434
name ecallmgr at port 11502
name whistle_apps at port 11501
name rabbit at port 40283
name foo at port 52827
name bigcouch at port 11500

Eamon

On Tuesday, November 19, 2013 6:26:54 AM UTC, James Aimonetti wrote:

James Aimonetti

unread,
Nov 19, 2013, 9:48:30 AM11/19/13
to Eamon, 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

So now that whistle_apps is listed, are you still having communication
issues with the 'sup' command?

On 11/19/2013 01:54 AM, Eamon wrote:
> epmd: up and running on port 4369 with data: name freeswitch at
> port 42434 name ecallmgr at port 11502 name whistle_apps at port
> 11501 name rabbit at port 40283 name foo at port 52827 name
> bigcouch at port 11500
>
> Eamon
>
> On Tuesday, November 19, 2013 6:26:54 AM UTC, James Aimonetti
> wrote:
>>
> What does 'hostname -f' return? Is that host defined in your
> /etc/hosts file? Try starting a vanilla Erlang shell: 'erl -name
> foo'. What prompt do you get? Maybe 'f...@kazoo.localhost.com
> <javascript:>' or something else?
>
> Check 'epmd -names' to ensure the whistle_apps node is listed.
>
> Those are some ideas for tracking down the issue, but it generally
> revolves around hostname mishaps.
>
> James
>
> On 11/18/2013 04:16 PM, Eamon wrote:
>>>> Hi trying to create an admin account as per
>>>>
>>>> https://2600hz.atlassian.net/wiki/pages/viewpage.action?pageId=39223316
>>>>
>>>>
>>>> keep getting this error message
>>>>
>>>> /opt/kazoo/utils/sup/sup crossbar_maintenance create_account
>>>> kazoo sip.localhost.com xxxxxx xxxxxx
>>>>
>>>> Connection to service failed! Failed to connect to service
>>>> 'whistl...@kazoo.localhost.com <javascript:>' with cookie
>>>> 'change_me'
> Possible
>>>> fixes: * Ensure the whistle service you are trying to connect
>>>> to is running on the host * Ensure that you are using the
>>>> same cookie as the whistle node, "./sup -c <cookie>" * Verify
>>>> that the hostname being used is a whistle node
>>>>
>
>
>>
>

- --
James Aimonetti
Lead Systems Architect
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlKLej4ACgkQ54NxaUq7OmAt2wD+KKIVKa4AVFAutATvhx3plinv
5M9o50ke3sey8+N4eN8BAJss6e49aeuxZn/ZrLZNK0fBMsUNEOG+Pxz2PolSFHmT
=iE/E
-----END PGP SIGNATURE-----

Eamon

unread,
Nov 19, 2013, 10:27:14 AM11/19/13
to 2600h...@googlegroups.com, Eamon, ja...@2600hz.com
Hi James

I have it connected now, other issue was i hadn't updated the hostname in /etc/sysconfig/network
as well as /etc/hosts.

Initial install is done and can login, next step to add numbers and carrier

Eamon


mark.a.sa...@gmail.com

unread,
Jun 3, 2014, 11:55:49 PM6/3/14
to 2600h...@googlegroups.com
I had the same issue.  I finally resorted to rebooting the server.  After that, I was able to add a user.

So.. suggestion to anyone else receiving the "failed to connect" issue, reboot the server.

Of course, now I am getting the "Oh no! We are having trouble contacting the server, please try again later..." issue, but that is another thread...

Anurag Mishra

unread,
Jun 5, 2014, 5:59:04 AM6/5/14
to 2600h...@googlegroups.com, mark.a.sa...@gmail.com
Hi Mark,

I guess when you rebooted the server then you have not run the services of kazoo that's why you are getting issue. You must run kazoo services. The problem should be this.Try to run services of kazoo you must be able to login.

Thanks,
Anurag Mishra

Den Pavlovsky

unread,
May 23, 2016, 1:06:30 AM5/23/16
to 2600hz-dev
Hi

I've got the same issue with SUP escript
any SUP command :
Connection to service failed!
Failed to connect to service 'whistl...@kazoo.localhost.com' with cookie 'change_me'
  Possible fixes:
    * Ensure the whistle service you are trying to connect to is running on the host
    * Ensure that you are using the same cookie as the whistle node, "./sup -c <cookie>"
    * Verify that the hostname being used is a whistle node

The hostname is ok:
[root@localhost ~]# hostname -f
localhost.localdomain
[root@localhost ~]#
[root@localhost ~]# hostname -i
127.0.0.1
[root@localhost ~]# hostname
localhost.localdomain
[root@localhost ~]# cat /etc/hosts
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
[root@localhost ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain

 erl -name foo
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.9.3.1  (abort with ^G)
(f...@localhost.localdomain)1>

cookie = change_me

[root@localhost ~]# epmd -names
epmd: up and running on port 4369 with data:
name freeswitch at port 48849
name whistle_apps at port 11502
name ecallmgr at port 11501
name rabbit at port 25672
name bigcouch at port 11500

How to fix it?
Any help is appreciated.


вторник, 19 ноября 2013 г., 5:16:45 UTC+5 пользователь Eamon написал:

Den Pavlovsky

unread,
May 23, 2016, 4:04:44 AM5/23/16
to 2600hz-dev
I fixed the issue:
in /etc/kazoo/config.ini i changed ports from 15984 to 5984 and 15986 to 5986


вторник, 19 ноября 2013 г., 5:16:45 UTC+5 пользователь Eamon написал:
Hi trying to create an admin account as per 
Reply all
Reply to author
Forward
0 new messages