0
Planned

[Feature Request] Database backup & configuration options

Matthew Bourns 9 months ago updated 9 months ago 2

At the moment I am manually copying my database file after each scan but as the application locks the db I have to exit the server first.

What I would love is if before it starts a scan it creates a backup of the database. I envisioned a default of 2 backups and an option in the config to adjust that number upwards as well as changing the backup location. With backups either deleted or over written when it launches a scan based on the number of backups configured. Thanks

0
Under review

corrupted databse in V3

Tomas Platero 10 months ago updated 10 months ago 5

I have UBooquity 3 running during 5 or 6 days and after restart the machine i have this problem. Could you how can i recover the database?


6 19:46:50 [main] INFO com.ubooquity.Ubooquity - Running with the following parameters - headless: true, libraryport: -1, adminport: -1, remoteadmin: true, host: null, execdir: G:\Ubooquity 3
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - #############################
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - # Starting Ubooquity #
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - #############################
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - Java version: 17.0.11
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - Java vendor: Oracle Corporation
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - java vm name: Java HotSpot(TM) 64-Bit Server VM
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - java runtime name: Java(TM) SE Runtime Environment
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - Max heap size available: 8176 MB
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - OS name: Windows 11
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - OS version: 10.0
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - OS architecture: amd64
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - Loading local version info
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - Ubooquity 3.0.1 built on 2023-10-15 at 17:52
20240606 19:46:50 [main] INFO com.ubooquity.Ubooquity - Creating application folders
20240606 19:46:50 [main] INFO c.u.pref.PreferencesRepository - Loading preferences...
20240606 19:46:51 [main] ERROR com.ubooquity.a.a.b - Cound not get number of existing tables
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Archivo corrupto mientras se le�a el registro: "G:/Ubooquity 3/ubooquity-6.mv.db". Soluci�n Posible: use la herramienta de recuperaci�n (recovery tool)
File corrupted while reading record: "G:/Ubooquity 3/ubooquity-6.mv.db". Possible solution: use the recovery tool [90030-222]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
at org.h2.message.DbException.get(DbException.java:212)
at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
at org.h2.mvstore.db.Store.(Store.java:142)
at org.h2.engine.Database.(Database.java:326)
at org.h2.engine.Engine.openSession(Engine.java:92)
at org.h2.engine.Engine.openSession(Engine.java:222)
at org.h2.engine.Engine.createSession(Engine.java:201)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:343)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:125)
at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)
at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:352)
at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:233)
at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:198)
at com.ubooquity.a.a.b.g(SourceFile:123)
at com.ubooquity.a.a.b.(SourceFile:49)
at com.ubooquity.Ubooquity.main(SourceFile:188)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.ubooquity.e.a.a(SourceFile:818)
at com.ubooquity.Launcher.main(SourceFile:10)
Caused by: org.h2.mvstore.MVStoreException: File is corrupted - unable to recover a valid set of chunks [2.2.222/6]
at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:320)
at org.h2.mvstore.FileStore.start(FileStore.java:916)
at org.h2.mvstore.MVStore.(MVStore.java:289)
at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
at org.h2.mvstore.db.Store.(Store.java:133)
... 19 common frames omitted
6 19:46:52 [main] ERROR com.ubooquity.a.a.b - Could not configure collation strength
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Archivo corrupto mientras se le�a el registro: "G:/Ubooquity 3/ubooquity-6.mv.db". Soluci�n Posible: use la herramienta de recuperaci�n (recovery tool)
File corrupted while reading record: "G:/Ubooquity 3/ubooquity-6.mv.db". Possible solution: use the recovery tool [90030-222]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
at org.h2.message.DbException.get(DbException.java:212)
at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
at org.h2.mvstore.db.Store.(Store.java:142)
at org.h2.engine.Database.(Database.java:326)
at org.h2.engine.Engine.openSession(Engine.java:92)
at org.h2.engine.Engine.openSession(Engine.java:222)
at org.h2.engine.Engine.createSession(Engine.java:201)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:343)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:125)
at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)
at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:352)
at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:233)
at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:198)
at com.ubooquity.a.a.b.h(SourceFile:146)
at com.ubooquity.a.a.b.(SourceFile:50)
at com.ubooquity.Ubooquity.main(SourceFile:188)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.ubooquity.e.a.a(SourceFile:818)
at com.ubooquity.Launcher.main(SourceFile:10)
Caused by: org.h2.mvstore.MVStoreException: File is corrupted - unable to recover a valid set of chunks [2.2.222/6]
at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:320)
at org.h2.mvstore.FileStore.start(FileStore.java:916)
at org.h2.mvstore.MVStore.(MVStore.java:289)
at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
at org.h2.mvstore.db.Store.(Store.java:133)
... 19 common frames omitted
6 19:46:52 [main] ERROR com.ubooquity.Ubooquity - Exiting application because of exception
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Archivo corrupto mientras se le�a el registro: "G:/Ubooquity 3/ubooquity-6.mv.db". Soluci�n Posible: use la herramienta de recuperaci�n (recovery tool)
File corrupted while reading record: "G:/Ubooquity 3/ubooquity-6.mv.db". Possible solution: use the recovery tool [90030-222]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
at org.h2.message.DbException.get(DbException.java:212)
at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
at org.h2.mvstore.db.Store.(Store.java:142)
at org.h2.engine.Database.(Database.java:326)
at org.h2.engine.Engine.openSession(Engine.java:92)
at org.h2.engine.Engine.openSession(Engine.java:222)
at org.h2.engine.Engine.createSession(Engine.java:201)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:343)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:125)
at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)
at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:352)
at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:233)
at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:198)
at com.ubooquity.a.a.a.b.b(SourceFile:50)
at com.ubooquity.a.a.e.g(SourceFile:162)
at com.ubooquity.a.a.b.(SourceFile:59)
at com.ubooquity.Ubooquity.main(SourceFile:188)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.ubooquity.e.a.a(SourceFile:818)
at com.ubooquity.Launcher.main(SourceFile:10)
Caused by: org.h2.mvstore.MVStoreException: File is corrupted - unable to recover a valid set of chunks [2.2.222/6]
at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:320)
at org.h2.mvstore.FileStore.start(FileStore.java:916)
at org.h2.mvstore.MVStore.(MVStore.java:289)
at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
at org.h2.mvstore.db.Store.(Store.java:133)
... 20 common frames omitted 

0
Under review

Epubreader save bookmark does not work on iOS

Anne 10 months ago updated 10 months ago 2

Any browser running on an iOS device won’t update the bookmark/progress feature with the epubreader. I tested on iPad Mini 6, iPad Pro 2nd gen, and MacBook air. It seems to work fine on my Windows computers and Android phone. I think I traced it back to the event window.onbeforeunload in the epubreader.js. Researching it brings up that a number of browsers/systems don’t support/aren’t compatible with that event. I tested adding these:


document.addEventListener('visibilitychange', function() {
if (document.visibilityState === 'hidden') {
$scope.storeBookmark();
}
});

setInterval($scope.storeBookmark, 60000); // Save every 60 seconds


and it is now updating reading progress on epubs in the browser reader.
Hopefully this is helpful. Let me know if you need any help narrowing it down further or testing.

0
Not a bug

Java runtime error at launch

Tomas Platero 10 months ago updated by Tom 10 months ago 2

I have ubooquity 2 running during years and when i try to lunch version 3 i have this error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubooquity/Launcher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0


My machine is a Windows 11 update 23H2. 

Then i stop ubooquity 2, try again a nothing.

My ubooquity 2 run commad is :

java -jar -Xms1g -Xmx2g g:\ubooquity\Ubooquity.jar --headless --remoteadmin

and this work for me perfectly during years.

The i try whith the same command and i have other error:

G:\Ubooquity 3>java -jar -Xms1g -Xmx2g Ubooquity.jar
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

Then i upgrade java for the last version and now i have:

G:\Ubooquity 3>java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) Client VM (build 25.411-b09, mixed mode, sharing)

Restart the machine and again the same error.

Also try as administrator but the error continues.

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubooquity/Launcher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

0
Under review

Ubooquity 3.0.2 pdf errors

mannamanna 11 months ago updated by Tom 11 months ago 1

I am using now since some months the 3.0.2 on freebsd 13 and encountered some problems with PDFs: Some of the newly imported pdfs dont show the title-page, only the white standard-symbol. When i try to open them i get a "Page not found".

Download works.

Here the logs:

20240429 18:32:26 [qtp1569371800-602] WARN o.e.j.server.handler.ContextHandler - Unimplemented getRequestCharacterEncoding() - use org.eclipse.jetty.servlet.ServletContextHandler
20240429 18:32:26 [qtp1569371800-545] INFO com.ubooquity.provider.e.a - Someone is reading Elektrotechnik 2 - Manfred Albach
20240429 18:32:28 [qtp1569371800-545] ERROR com.ubooquity.f.a - Could not get image from file: /mnt//Manfred Albach/Elektrotechnik 2 (2378)/Elektrotechnik 2 - Manfred Albach.pdf
20240429 18:32:28 [qtp1569371800-545] WARN com.ubooquity.provider.e.a - Could not extract page 0 from document /mnt//Manfred Albach/Elektrotechnik 2 (2378)/Elektrotechnik 2 - Manfred Albach.pdf (NullPointerException)
20240429 18:32:49 [qtp1569371800-629] WARN o.e.j.server.handler.ContextHandler - Unimplemented getRequestCharacterEncoding() - use org.eclipse.jetty.servlet.ServletContextHandler
20240429 18:32:49 [qtp1569371800-602] INFO com.ubooquity.provider.e.a - Someone is reading Elektronische Schaltungstechnik - Harald Hartl
20240429 18:32:50 [qtp1569371800-602] ERROR com.ubooquity.f.a - Could not get image from file: /mnt//Harald Hartl/Elektronische Schaltungstechnik (11)/Elektronische Schaltungstechnik - Harald Hartl.pdf
20240429 18:32:50 [qtp1569371800-602] WARN com.ubooquity.provider.e.a - Could not extract page 0 from document /mnt//Harald Hartl/Elektronische Schaltungstechnik (11)/Elektronische Schaltungstechnik - Harald Hartl.pdf (NullPointerException)

I hope, that helps.

Ah, other error: When i click on the upper left ubooquity-symbol, it redirects to servername:2203; i have changed that ports to 80 for the library and 81 for admin. I have changed that value in the preferences-2.json as well, but no change in behaviour.

Edit: Some of the older pdfs show the same error; they were shown with their respect first page in the 2.1.2.

Thanks

0
Answered

Ubooquity, OpenJava 8 and JFX

Cheis S 12 months ago updated by Tom 12 months ago 2

I'm trying to install Ubooquity on Ubuntu 22.04.4 LTS with openjdk version 1.8.0_402.

I get this error:

 java.lang.NoClassDefFoundError: javafx/fxml/Initializable

which is:

     Caused by: java.lang.ClassNotFoundException: Failure to load: javafx.fxml.Initializable

From what I have read online, it is not possible to add JavaFX to OpenJava 8.

How should I proceed?

0
Started

Compression on pdf scans in Ubooquity3

Anne 1 year ago updated by Tom 11 months ago 4

I have a number of pdf scans that seem to be having a compression or scan issue with Ubooquity3. I have a suspicion that it has to do with this error:

ERROR o.a.p.contentstream.PDFStreamEngine -  Cannot read JBIG2 image: jbig2-imageio is not installed

Is there anything I can do from my end to fix this issue on my PDF scans?

I'm torn between loving the new version of Ubooquity, but not being able to read a lot of my books due to this PDF scanning weirdness.

Answer
Tom 11 months ago

Thanks to the file you sent me I was able to reproduce the issue and fix it. 

The fix will be in the next minor verion (3.0.3). :)

0
Fixed

Error on startup after

alc 1 year ago updated by Tom 1 year ago 1

I'm getting this error every time I try to start Ubooquity lately, making it unusuable:

2024/02/04 21:57:32stdout at java.util.TimerThread.run(Timer.java:505) ~[na:1.8.0_275]
2024/02/04 21:57:32stdout at java.util.TimerThread.mainLoop(Timer.java:555) ~[na:1.8.0_275]
2024/02/04 21:57:32stdout at com.ubooquity.Ubooquity$1.run(SourceFile:335) ~[Ubooquity.jar:2.1.2]
2024/02/04 21:57:32stdout at com.ubooquity.f.k.c(SourceFile:147) ~[Ubooquity.jar:2.1.2]
2024/02/04 21:57:32stdout at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_275]
2024/02/04 21:57:32stdout at java.lang.Integer.parseInt(Integer.java:580) ~[na:1.8.0_275]
2024/02/04 21:57:32stdout at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_275]
2024/02/04 21:57:32stdoutjava.lang.NumberFormatException: For input string: "2Error performing query '<strong>': INSERT command denied to user 'gregre001'@'10"
2024/02/04 21:57:32stdout20240204 20:57:31 [Timer-0] ERROR com.ubooquity.Ubooquity - Uncaught exception on thread: Timer-0
2024/02/04 21:57:32stdout20240204 20:57:31 [Timer-0] INFO com.ubooquity.Ubooquity - Latest version available: 2.1.2Error performing query '<strong>': INSERT command denied to user 'gregre001'@'10.14.20.96' for table 'ubqt_startup'<br /><br /> - Current version: 2.1.2
2024/02/04 21:57:31stdout20240204 20:57:31 [Timer-0] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website
2024/02/04 21:57:30stdoutTyep Q then ENTER to exit
2024/02/04 21:57:30stdout20240204 20:57:30 [main] INFO com.ubooquity.b - Internal server started. Listening on port 2202 (library) and 2203 (admin)
2024/02/04 21:57:30stdout20240204 20:57:30 [main] INFO org.eclipse.jetty.server.Server - Started @4370ms
2024/02/04 21:57:30stdout20240204 20:57:30 [main] INFO o.e.jetty.server.AbstractConnector - Started admin@6cb107fd{HTTP/1.1,[http/1.1]}{0.0.0.0:2203}
2024/02/04 21:57:30stdout20240204 20:57:30 [main] INFO o.e.jetty.server.AbstractConnector - Started library@5b799640{HTTP/1.1,[http/1.1]}{0.0.0.0:2202}
2024/02/04 21:57:30stdout20240204 20:57:30 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@359df09a{/,null,AVAILABLE,@library}
2024/02/04 21:57:30stdout20240204 20:57:30 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@609e8838{/,null,AVAILABLE,@admin}
2024/02/04 21:57:30stdout20240204 20:57:30 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.0.v20161208

I've seen a post from 3 years ago that said this is supposedly a remote server issue, but I don't see anybody else complaining. On my side, nothing has changed, just rebooted my NAS.

0
Declined

pdf local links dont work

pdf enjoyer 1 year ago updated by Tom 1 year ago 1

for epubs, if they have a link pointing to another place inside the epub or to some website, it works fine when I click on it.

but for pdfs, no matter where I click, the UI menu (with the "click here to close this menu") pops up, instead of opening the link.

this has made reading pdfs very annoying as I need multiple tabs open (one for glossary, one for translation notes etc)

I beleive adding capability to click on links in pdfs is very useful and should be implemented, I am using uboo3beta

0
Under review

I'm having issues with viewing groupings by folder v3.0.1

Pseudocomicnerd 1 year ago updated by Tom 1 year ago 7

I know it's in the beta, and I am overjoyed this project is still being worked on as it been my go to for viewing my comic library for several years. So, this is more a question about if anyone has had the same issue and what they did to resolve it. 

I've scanned a library of 100k+ books magazines and comics. I can view grouping if they're flat, but not by folder. 

Some of the folders have multiple levels of sub folders, some have the books on the top level. Neither will show up as folders but all the media is showing up when I switch over to flat. 

Answer
Tom 1 year ago

I don't know what might be causing this behaviour, but if you send me your Ubooquity database I'll take a look.

This is the ubooquity-6.mv.db file. Just be sure to stop Ubooquity before copying it.
You can upload it to any file sharing service (e.g. Wormhole) and send me the link at: tom 'at' vaemendis.net

Note that I will be able to see the names of all your files (but not access the files themselves).