Jump to content

Kazoo UI / Winkstart not wanting to connect to server


Recommended Posts

Here are the results of the curl -v on the url. Thank you so much for looking into this. 

 

 [root@pintransfer kazoo-ui]#
[root@pintransfer kazoo-ui]# curl http://pintransfer.csgtech.net:3333 -v
* About to connect() to pintransfer.csgtech.net port 3333 (#0)
*   Trying ::1...
* Connection refused
*   Trying 127.0.0.1...
* Connected to pintransfer.csgtech.net (127.0.0.1) port 3333 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: pintransfer.csgtech.net:3333
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: SimpleHTTP/0.6 Python/2.7.5
< Date: Mon, 27 Jan 2020 16:08:07 GMT
< Content-type: text/html
< Content-Length: 6604
< Last-Modified: Thu, 23 Jan 2020 20:26:51 GMT
<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset='utf-8'>
        <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
        <!-- Awesome URL Parsing -->
        <script type="text/javascript">
            var URL_PARTS = window.location.href.match(/^([^\?#]+)[\?#]*([^#]*).*$/).slice(1),
                URL = URL_PARTS[0],
                URL_DATA = function() {
                    var url_data_parts = (URL_PARTS[1]) ? URL_PARTS[1].split('&') : [],
                        url_data = {},
                        data;

                    for(var i = 0; i < url_data_parts.length; i++) {
                        data = url_data_parts.split('=');
                        url_data[data[0]] = data[1];
                    }

                    return url_data;
                }();

            var CACHE_BUSTER = function() {
                var now = new Date();
                var this_minute = new Date(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes());
                return this_minute.getTime();
            }();
        </script>

        <script type="text/javascript" src="js/external/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="js/external/jquery-ui-1.8.7.custom.min.js"></script>

        <link type="text/css" href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />

        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-alerts.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-buttons.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-modal.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-twipsy.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-popover.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-scrollspy.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-tabs.js"></script>

        <link type="text/css" href="css/validate.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="css/tables.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="css/jslider/jslider.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.8.custom.css" rel="Stylesheet" />

        <link type="text/css" href="js/external/ui-listpanel/css/ui.listpanel.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="js/external/ui-listpanel/css/jquery.jscrollpane.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="js/external/jqplot/css/jquery.jqplot.css" rel="stylesheet" media="screen" />

        <link type="text/css" href="css/jquery.tooltip.css" rel="stylesheet" media="screen" />
                 <!--script type="text/javascript" src="js/lang/en.js"></script-->
        <script type="text/javascript" src="js/external/jquery.cors.js"></script>
        <script type="text/javascript" src="js/external/underscore-min.js"></script>

        <script type="text/javascript" src="js/external/form2object.js"></script>
        <script type="text/javascript" src="js/external/formToWizard.js"></script>
        <script type="text/javascript" src="js/external/async.js"></script>
        <script type="text/javascript" src="js/external/md5_generator.js"></script>
        <script type="text/javascript" src="js/external/jstz.min.js"></script>
        <script type="text/javascript" src="js/external/tmpl/jquery.tmpl.js"></script>
        <script type="text/javascript" src="js/external/tmpl/jquery.tmplPlus.js"></script>
        <script type="text/javascript" src="js/external/jquery.isObject.js"></script>
        <script type="text/javascript" src="js/external/jquery.mousewheel.js"></script>
        <script type="text/javascript" src="js/external/jquery.jscrollpane.min.js"></script>
        <!--<script type="text/javascript" src="js/external/jquery.tools.min.js"></script>-->
        <script type="text/javascript" src="js/external/jquery.hoverIntent.minified.js"></script>
        <script type="text/javascript" src="js/external/jquery.dataTables.js"></script>
        <script type="text/javascript" src="js/external/plugins/sort.js"></script>
        <script type="text/javascript" src="js/external/jquery.slider.js"></script>
        <script type="text/javascript" src="js/external/jquery.dependClass.js"></script>
        <script type="text/javascript" src="js/external/jquery.dataset.js"></script>
        <script type="text/javascript" src="js/external/ui-listpanel/ui.listpanel.js"></script>
        <script type="text/javascript" src="js/external/lab.js"></script>
        <script type="text/javascript" src="js/external/jquery.tooltip.js"></script>
        <script type="text/javascript" src="js/external/jquery.cookie.js"></script>
        <script type="text/javascript" src="js/external/jquery.masonry.min.js"></script>
        <script type="text/javascript" src="js/external/jquery.switch.js"></script>
        <script type="text/javascript" src="js/external/jqplot/jquery.jqplot.min.js"></script>
        <script type="text/javascript" src="js/external/jqplot/jqplot.pieRenderer.min.js"></script>
        <script type="text/javascript" src="js/external/jquery.fileupload.js"></script>
        <script type="text/javascript" src="js/external/jwt-decode.min.js"></script>

        <script type="text/javascript" src="js/amplify/amplify.core.js"></script>
        <script type="text/javascript" src="js/amplify/_amplify.js"></script>
        <script type="text/javascript" src="js/amplify/amplify.request.js"></script>
        <script type="text/javascript" src="js/amplify/amplify.request.poll.js"></script>

        <!--script type="text/javascript" src="config/config.js"></script-->
                <script type="text/javascript" src="config/load.js"></script>
        <script type="text/javascript" src="js/winkstart-request.js"></script>
        <script type="text/javascript" src="js/winkstart-util.js"></script>
        <script type="text/javascript" src="js/winkstart-tables.js"></script>
        <script type="text/javascript" src="js/winkstart-validate.js"></script>
        <script type="text/javascript" src="js/winkstart-timezone.js"></script>
        <script type="text/javascript" src="js/winkstart.js"></script>
    </head>
    <body class="background">
    </body>
</html>

Link to comment
Share on other sites

  • 2600Hz Employees
43 minutes ago, bsimpson72515 said:

        <!--script type="text/javascript" src="config/config.js"></script-->

I suspect that's your problem. Why is your config (which I wager has the Kazoo API URL) commented out?

Link to comment
Share on other sites

After uncommenting the line this is what we are receiving 

Using username "root".
root@pintransfer.csgtech.net's password:
Last failed login: Mon Jan 27 19:29:42 UTC 2020 from 222.186.31.166 on ssh:notty
There were 6 failed login attempts since the last successful login.
Last login: Mon Jan 27 19:28:04 2020 from pool-72-82-244-65.cmdnnj.fios.verizon.net
[root@pintransfer ~]# cd kazoo-ui
[root@pintransfer kazoo-ui]# curl http://pintransfer.csgtech.net:3333 -v
* About to connect() to pintransfer.csgtech.net port 3333 (#0)
*   Trying ::1...
* Connection refused
*   Trying 127.0.0.1...
* Connected to pintransfer.csgtech.net (127.0.0.1) port 3333 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: pintransfer.csgtech.net:3333
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: SimpleHTTP/0.6 Python/2.7.5
< Date: Mon, 27 Jan 2020 19:30:47 GMT
< Content-type: text/html
< Content-Length: 6599
< Last-Modified: Mon, 27 Jan 2020 19:20:13 GMT
<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm                                                                                                                                         l1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset='utf-8'>
        <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
        <!-- Awesome URL Parsing -->
        <script type="text/javascript">
            var URL_PARTS = window.location.href.match(/^([^\?#]+)[\?#]*([^#]*).*$/).slice(1),
                URL = URL_PARTS[0],
                URL_DATA = function() {
                    var url_data_parts = (URL_PARTS[1]) ? URL_PARTS[1].split('&') : [],
                        url_data = {},
                        data;

                    for(var i = 0; i < url_data_parts.length; i++) {
                        data = url_data_parts.split('=');
                        url_data[data[0]] = data[1];
                    }

                    return url_data;
                }();

            var CACHE_BUSTER = function() {
                var now = new Date();
                var this_minute = new Date(now.getFullYear(), now.getMonth(), now.getDate(), now.get                                                                                                                                         Hours(), now.getMinutes());
                return this_minute.getTime();
            }();
        </script>

        <script type="text/javascript" src="js/external/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="js/external/jquery-ui-1.8.7.custom.min.js"></script>

        <link type="text/css" href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="scr                                                                                                                                         een" />

        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-alerts.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-buttons.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-modal.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-twipsy.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-popover.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-scrollspy.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap-tabs.js"></script>

        <link type="text/css" href="css/validate.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="css/tables.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="css/jslider/jslider.css" rel="stylesheet" media="screen" />
        <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.8.custom.css" rel="Stylesheet" />

        <link type="text/css" href="js/external/ui-listpanel/css/ui.listpanel.css" rel="stylesheet"                                                                                                                                          media="screen" />
        <link type="text/css" href="js/external/ui-listpanel/css/jquery.jscrollpane.css" rel="styles                                                                                                                                         heet" media="screen" />
        <link type="text/css" href="js/external/jqplot/css/jquery.jqplot.css" rel="stylesheet" media                                                                                                                                         ="screen" />

        <link type="text/css" href="css/jquery.tooltip.css" rel="stylesheet" media="screen" />
                 <!--script type="text/javascript" src="js/lang/en.js"></script-->
        <script type="text/javascript" src="js/external/jquery.cors.js"></script>
        <script type="text/javascript" src="js/external/underscore-min.js"></script>

        <script type="text/javascript" src="js/external/form2object.js"></script>
        <script type="text/javascript" src="js/external/formToWizard.js"></script>
        <script type="text/javascript" src="js/external/async.js"></script>
        <script type="text/javascript" src="js/external/md5_generator.js"></script>
        <script type="text/javascript" src="js/external/jstz.min.js"></script>
        <script type="text/javascript" src="js/external/tmpl/jquery.tmpl.js"></script>
        <script type="text/javascript" src="js/external/tmpl/jquery.tmplPlus.js"></script>
        <script type="text/javascript" src="js/external/jquery.isObject.js"></script>
        <script type="text/javascript" src="js/external/jquery.mousewheel.js"></script>
        <script type="text/javascript" src="js/external/jquery.jscrollpane.min.js"></script>
        <!--<script type="text/javascript" src="js/external/jquery.tools.min.js"></script>-->
        <script type="text/javascript" src="js/external/jquery.hoverIntent.minified.js"></script>
        <script type="text/javascript" src="js/external/jquery.dataTables.js"></script>
        <script type="text/javascript" src="js/external/plugins/sort.js"></script>
        <script type="text/javascript" src="js/external/jquery.slider.js"></script>
        <script type="text/javascript" src="js/external/jquery.dependClass.js"></script>
        <script type="text/javascript" src="js/external/jquery.dataset.js"></script>
        <script type="text/javascript" src="js/external/ui-listpanel/ui.listpanel.js"></script>
        <script type="text/javascript" src="js/external/lab.js"></script>
        <script type="text/javascript" src="js/external/jquery.tooltip.js"></script>
        <script type="text/javascript" src="js/external/jquery.cookie.js"></script>
        <script type="text/javascript" src="js/external/jquery.masonry.min.js"></script>
        <script type="text/javascript" src="js/external/jquery.switch.js"></script>
        <script type="text/javascript" src="js/external/jqplot/jquery.jqplot.min.js"></script>
        <script type="text/javascript" src="js/external/jqplot/jqplot.pieRenderer.min.js"></script>
        <script type="text/javascript" src="js/external/jquery.fileupload.js"></script>
        <script type="text/javascript" src="js/external/jwt-decode.min.js"></script>

        <script type="text/javascript" src="js/amplify/amplify.core.js"></script>
        <script type="text/javascript" src="js/amplify/_amplify.js"></script>
        <script type="text/javascript" src="js/amplify/amplify.request.js"></script>
        <script type="text/javascript" src="js/amplify/amplify.request.poll.js"></script>

        <script type="text/javascript" src="config/config.js"></script>
                <script type="text/javascript" src="config/load.js"></script>
        <script type="text/javascript" src="js/winkstart-request.js"></script>
        <script type="text/javascript" src="js/winkstart-util.js"></script>
        <script type="text/javascript" src="js/winkstart-tables.js"></script>
        <script type="text/javascript" src="js/winkstart-validate.js"></script>
        <script type="text/javascript" src="js/winkstart-timezone.js"></script>
        <script type="text/javascript" src="js/winkstart.js"></script>
    </head>
    <body class="background">
    </body>
</html>

Link to comment
Share on other sites

  • 2600Hz Employees

Obviously the web server, on port 3333, is responding. However, your initial report was the UI telling you it couldn't connect to the server, which is the KAZOO API server. That server address should be stored in the config.js file somewhere (forget the format but should be obvious).

The KAZOO URL is the one not reachable. Test that...then check kazoo logs, make sure KAZOO and Crossbar are running on the expected server(s), etc.

Link to comment
Share on other sites

This was the response I got from our systems engineer I don't think he knows what Crossbar is. 

Hi Ben,
The closest thing I could find in the config.js was -  ws_server: 'wss://IP_OF_KAMAILIO:8080'. I changed it to pintransfer.csgtech.net and rebooted, but I’m getting the same error.

Here is a snippet from the Kazoo.log:
Jan 28 16:05:19 pintransfer 2600hz[1138]: |knm_port_request_crawler|knm_port_request_crawler:132(<0.3028.0>) port_request crawler completed a full crawl in 5ms
Jan 28 16:06:19 pintransfer 2600hz[1138]: |knm_port_request_crawler|knm_port_request_crawler:132(<0.3151.0>) port_request crawler completed a full crawl in 6ms
Jan 28 16:06:29 pintransfer 2600hz[1138]: |0000000000|kt_low_balance:77(<0.3174.0>) checking topup for account 72bd25b60a91cfebe5bf1f50894126ee with balance $0.0
Jan 28 16:06:29 pintransfer 2600hz[1138]: |0000000000|kt_low_balance:91(<0.3174.0>) checking if account 72bd25b60a91cfebe5bf1f50894126ee balance $0.0 is below notification threshold $5.0
Jan 28 16:06:29 pintransfer 2600hz[1138]: |kz_account_crawler|kz_account_crawler:127(<0.2273.0>) account crawler completed a full crawl

How can I tell if crossbar is running?

The config.js file is attached.
 

Link to comment
Share on other sites

This is what I received from our systems engineer this morning. 

 

The config.js file I sent you was old (it was showing http instead of https). The file on the IVR was already changed from:  api_url: 'https://api.zswitch.net:8443/v1' //'https://api.zswitch.net:8443/v1'

 

To: api_url: 'https://pintransfer.csgtech.net:8443/v1' //'https://pintransfer.csgtech.net:8443/v1'

 

It looks like there is a conflict with the monster UI program.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...