Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1213

NodeManager UI service is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0.0
    • None
    • Release
    • None
    • Ubuntu 16.04 on VM box over NAT network

    Description

      Getting error on knox

      http://hdata:8443/gateway/nui/node
      
      HTTP ERROR 500
      Problem accessing /gateway/nui/node. Reason:
      
          Server Error
      Powered by Jetty://

       

      Error

      2018-03-19 01:28:55,354 WARN knox.gateway (DefaultDispatch.java:executeOutboundRequest(147)) - Connection exception dispatching request: http://hdata:8443/gateway/nui/node java.net.SocketTimeoutException: Read timed out
      java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      at java.net.SocketInputStream.read(SocketInputStream.java:171)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at org.apache.http.impl.conn.LoggingInputStream.read(LoggingInputStream.java:84)
      at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
      at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
      at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:282)
      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
      at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
      at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
      at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165)
      at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
      at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
      at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
      at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
      at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
      at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
      at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
      at org.apache.knox.gateway.dispatch.DefaultDispatch.executeOutboundRequest(DefaultDispatch.java:130)
      at org.apache.knox.gateway.dispatch.DefaultDispatch.executeRequest(DefaultDispatch.java:116)
      at org.apache.knox.gateway.dispatch.DefaultDispatch.doGet(DefaultDispatch.java:278)
      at org.apache.knox.gateway.dispatch.GatewayDispatchFilter$GetAdapter.doMethod(GatewayDispatchFilter.java:122)
      at org.apache.knox.gateway.dispatch.GatewayDispatchFilter.doFilter(GatewayDispatchFilter.java:105)
      at org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:61)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.filter.rewrite.api.UrlRewriteServletFilter.doFilter(UrlRewriteServletFilter.java:60)
      at org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:61)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.filter.AnonymousAuthFilter$1.run(AnonymousAuthFilter.java:76)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.knox.gateway.filter.AnonymousAuthFilter.continueWithEstablishedSecurityContext(AnonymousAuthFilter.java:71)
      at org.apache.knox.gateway.filter.AnonymousAuthFilter.doFilter(AnonymousAuthFilter.java:66)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.filter.XForwardedHeaderFilter.doFilter(XForwardedHeaderFilter.java:30)
      at org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:61)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.GatewayFilter.doFilter(GatewayFilter.java:171)
      at org.apache.knox.gateway.GatewayFilter.doFilter(GatewayFilter.java:94)
      at org.apache.knox.gateway.GatewayServlet.service(GatewayServlet.java:141)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.apache.knox.gateway.trace.TraceHandler.handle(TraceHandler.java:51)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.apache.knox.gateway.filter.CorrelationHandler.handle(CorrelationHandler.java:39)
      at org.eclipse.jetty.servlets.gzip.GzipHandler.handle(GzipHandler.java:479)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.apache.knox.gateway.filter.PortMappingHelperHandler.handle(PortMappingHelperHandler.java:152)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:748)
      2018-03-19 01:28:55,354 DEBUG conn.DefaultHttpClientConnectionOperator (DefaultHttpClientConnectionOperator.java:connect(139)) - Connecting to hdata/10.0.2.104:8443
      2018-03-19 01:28:55,354 ERROR knox.gateway (AbstractGatewayFilter.java:doFilter(63)) - Failed to execute filter: java.io.IOException: Service connectivity error.
      java.io.IOException: Service connectivity error.
      at org.apache.knox.gateway.dispatch.DefaultDispatch.executeOutboundRequest(DefaultDispatch.java:148)
      at org.apache.knox.gateway.dispatch.DefaultDispatch.executeRequest(DefaultDispatch.java:116)
      at org.apache.knox.gateway.dispatch.DefaultDispatch.doGet(DefaultDispatch.java:278)
      at org.apache.knox.gateway.dispatch.GatewayDispatchFilter$GetAdapter.doMethod(GatewayDispatchFilter.java:122)
      at org.apache.knox.gateway.dispatch.GatewayDispatchFilter.doFilter(GatewayDispatchFilter.java:105)
      at org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:61)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.filter.rewrite.api.UrlRewriteServletFilter.doFilter(UrlRewriteServletFilter.java:60)
      at org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:61)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.filter.AnonymousAuthFilter$1.run(AnonymousAuthFilter.java:76)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.knox.gateway.filter.AnonymousAuthFilter.continueWithEstablishedSecurityContext(AnonymousAuthFilter.java:71)
      at org.apache.knox.gateway.filter.AnonymousAuthFilter.doFilter(AnonymousAuthFilter.java:66)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.filter.XForwardedHeaderFilter.doFilter(XForwardedHeaderFilter.java:30)
      at org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:61)
      at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:377)
      at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:277)
      at org.apache.knox.gateway.GatewayFilter.doFilter(GatewayFilter.java:171)
      at org.apache.knox.gateway.GatewayFilter.doFilter(GatewayFilter.java:94)
      at org.apache.knox.gateway.GatewayServlet.service(GatewayServlet.java:141)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.apache.knox.gateway.trace.TraceHandler.handle(TraceHandler.java:51)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.apache.knox.gateway.filter.CorrelationHandler.handle(CorrelationHandler.java:39)
      at org.eclipse.jetty.servlets.gzip.GzipHandler.handle(GzipHandler.java:479)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.apache.knox.gateway.filter.PortMappingHelperHandler.handle(PortMappingHelperHandler.java:152)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:748)
      2018-03-19 01:28:55,355 DEBUG io.SelectorManager (SelectorManager.java:submit(480)) - Queued change org.eclipse.jetty.io.SelectorManager$ManagedSelector$Accept@25dec108
      2018-03-19 01:28:55,355 DEBUG conn.DefaultHttpClientConnectionOperator (DefaultHttpClientConnectionOperator.java:connect(146)) - Connection established 10.0.2.104:52534<->10.0.2.104:8443
      2018-03-19 01:28:55,355 DEBUG conn.DefaultManagedHttpClientConnection (LoggingManagedHttpClientConnection.java:setSocketTimeout(88)) - http-outgoing-715: set socket timeout to 20000
      2018-03-19 01:28:55,355 DEBUG execchain.MainClientExec (MainClientExec.java:execute(256)) - Executing request GET /gateway/nui/node HTTP/1.1
      2018-03-19 01:28:55,355 DEBUG execchain.MainClientExec (MainClientExec.java:execute(261)) - Target auth state: UNCHALLENGED
      2018-03-19 01:28:55,356 DEBUG execchain.MainClientExec (MainClientExec.java:execute(267)) - Proxy auth state: UNCHALLENGED
      
      

       

      Topology

      hadoop@hdata:/opt/knox$ cat conf/topologies/nui.xml 
      <topology>
      <gateway>
      <provider>
      <role>authentication</role>
      <name>Anonymous</name>
      <enabled>true</enabled>
      </provider>
      <provider>
      <role>identity-assertion</role>
      <name>Default</name>
      <enabled>false</enabled>
      </provider>
      </gateway>
      <service>
      <role>NODE</role>
      <url>http://yarn:8042</url>
      </service>
      
      <service>
      <role>NODEUI</role>
      <url>http://yarn:8042</url>
      </service>
      </topology>
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              manoj_red_hat Manoj Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: