Has anyone done a docker install for Logscape

ForumCategory: QuestionsHas anyone done a docker install for Logscape
kimptoc asked 1 year ago

Just a thought… will have a go based on the download.  
 
I see the docker monitoring tools, but thought it would be useful to get the core webapp installed via docker too.
Probably give it a go 🙂
Cheers,
Chris

4 Answers
kimptoc answered 1 year ago

Here is my first go: https://github.com/kimptoc/docker-logscape
Once you log into logscape, the page keeps reloading itself – wonder what that could mean…

Neil Avery Staff answered 1 year ago

Hello – thanks for taking a look! We have been messing around with docker envs but not finished it(!). Ill ask nath to take a look at your stuff tomorrow. 
Cheers,
Neil.

Ben Newton Staff answered 1 year ago

Had a quick look – https://github.com/istairbn/docker-logscape  – updated for 3.11 and exposed a few more Ports.
The error in the agent.log is dashboard exited Msg:334340374 – also there are quite a few could not initialize class erorrs for com.logscape.play.servlet.SingletonDB$
 
 

Ben Newton Staff answered 1 year ago

From the dashboard.log – This is the first error found before it starts continually refreshing. 
 
2016-03-08 08:53:27,020 INFO qtp156856360-73 (portal.LoginRestServiceConnected) Starting
2016-03-08 08:53:27,368 WARN qtp156856360-51 (servlet.ServletHandler) Error for /play/admin-ws
java.lang.OutOfMemoryError
at sun.misc.Unsafe.allocateMemory(Native Method)
at net.openhft.lang.io.DirectStore.<init>(DirectStore.java:55)
at net.openhft.chronicle.map.ChronicleMapBuilder.createWithoutFile(ChronicleMapBuilder.java:1338)
at net.openhft.chronicle.map.ChronicleMapBuilder.create(ChronicleMapBuilder.java:1258)
at com.logscape.play.replay.ChronicleMapEventsDatabase.<init>(ChronicleMapEventsDatabase.scala:31)
at com.logscape.play.servlet.SingeltonDb$.getDb(Services.scala:35)
at com.logscape.play.servlet.SingeltonDb$.<init>(Services.scala:42)
at com.logscape.play.servlet.SingeltonDb$.<clinit>(Services.scala)
at com.logscape.play.servlet.Services$class.scheduler(Services.scala:21)
at com.logscape.play.deployment.Deployment.scheduler$lzycompute(Deployment.scala:41)
at com.logscape.play.deployment.Deployment.scheduler(Deployment.scala:41)
at com.logscape.play.deployment.Deployment.<init>(Deployment.scala:45)
at com.logscape.play.servlet.AdminWebSocketServlet.createWebSocket(AdminWebSocketServlet.scala:13)
at com.logscape.play.servlet.PlayWebSocketServlet$class.doWebSocketConnect(PlayWebSocketServlet.scala:21)
at com.logscape.play.servlet.AdminWebSocketServlet.doWebSocketConnect(AdminWebSocketServlet.scala:9)
at com.logscape.play.servlet.AdminWebSocketServlet.doWebSocketConnect(AdminWebSocketServlet.scala:9)
at org.eclipse.jetty.websocket.WebSocketFactory.acceptWebSocket(WebSocketFactory.java:372)
at org.eclipse.jetty.websocket.WebSocketServlet.service(WebSocketServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448)
at org.fusesource.scalate.servlet.TemplateEngineFilter.doFilter(TemplateEngineFilter.scala:87)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at com.logscape.play.servlet.SecurityFilter.doFilter(SecurityFilter.scala:42)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:932)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:994)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
2016-03-08 08:53:27,442 INFO qtp156856360-72 (servlet.WorkspaceWebSocketServlet) WebSocket connected with clientId: 192.168.99.1:49692
2016-03-08 08:53:27,442 INFO qtp156856360-72 (servlet.WorkspaceWebSocketServlet) WebSocket connected with user: sysadmin
2016-03-08 08:53:53,294 INFO services-1-6 (netty.NettyEndPoint)   Stats:servlet/stcp://172.17.0.2:11017 SendMsg:39 SendKb:18 RecvMsg:12 RecvKb:7 ]
2016-03-08 08:54:00,663 INFO PF-WebApp-1-2 (server.JettyMain) COMP:DashboardService 42810ec46c93 ROLE:dev.Management CPU:0
2016-03-08 08:54:00,663 INFO PF-WebApp-1-2 (server.JettyMain) COMP:DashboardService 42810ec46c93 ROLE:dev.Management MEM MB MAX:241 COMMITED:182 USED:91 AVAIL:149 USED_PC:37.76
^C
root@42810ec46c93:/app/logscape/work# tail -f dashboard.log
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455$WSFrameHandler.onFrame(WebSocketConnectionRFC6455.java:835)
at org.eclipse.jetty.websocket.WebSocketParserRFC6455.parseNext(WebSocketParserRFC6455.java:349)
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455.handle(WebSocketConnectionRFC6455.java:225)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
2016-03-08 08:54:39,802 INFO qtp156856360-72 (servlet.SearchWebSocket) Close Connection