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

Issues with v2.17 #492

Closed
schaubl opened this issue Oct 7, 2015 · 0 comments
Closed

Issues with v2.17 #492

schaubl opened this issue Oct 7, 2015 · 0 comments

Comments

@schaubl
Copy link
Contributor

schaubl commented Oct 7, 2015

With SlipStream v2.17 I have the following stacktraces in the log:

2015-10-07T17:05:51.130+0200 FINE sun.net.httpserver.ServerImpl logReply GET /metrics/render?target=keepLastValue(slipstream.super.usage.cpu-nb.*%2C24)&f<TRUNCATED> [200  OK] () 
 2015-10-07T17:05:51.131+0200 SEVERE org.restlet.engine.adapter.ServerAdapter commit An exception occured writing the response entity 

java.io.IOException: too many bytes to write to stream
    at sun.net.httpserver.FixedLengthOutputStream.write(FixedLengthOutputStream.java:76)
    at sun.net.httpserver.PlaceholderOutputStream.write(ExchangeImpl.java:444)
    at org.restlet.engine.io.IoUtils.copy(IoUtils.java:107)
    at org.restlet.engine.application.DecodeRepresentation.write(DecodeRepresentation.java:252)
    at org.restlet.engine.adapter.ServerCall.writeResponseBody(ServerCall.java:519)
    at org.restlet.engine.adapter.ServerCall.sendResponse(ServerCall.java:463)
    at org.restlet.engine.adapter.ServerAdapter.commit(ServerAdapter.java:196)
    at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:153)
    at org.restlet.engine.connector.HttpServerHelper$1.handle(HttpServerHelper.java:73)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
    at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
    at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
    at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
    at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:158)
    at sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:431)
    at sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:396)
    at java.lang.Thread.run(Thread.java:745)
2015-10-07T17:05:51.131+0200 WARNING org.restlet.engine.adapter.ServerAdapter commit Unable to send error response 

java.io.IOException: headers already sent
    at sun.net.httpserver.ExchangeImpl.sendResponseHeaders(ExchangeImpl.java:204)
    at sun.net.httpserver.HttpExchangeImpl.sendResponseHeaders(HttpExchangeImpl.java:86)
    at org.restlet.engine.connector.HttpExchangeCall.writeResponseHead(HttpExchangeCall.java:157)
    at org.restlet.engine.adapter.ServerCall.sendResponse(ServerCall.java:459)
    at org.restlet.engine.adapter.ServerAdapter.commit(ServerAdapter.java:214)
    at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:153)
    at org.restlet.engine.connector.HttpServerHelper$1.handle(HttpServerHelper.java:73)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
    at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
    at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
    at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
    at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:158)
    at sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:431)
    at sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:396)
    at java.lang.Thread.run(Thread.java:745)

And the server stop to serve the UI when I run an image (just after the redirection to the dashboard page) and Nginx returns a 504 Gateway Timeout
On the log file I can see that SlipStream is still running and doing tasks like describe instances but nothing from Restlet.

Notes:

  • SSCLJ was not running.
  • I have only one thread to serve HTTP requests so on an installation with multiple threads it may not block directly after the first image execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant