0
Under review

Error in loading database

synobooks 8 years ago updated 8 years ago 9

Hi,


I was reading my pdf books halfway on my tablet and the wifi connection got disrupted. After resumption of my wifi connection, I am unable to login back to ubooquity. The webpage would show "Error_timed_out". I am unable to get back into ubooquity unless I shut down and reboot the whole server.


It consistently happens whenever i am in the midst of reading a pdf file and the net connection gets disrupted.


Could you add a code to auto logout should there be inactivity for more than 15 mins? It would then prevent the whole server from hanging because the database can't be read.


The following log shows:


20160529 14:56:01 [main] INFO com.ubooquity.Ubooquity - Loading preferences
20160529 14:56:04 [main] ERROR com.ubooquity.data.database.c - Cound not get number of existing tables
org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-187]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:179) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:155) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.getExceptionAlreadyInUse(FileLock.java:461) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lockFile(FileLock.java:355) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lock(FileLock.java:135) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.open(Database.java:634) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.openDatabase(Database.java:266) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.(Database.java:260) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:60) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:167) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSessionAndValidate(Engine.java:145) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:128) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:26) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:347) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:108) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:92) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.Driver.connect(Driver.java:72) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:190) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:353) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:385) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:227) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at com.ubooquity.data.database.c.g(SourceFile:121) [Ubooquity.jar:1.10.0]
   at com.ubooquity.data.database.c.(SourceFile:47) [Ubooquity.jar:1.10.0]
   at com.ubooquity.Ubooquity.main(SourceFile:258) [Ubooquity.jar:1.10.0]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_92]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_92]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_92]
   at com.ubooquity.e.c.a(SourceFile:823) [Ubooquity.jar:1.10.0]
   at com.ubooquity.Launcher.main(SourceFile:10) [Ubooquity.jar:1.10.0]
20160529 14:56:06 [main] ERROR com.ubooquity.data.database.c - Could not configure collation strength
org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-187]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:179) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:155) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.getExceptionAlreadyInUse(FileLock.java:461) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lockFile(FileLock.java:355) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lock(FileLock.java:135) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.open(Database.java:634) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.openDatabase(Database.java:266) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.(Database.java:260) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:60) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:167) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSessionAndValidate(Engine.java:145) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:128) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:26) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:347) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:108) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:92) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.Driver.connect(Driver.java:72) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:190) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:353) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:385) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:227) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at com.ubooquity.data.database.c.h(SourceFile:144) [Ubooquity.jar:1.10.0]
   at com.ubooquity.data.database.c.(SourceFile:48) [Ubooquity.jar:1.10.0]
   at com.ubooquity.Ubooquity.main(SourceFile:258) [Ubooquity.jar:1.10.0]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_92]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_92]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_92]
   at com.ubooquity.e.c.a(SourceFile:823) [Ubooquity.jar:1.10.0]
   at com.ubooquity.Launcher.main(SourceFile:10) [Ubooquity.jar:1.10.0]
20160529 14:56:08 [main] ERROR com.ubooquity.data.database.b - Cound not create COMIC table
org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-187]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:179) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:155) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.getExceptionAlreadyInUse(FileLock.java:461) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lockFile(FileLock.java:355) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lock(FileLock.java:135) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.open(Database.java:634) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.openDatabase(Database.java:266) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.(Database.java:260) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:60) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:167) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSessionAndValidate(Engine.java:145) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:128) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:26) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:347) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:108) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:92) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.Driver.connect(Driver.java:72) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:190) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:353) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:385) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:227) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at com.ubooquity.data.database.b.e(SourceFile:610) ~[Ubooquity.jar:1.10.0]
   at com.ubooquity.data.database.c.(SourceFile:57) [Ubooquity.jar:1.10.0]
   at com.ubooquity.Ubooquity.main(SourceFile:258) [Ubooquity.jar:1.10.0]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_92]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_92]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_92]
   at com.ubooquity.e.c.a(SourceFile:823) [Ubooquity.jar:1.10.0]
   at com.ubooquity.Launcher.main(SourceFile:10) [Ubooquity.jar:1.10.0]
20160529 14:56:08 [main] ERROR com.ubooquity.Ubooquity - Exiting application because of exception
org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-187]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:179) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.message.DbException.get(DbException.java:155) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.getExceptionAlreadyInUse(FileLock.java:461) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lockFile(FileLock.java:355) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.store.FileLock.lock(FileLock.java:135) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.open(Database.java:634) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.openDatabase(Database.java:266) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Database.(Database.java:260) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:60) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.openSession(Engine.java:167) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSessionAndValidate(Engine.java:145) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:128) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.Engine.createSession(Engine.java:26) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:347) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:108) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:92) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.Driver.connect(Driver.java:72) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:190) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:353) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:385) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:227) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199) ~[h2-1.4.187.jar.5592702856121964741.tmp:1.4.187]
   at com.ubooquity.data.database.b.e(SourceFile:610) ~[Ubooquity.jar:1.10.0]
   at com.ubooquity.data.database.c.(SourceFile:57) ~[Ubooquity.jar:1.10.0]
   at com.ubooquity.Ubooquity.main(SourceFile:258) ~[Ubooquity.jar:1.10.0]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_92]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_92]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_92]
   at com.ubooquity.e.c.a(SourceFile:823) [Ubooquity.jar:1.10.0]
   at com.ubooquity.Launcher.main(SourceFile:10) [Ubooquity.jar:1.10.0]



Appreciate your help

Under review

You mean you are running Ubooquity on one device while having its working directory (its database, log files etc) on a network drive on another device ?

Hmm, not quite. Ubooquity is running on synology NAS and I'm accessing ubooquity from my tablet, hence it's not exactly running on my tablet.


However, if I'm reading it halfway and put my tablet to sleep, the next time I try to access it again from where I left off, it would show the error_timed_out message.

I was asking because the error message you posted is not related to the network at all.


Database may be already in use: "Locked by another process"

means that the database file Ubooquity relies on is already in use by another process (basically you launched Ubooquity twice).


But I fail to see a link between this error and the network issue you are describing.

This is the only error/warning you have in the logs ?

I have private message you the full logs. Every time I read halfway and the net connection gets interrupted, the whole server becomes unusable with the logs above. Hope you could assist.

You are right.


The initial error results from the SSLexception, resulting in the inability to access the webpage. Attempts to reboot the server via ssh results in Database may be already in use: "Locked by another process".


20160525 09:56:36 [pool-1-thread-12] INFO com.ubooquity.provider.epubreader.a - xxx is reading /volume1/Books/xxx.epub
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - java.net.SocketException - Connection reset
20160525 09:59:29 [pool-1-thread-12] INFO com.ubooquity.e.e - Served file to xxx in 0 sec:xxx.epub
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:29 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 09:59:30 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 10:00:42 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 10:00:42 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 10:00:42 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 10:00:42 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 10:00:42 [pool-1-thread-12] WARN com.ubooquity.e.e - Interrupted while sending response (perhaps the client stopped the download) - javax.net.ssl.SSLException - Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
20160525 10:00:42 [pool-1-thread-12] INFO com.ubooquity.provider.epubreader.a - xxxx is reading /volume1/Books/xxxx.epub

I looked at the logs you sent me by private message and the ones you posted here, but I still don't know what the problem is. :(


For the "Locked by another process" issue: is the Ubooquity java process still running when you try to restart it ?


As for the network issue, I have no idea.

I am in the process of replacing the current internal server of Ubooquity with another one, perhaps it'll help. But it's a long shot.


Yes, I think the java process is probably still running after I tried to kill it through ssh


I tried "stop ubooquity" but it says "Stop: unknown instance"

Hence I tried "pkill -f 'java -jar'" but when I tried "start ubooquity" it gives me the "Locked by another process" issue.


I figured both commands failed to kill the java process. I know of no other way to stop ubooquity after the above SSLexception error except to manually reboot the whole system.


Thanks for your response.


Usually, I do a "pgrep -lf java" to list all running java processes, then I identify the one running Ubooquity by its command line argument.

I take its PID then kill it with "kill <PID>".


Nothing special here, pure Linux commands. Once you get the PID of a process, there is nothing preventing you from killing it (except if it has been started by another user).


Last thing to check: in earlier versions of Ubooquity, a "<database_name>.lock.db" file was created in the working directory to ensure the database was not accessed by two instances of Ubooquity at the same time.

Details here: http://www.h2database.com/html/advanced.html#file_locking_protocols


But this is done that way anymore, so I don't think you have this issue.

Thanks for the info. I managed to kill it using jcmd to find the PID. Somehow pgrep doesn't work for me.


However I'm still getting SSLException issue. Oh well, hopefully with the replacement of the internal server of Ubooquity in the next version it will help solve the issue.