Hi All,

I am currently testing an EI Integrator cluster with one analytics node
inside a kubernetes cluster of containers.
Analytics node runs on a docker container and when I try to access the EI
dashboard, following exception becomes visible on container logs.

[2017-08-10 06:48:20,887] [EI-Analytics] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager}
-  org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.axis2.AxisFault: connect timed out (/portal/modules/api.js#28)
(/portal/routers/apis.jag#40) (/portal/routers/tenant.jag#89)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.axis2.AxisFault: connect timed out (/portal/modules/api.js#28)
(/portal/routers/apis.jag#40) (/portal/routers/tenant.jag#89)
    at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(
RhinoEngine.java:571)
    at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(
RhinoEngine.java:273)
    at org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(
WebAppManager.java:588)
    at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(
WebAppManager.java:508)
    at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(
JaggeryServlet.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:208)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(
ApplicationDispatcher.java:747)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(
ApplicationDispatcher.java:485)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(
ApplicationDispatcher.java:377)
    at org.apache.catalina.core.ApplicationDispatcher.forward(
ApplicationDispatcher.java:337)
    at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(
JaggeryFilter.java:21)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(
WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:208)
    at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(
HttpHeaderSecurityFilter.java:120)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:218)
    at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:110)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:506)
    at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:169)
    at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:103)
    at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(
CompositeValve.java:99)
    at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.
invoke(CarbonTomcatValve.java:47)
    at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(
TenantLazyLoaderValve.java:57)
    at org.wso2.carbon.event.receiver.core.internal.tenantmgt.
TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
    at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(
TomcatValveContainer.java:47)
    at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(
CompositeValve.java:62)
    at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv
e.invoke(CarbonStuckThreadDetectionValve.java:159)
    at org.apache.catalina.valves.AccessLogValve.invoke(
AccessLogValve.java:962)
    at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(
CarbonContextCreatorValve.java:57)
    at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:452)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(
AbstractHttp11Processor.java:1087)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
process(AbstractProtocol.java:637)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
doRun(NioEndpoint.java:1760)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
run(NioEndpoint.java:1719)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.axis2.AxisFault: connect timed out (/portal/modules/api.js#28)
(/portal/routers/apis.jag#40) (/portal/routers/tenant.jag#89)

I have already set hostname and port in portal/config/designer.json to
kebernetes node ip (192.168.99.100) and node port (31032) and
according to the error trace, issue pops up at
https://github.com/wso2/carbon-dashboards/blob/release-2.0.2/apps/portal/modules/api.js#L28
which invokes the AuthenticationAdmin admin-service with "localhost"
attached as one parameter input.

if (authAdminClient.login(username, password, "localhost")) { ....

Could this be the root cause of this issue or something else ?

Appreciate your help.

Thanks,
Dilan

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to