"notifications_listen_port": 5000, gives 404 error

Hi TYK Team/Community users,

After upgrading to the latest version of dashboard from V1.3.1 to V1.7.0, we are seeing 404 error while accessing the websocket port 5000

curl http://localhost:5000
404 page not found

However dashboard comesup without any issues and i could see the gateway nodes on the licenses section.

We have enabled the setting [“notifications_listen_port”: 5000] on tyk_analytics.conf
However we are still getting the same 404 error on 5000 port.
Could you please help with a solution to this ?

Note: Other blogs in this community regarding this error did not resolve the issue for us.

Thanks, Shabeer

In earlier Dashboard version (1.3.1) when we do a curl , we are getting Dashboard Login page contents

http://localhost:5000/

Tyk.io Loginbody {
        background-image:url('/images/2371bd6a.esher.png');
        background-repeat:repeat;
    }</style><body><div class="container"><div class="row"><div class="col-md-4 col-md-offset-4"><img src="/images/6fd8ce03.tyk.png" style="padding-left: 70px; margin-top:30%"></div></div><div class="row"><div class="col-md-4 col-md-offset-4"><div class="login-panel panel panel-default" style="margin-top:10%!important"><div class="panel-heading"><h3 class="panel-title">Please Sign In</h3></div><div class="panel-body"><form role="form" action="/login" method="post"><fieldset><div class="form-group"><input class="form-control" placeholder="Username" name="username" type="text" autofocus></div><div class="form-group"><input class="form-control" placeholder="Password" name="password" type="password" value=""></div><input type="hidden" name="csrf_token" value="BD9koUKHoeQqVrhv/2q1mJBthhVNnNMpjKYZRf&#43;D1lpgSP56EJ7IP&#43;9wEoibOribPnoSQeb85BukmMMorwLmoA=="><div style="text-align:center"><button type="submit" class="btn btn-success">Login</button></div></fieldset></form></div></div></div></div></div>

In the New version (1.7.0), when we do a curl of home page, we are getting 404 response
http://localhost:5000/
404 page not found

So it seems, on new version dashboard , users are not allowed to get any contents and it gives out 404 ?

In our current dashboard setup (v 1.3.1) we have a health check for 200 response for the http://localhost:5000/ in the AWS beanstalk to verify the application is working on the 5000 port. Since it is giving 404 error code AWS beanstalk environment reports unhealthy status for this port. AWS supports only 2XX status as successful Health checks.

If 404 is the behavior for http://localhost:5000/, is there any other static http resource/file under http://localhost:5000/ which gives a 200 response which we can use to monitor the health of this port (5000) ?

Thanks, Shabeer

Hi TYK Team,

Could you please let us know your recommendations on this issue ?

Thanks, Shabeer

Port 5000 is for Websockets connections from the UI, the UI itself runs on 3000 by default.

Which version are you running and what are you trying to achieve?

Hi Martin,

We are looking for any resource on 5000 port which can provide us a 200 http response when access.
On version 1.3.1 tyk dashboard it was working (curl http://localhost:5000/ , was giving 200 response on the dashboard machine). On new version 1.7.0 dashboard it is not (curl http://localhost:5000/ giving 404 response on the dashboard machine). On the new version Do we have any static resource which we can access to verify the health of the app on the port 5000 (Eg:- http://localhost:5000/images/abcd.png )?

Thanks,
Shabeer

Hi Martin/TYK Team,

Any updates on this ?

Thanks,
Shabeer