Post Reply 
MinimServer 2 disappearing sometimes
10-06-2020, 11:23
Post: #3
RE: MinimServer 2 disappearing sometimes
(09-06-2020 12:30)simoncn Wrote:  It looks like this crash dump is caused by the web browser closing its conection to MinimServer while MinimServer was sending a response. Perhaps closing the browser tab could cause this.

This is not related to your other problem of MinimServer disappearing from the network, which is caused by multicast discovery issues with your network (probably your router or switch). Some UPnP servers try to compensate for this by "flooding" the network with discovery messages. The ohNet stack used by MinimServer for UPnP communication does not do this, so it is more sensitive to these network problems. See this page for some suggestions for how to fix this issue.

I've repeated the crash for what it is worth.

I have Minimserver 2 running on a QNAP Armv7 NAS as mentioned and MinimWatch running on a Linux PC. Both are attached to the same Orbi satellite by ethernet.

If I view server 'properties' in MinimWatch and just leave the window open then wander off and do something else, it crashes MinimServer. Can't access the webpage, MinimWatch goes grey etc.

Here is the tail of the log prior to restart (ie suffix .log not crashXXX.log):

Code:
MinimServer: exception while processing HTTP request: java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
    at org.jminim.lib.HTTPContext.okResponse(HTTPContext.java:131)
    at com.minimserver.Server$ConfigRequestHandler.writeResource(Server.java:26435)
    at com.minimserver.Server$ConfigRequestHandler.processRequest(Server.java:24589)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​67)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

And here is the crash log after restart:
Code:
MinimServer crash dump, produced at 20200610-194704.204

MinimServer: exception while processing HTTP request: java.net.SocketException: Socket closed

java.net.SocketException: Socket closed
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
    at org.jminim.lib.HTTPContext.okResponse(HTTPContext.java:131)
    at com.minimserver.Server$ConfigRequestHandler.writeResource(Server.java:26435)
    at com.minimserver.Server$ConfigRequestHandler.processRequest(Server.java:24589)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​67)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-1391" id=1407 RUNNABLE
    at sun.management.ThreadImpl.dumpThreads0(Native Method)
    at sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:448)
    at org.jminim.core.LogImpl.writeCrashDump(LogImpl.java:1217)
    at org.jminim.core.LogImpl.printStackTraceSync(LogImpl.java:1142)
    - locked org.jminim.core.LogImpl@10cd8b7
    at org.jminim.core.LogImpl.reportErrorEx(LogImpl.java:249)
    at com.minimserver.Server$ConfigRequestHandler.processRequest(Server.java:24605)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​67)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-1385" id=1400 RUNNABLE (in native)
    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.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:193)
    at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​56)
    at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:127)

"Thread-1383" id=1399 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.HTTPConnection@9fa2bb
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:109)
    at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​37)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-1382" id=1398 RUNNABLE (in native)
    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.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:193)
    at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​56)
    at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:127)

"Thread-1381" id=1397 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.HTTPConnection@1ab10eb
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:109)
    at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​37)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-1380" id=1396 RUNNABLE (in native)
    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.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:193)
    at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​56)
    at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:127)

"Thread-1379" id=1395 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.HTTPConnection@f5325d
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:109)
    at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​37)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-1369" id=1385 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on com.minimserver.FileResource$ReaderThread@208ee6
    at java.lang.Object.wait(Object.java:502)
    at com.minimserver.FileResource$ReaderThread.waitForEmpty(FileResource.java:576)
    at com.minimserver.FileResource$ReaderThread.readStream(FileResource.java:497)
    at com.minimserver.FileResource$ReaderThread.run(FileResource.java:484)

"Thread-1368" id=1384 RUNNABLE (in native)
    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.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:193)
    at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​56)
    at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:127)

"Thread-1367" id=1383 RUNNABLE (in native)
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
    at com.minimserver.FileResource.writeData(FileResource.java:217)
    at com.minimserver.ServerRequestHandler.processRequest(ServerRequestHandler.java:53​0)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​67)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-200" id=209 RUNNABLE (in native)
    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.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:193)
    at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​56)
    at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:127)

"Thread-199" id=208 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.HTTPConnection@1b7320d
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:109)
    at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​37)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-196" id=205 RUNNABLE (in native)
    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.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:193)
    at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​56)
    at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:127)

"Thread-195" id=204 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.HTTPConnection@e65976
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:109)
    at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​37)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-194" id=203 RUNNABLE (in native)
    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.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:193)
    at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​56)
    at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:127)

"Thread-193" id=202 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.HTTPConnection@12a43ef
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:109)
    at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
    at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​37)
    at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:422)

"Thread-174" id=183 RUNNABLE (in native)

"Thread-173" id=182 RUNNABLE (in native)

"Timer-0" id=55 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on java.util.TaskQueue@48ca69
    at java.lang.Object.wait(Object.java:502)
    at java.util.TimerThread.mainLoop(Timer.java:526)
    at java.util.TimerThread.run(Timer.java:505)

"Thread-45" id=54 RUNNABLE (in native)

"Thread-11" id=20 RUNNABLE (in native)
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
    at java.net.ServerSocket.implAccept(ServerSocket.java:545)
    at java.net.ServerSocket.accept(ServerSocket.java:513)
    at org.jminim.lib.HTTPService.runServerThread(HTTPService.java:342)
    at org.jminim.lib.HTTPService.access$200(HTTPService.java:31)
    at org.jminim.lib.HTTPService$1.run(HTTPService.java:327)

"Thread-9" id=19 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.HTTPService$SocketThread@9da28a
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.HTTPService$SocketThread.run(HTTPService.java:397)

"Thread-10" id=18 RUNNABLE (in native)

"Thread-8" id=17 RUNNABLE (in native)

"Thread-7" id=16 RUNNABLE (in native)

"Thread-6" id=15 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.OhNetService$TimerThread@1070a0e
    at org.jminim.lib.OhNetService$TimerThread.run(OhNetService.java:1031)

"Thread-5" id=14 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.lib.OhNetService$ActionThread@150e876
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.lib.OhNetService$ActionThread.run(OhNetService.java:986)

"Thread-1" id=8 TIMED_WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.core.RuntimeImpl$TimerThread@1097ab7
    at org.jminim.core.RuntimeImpl$TimerThread.run(RuntimeImpl.java:4084)

"Thread-0" id=7 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on org.jminim.core.RuntimeImpl$ActionThread@6702ae
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.core.RuntimeImpl$ActionThread.run(RuntimeImpl.java:4038)

"Signal Dispatcher" id=4 RUNNABLE

"Finalizer" id=3 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on java.lang.ref.ReferenceQueue$Lock@1513056
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" id=2 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on java.lang.ref.Reference$Lock@19c68d2
    at java.lang.Object.wait(Object.java:502)
    at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

"main" id=1 WAITING
    at java.lang.Object.wait(Native Method)
    - waiting on java.lang.Object@1107ed4
    at java.lang.Object.wait(Object.java:502)
    at org.jminim.core.RuntimeImpl.waitForRequest(RuntimeImpl.java:3946)
    at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:2440)
    at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1302)
    at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.jminim.mlaunch.MinimLaunch.doLaunch(MinimLaunch.java:525)
    at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:150)
    at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.jminim.launch.Launcher.launch(Launcher.java:88)
    at com.minimserver.launch.LaunchServer.main(LaunchServer.java:38)

- - - - - - - - - - - - - - - -
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: MinimServer 2 disappearing sometimes - solanum - 10-06-2020 11:23

Forum Jump:


User(s) browsing this thread: 1 Guest(s)