Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shinyproxy 2.4.1 fails to load DT tables: ajax error #246

Closed
MalditoBarbudo opened this issue Oct 30, 2020 · 9 comments
Closed

shinyproxy 2.4.1 fails to load DT tables: ajax error #246

MalditoBarbudo opened this issue Oct 30, 2020 · 9 comments

Comments

@MalditoBarbudo
Copy link

Hi,

I'm running some apps in a swarm dockerized shinyproxy and tried to update shinyproxy from 2.3.1 to 2.4.1

Apps work nice except for DT tables. They raise an ajax error that not appears in shinyproxy 2.3.1:
screenshot-2020-10-30_10-44-27

Chrome console says the following:

screenshot-2020-10-30_10-28-14

Here is an example of a simple app that can trigger the issue, at least in my config:

library(shiny)
library(DT)
# ui
  ui <- shiny::fluidPage(
    DT::DTOutput('iris_table')
  )

  # server
  server <- function(input, output, session) {

    output$iris_table <- DT::renderDT({
      DT::datatable(iris)
    })
  }

  shiny::shinyApp(ui, server)

And the (I think) relevant lines in shinyproxy logs:

2020-10-30T09:27:03.690039944Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 2020-10-30 09:27:03.689 DEBUG 1 --- [  XNIO-1 I/O-10] io.undertow.request.io                   : Fixed length stream closed with with 1378 bytes remaining
2020-10-30T09:27:03.690292679Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 2020-10-30 09:27:03.690 DEBUG 1 --- [  XNIO-1 I/O-10] i.u.client.http.HttpClientExchange       : request terminated for request to 2413b0413c55/10.0.1.133:3838 /session/3f66af1cdf5134d02403b8140f768758/dataobj/iris_table?w=&nonce=d59bacb470b9a656
2020-10-30T09:27:03.691633741Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 2020-10-30 09:27:03.691 ERROR 1 --- [  XNIO-1 I/O-10] io.undertow.proxy                        : UT005028: Proxy request to /shinyproxy/proxy_endpoint/420b8d5a-b0fa-4f28-8575-d98b05ea7e46/session/3f66af1cdf5134d02403b8140f768758/dataobj/iris_table failed
2020-10-30T09:27:03.691664541Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 
2020-10-30T09:27:03.691672937Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | io.undertow.server.TruncatedResponseException: null
2020-10-30T09:27:03.691679740Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpRequestConduit.truncateWrites(HttpRequestConduit.java:711) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691687091Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:256) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691694144Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
2020-10-30T09:27:03.691701331Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:79) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691708134Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$HTTPTrailerChannelListener.handleEvent(ProxyHandler.java:754) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691714960Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:646) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691721719Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:561) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691740601Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientExchange.invokeReadReadyCallback(HttpClientExchange.java:212) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691747781Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientConnection.initiateRequest(HttpClientConnection.java:414) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691754617Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientConnection.sendRequest(HttpClientConnection.java:347) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691761270Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction.run(ProxyHandler.java:561) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691767989Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.util.SameThreadExecutor.execute(SameThreadExecutor.java:35) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691776322Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.HttpServerExchange.dispatch(HttpServerExchange.java:821) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691783155Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:316) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691789864Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:290) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691796580Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connectionReady(ProxyConnectionPool.java:353) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691803303Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool.access$900(ProxyConnectionPool.java:61) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691810413Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool$2.completed(ProxyConnectionPool.java:287) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691817082Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool$2.completed(ProxyConnectionPool.java:274) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691823731Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider.handleConnected(HttpClientProvider.java:156) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691830427Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider.access$000(HttpClientProvider.java:51) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691837253Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider$2.handleEvent(HttpClientProvider.java:127) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691843892Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider$2.handleEvent(HttpClientProvider.java:124) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.691850561Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
2020-10-30T09:27:03.691857163Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at org.xnio.nio.WorkerThread$ConnectHandle.handleReady(WorkerThread.java:333) [xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
2020-10-30T09:27:03.691864056Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) [xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
2020-10-30T09:27:03.691870632Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 
2020-10-30T09:27:03.692511847Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 2020-10-30 09:27:03.692 DEBUG 1 --- [  XNIO-1 I/O-10] io.undertow.request.error-response       : Setting error code 503 for exchange HttpServerExchange{ POST /shinyproxy/proxy_endpoint/420b8d5a-b0fa-4f28-8575-d98b05ea7e46/session/3f66af1cdf5134d02403b8140f768758/dataobj/iris_table}
2020-10-30T09:27:03.692557512Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 
2020-10-30T09:27:03.692566797Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | java.lang.RuntimeException: null
2020-10-30T09:27:03.692573600Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.HttpServerExchange.setStatusCode(HttpServerExchange.java:1416) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692580954Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler.handleFailure(ProxyHandler.java:668) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692587887Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$HTTPTrailerChannelListener.handleEvent(ProxyHandler.java:769) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692594773Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:646) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692601442Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:561) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692608095Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientExchange.invokeReadReadyCallback(HttpClientExchange.java:212) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692614734Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientConnection.initiateRequest(HttpClientConnection.java:414) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692621507Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientConnection.sendRequest(HttpClientConnection.java:347) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692628226Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction.run(ProxyHandler.java:561) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692638133Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.util.SameThreadExecutor.execute(SameThreadExecutor.java:35) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692644758Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.HttpServerExchange.dispatch(HttpServerExchange.java:821) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692651578Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:316) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692659901Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:290) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692666670Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connectionReady(ProxyConnectionPool.java:353) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692673560Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool.access$900(ProxyConnectionPool.java:61) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692680426Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool$2.completed(ProxyConnectionPool.java:287) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692687095Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.server.handlers.proxy.ProxyConnectionPool$2.completed(ProxyConnectionPool.java:274) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692699535Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider.handleConnected(HttpClientProvider.java:156) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692706401Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider.access$000(HttpClientProvider.java:51) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692713484Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider$2.handleEvent(HttpClientProvider.java:127) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692720127Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at io.undertow.client.http.HttpClientProvider$2.handleEvent(HttpClientProvider.java:124) [undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
2020-10-30T09:27:03.692726833Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
2020-10-30T09:27:03.692733391Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at org.xnio.nio.WorkerThread$ConnectHandle.handleReady(WorkerThread.java:333) [xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
2020-10-30T09:27:03.692740147Z lfc_swarm_lfc_shinyproxy_production.1.kjw50aadt3q9@fun2fun    | 	at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) [xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
@LEDfan
Copy link
Member

LEDfan commented Oct 30, 2020

Hi

A similar error was reported last week. The cause was that debug logging was enabled, because some class is logging too much and therefore the requests cannot be properly handled by the proxy server.
(See #140 (comment))
You should change you config to:

logging:
  level:
     root: DEBUG
     org:
        springframework:
           web:
              servlet:
                 DispatcherServlet: INFO

Or disable the debug log level completely.
The log level for DispatcherServlet will be changed in the next release, so that this work-around is no longer needed.

Can you please report back whether this fixes the issue for you?

@MalditoBarbudo
Copy link
Author

Hi @LEDfan
Thanks for the fast answer.
You were right, applying the modified log config solves the problem. Sorry for not noticing the previous issue.

@egde
Copy link

egde commented Nov 18, 2020

The suggested fix by changing the log settings to the above did not work for me.

I have the following error logs there:

2020-11-18 09:03:30.626 ERROR 30540 --- [  XNIO-1 I/O-10] io.undertow.proxy                        : UT005028: Proxy request to /proxy_endpoint/9e4a846c-569a-47da-a5d7-aec3393b5126/session/84053972e6f1f406b832b9e94e783556/dataobj/universe_statistics failed

io.undertow.server.TruncatedResponseException: null
	at io.undertow.client.http.HttpRequestConduit.truncateWrites(HttpRequestConduit.java:711) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:256) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:79) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$HTTPTrailerChannelListener.handleEvent(ProxyHandler.java:754) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:646) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:561) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientExchange.invokeReadReadyCallback(HttpClientExchange.java:212) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection.initiateRequest(HttpClientConnection.java:414) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection.sendRequest(HttpClientConnection.java:347) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction.run(ProxyHandler.java:561) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.util.SameThreadExecutor.execute(SameThreadExecutor.java:35) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.HttpServerExchange.dispatch(HttpServerExchange.java:821) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:316) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:290) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connectionReady(ProxyConnectionPool.java:353) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connect(ProxyConnectionPool.java:548) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.LoadBalancingProxyClient.getConnection(LoadBalancingProxyClient.java:316) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at eu.openanalytics.containerproxy.util.ProxyMappingManager$1.getConnection(ProxyMappingManager.java:88) ~[containerproxy-0.8.5.jar!/:0.8.5]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.run(ProxyHandler.java:310) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:479) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]

2020-11-18 09:03:30.626 ERROR 30540 --- [  XNIO-1 I/O-12] io.undertow.proxy                        : UT005028: Proxy request to /proxy_endpoint/9e4a846c-569a-47da-a5d7-aec3393b5126/session/84053972e6f1f406b832b9e94e783556/dataobj/csss_candidates_statistics failed

io.undertow.server.TruncatedResponseException: null
	at io.undertow.client.http.HttpRequestConduit.truncateWrites(HttpRequestConduit.java:711) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:256) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:79) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$HTTPTrailerChannelListener.handleEvent(ProxyHandler.java:754) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:646) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:561) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientExchange.invokeReadReadyCallback(HttpClientExchange.java:212) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection.initiateRequest(HttpClientConnection.java:414) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection.sendRequest(HttpClientConnection.java:347) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction.run(ProxyHandler.java:561) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.util.SameThreadExecutor.execute(SameThreadExecutor.java:35) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.HttpServerExchange.dispatch(HttpServerExchange.java:821) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:316) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:290) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connectionReady(ProxyConnectionPool.java:353) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connect(ProxyConnectionPool.java:548) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.LoadBalancingProxyClient.getConnection(LoadBalancingProxyClient.java:316) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at eu.openanalytics.containerproxy.util.ProxyMappingManager$1.getConnection(ProxyMappingManager.java:88) ~[containerproxy-0.8.5.jar!/:0.8.5]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.run(ProxyHandler.java:310) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:479) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]

2020-11-18 09:03:30.645 ERROR 30540 --- [  XNIO-1 I/O-14] io.undertow.proxy                        : UT005028: Proxy request to /proxy_endpoint/9e4a846c-569a-47da-a5d7-aec3393b5126/session/84053972e6f1f406b832b9e94e783556/dataobj/flatTable_statistics failed

io.undertow.server.TruncatedResponseException: null
	at io.undertow.client.http.HttpRequestConduit.truncateWrites(HttpRequestConduit.java:711) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:256) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:79) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$HTTPTrailerChannelListener.handleEvent(ProxyHandler.java:754) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:646) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction$1.completed(ProxyHandler.java:561) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientExchange.invokeReadReadyCallback(HttpClientExchange.java:212) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection.initiateRequest(HttpClientConnection.java:414) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection.sendRequest(HttpClientConnection.java:347) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyAction.run(ProxyHandler.java:561) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.util.SameThreadExecutor.execute(SameThreadExecutor.java:35) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.HttpServerExchange.dispatch(HttpServerExchange.java:821) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:316) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.completed(ProxyHandler.java:290) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connectionReady(ProxyConnectionPool.java:353) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.ProxyConnectionPool.connect(ProxyConnectionPool.java:548) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.server.handlers.proxy.LoadBalancingProxyClient.getConnection(LoadBalancingProxyClient.java:316) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at eu.openanalytics.containerproxy.util.ProxyMappingManager$1.getConnection(ProxyMappingManager.java:88) ~[containerproxy-0.8.5.jar!/:0.8.5]
	at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.run(ProxyHandler.java:310) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:479) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]

2020-11-18 09:12:57.684 ERROR 30540 --- [  XNIO-1 I/O-10] io.undertow.proxy                        : UT005028: Proxy request to /proxy_endpoint/9e4a846c-569a-47da-a5d7-aec3393b5126/session/84053972e6f1f406b832b9e94e783556/dataobj/universe_statistics failed

java.nio.channels.ClosedChannelException: null
	at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:192) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:171) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.StreamConnection.invokeCloseListener(StreamConnection.java:80) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.Connection.writeClosed(Connection.java:117) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.AbstractNioStreamConnection.writeClosed(AbstractNioStreamConnection.java:47) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.terminateWrites(NioSocketConduit.java:182) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.truncateWrites(NioSocketConduit.java:198) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.client.http.HttpRequestConduit.truncateWrites(HttpRequestConduit.java:701) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.AbstractSinkConduit.truncateWrites(AbstractSinkConduit.java:82) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.truncateWrites(AbstractFixedLengthStreamSinkConduit.java:277) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.IoUtils.safeClose(IoUtils.java:152) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:507) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]

2020-11-18 09:12:57.685 ERROR 30540 --- [  XNIO-1 I/O-12] io.undertow.proxy                        : UT005028: Proxy request to /proxy_endpoint/9e4a846c-569a-47da-a5d7-aec3393b5126/session/84053972e6f1f406b832b9e94e783556/dataobj/csss_candidates_statistics failed

java.nio.channels.ClosedChannelException: null
	at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:192) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:171) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.StreamConnection.invokeCloseListener(StreamConnection.java:80) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.Connection.writeClosed(Connection.java:117) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.AbstractNioStreamConnection.writeClosed(AbstractNioStreamConnection.java:47) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.terminateWrites(NioSocketConduit.java:182) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.truncateWrites(NioSocketConduit.java:198) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.client.http.HttpRequestConduit.truncateWrites(HttpRequestConduit.java:701) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.AbstractSinkConduit.truncateWrites(AbstractSinkConduit.java:82) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.truncateWrites(AbstractFixedLengthStreamSinkConduit.java:277) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.IoUtils.safeClose(IoUtils.java:152) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:507) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]

2020-11-18 09:12:57.685 ERROR 30540 --- [  XNIO-1 I/O-14] io.undertow.proxy                        : UT005028: Proxy request to /proxy_endpoint/9e4a846c-569a-47da-a5d7-aec3393b5126/session/84053972e6f1f406b832b9e94e783556/dataobj/flatTable_statistics failed

java.nio.channels.ClosedChannelException: null
	at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:192) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:171) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.StreamConnection.invokeCloseListener(StreamConnection.java:80) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.Connection.writeClosed(Connection.java:117) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.AbstractNioStreamConnection.writeClosed(AbstractNioStreamConnection.java:47) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.terminateWrites(NioSocketConduit.java:182) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.truncateWrites(NioSocketConduit.java:198) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.client.http.HttpRequestConduit.truncateWrites(HttpRequestConduit.java:701) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.AbstractSinkConduit.truncateWrites(AbstractSinkConduit.java:82) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.truncateWrites(AbstractFixedLengthStreamSinkConduit.java:277) ~[undertow-core-2.1.4.Final.jar!/:2.1.4.Final]
	at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.IoUtils.safeClose(IoUtils.java:152) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) ~[xnio-api-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:507) ~[xnio-nio-3.8.0.Final.jar!/:3.8.0.Final]

@LEDfan
Copy link
Member

LEDfan commented Nov 19, 2020

Hi @egde , I'm unable to reproduce the issue here, can you please provide the following information:

  • how are you running ShinyProxy (using the jar, Docker, Kubernetes etc)
  • what java version are you using?
  • provide your application.yaml file (remove sensitive values)
  • are you using a load-balancer or reverse proxy? which one? please provide the config too

@mikiril
Copy link

mikiril commented Nov 22, 2020

Hi,
Changing the log setting to INFO or WARN doesn’t help me either.
My setup is:

  • Containerized shinyproxy;
  • Tried both openjdk:8-jre and openjdk:11-jre in Dockerfile;
  • No load balancer;
  • NGINX as reverse proxy.
    If needed, I can upload my error log, application.yaml and NGINX config.

@egde
Copy link

egde commented Nov 30, 2020

I took some time today to have a look at it. The DT tables work fine if authentication is off. Problems begin with

authentication: openid 

I am using Azure Active Directory here.

@LEDfan
Copy link
Member

LEDfan commented Dec 1, 2020

Hi @egde

Thanks for looking into it again. There is indeed a problem with the combination of openid and Data Tables. I managed to provide a bugfix which will be released in a next version.

@mikiril
Copy link

mikiril commented Dec 1, 2020

Hi @LEDfan,

Many thanks for fixing it so fast!
May I ask you when the new version is planned to be released?
And if there is a workaround?

Thanks once again!

@LEDfan
Copy link
Member

LEDfan commented Dec 17, 2020

This issue is now fixed in the just released 2.4.2.

I'll lock this issue, so that the issues stay maintainable for us.
Of course, as always don't hesitate to open a new issue if you encounter any problem!

@openanalytics openanalytics locked as resolved and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants