0

Haproxy reverse proxy error

Alex 7 years ago 0

Hi,


I run into an issue when I want to add a reverse proxy with haproxy in front of Ubooquity.

I have a 502 error, The server returned an invalid or incomplete response.


I have a few reverse in place that works, but Ubooquity may not return some good headers.


Any clues ?

0

Uncaught Exception Error - java.lang.NoClassDefFoundError - while scanning

Tom Davies 7 years ago updated 7 years ago 2

I did something stupid... I was messing around with the Scan Exclusion Pattern, and just like the Help text says, I excluded my entire collection. So I removed the exclusion pattern and went to rescan my collection, and I get the error shown below.


I've stopped the Ubooquity server and restarted Ubooquity, and rescanned only to have it stop on the same file every time. This is strange because my files haven't changed. This file was scanned before in Ubooquity without a problem. It was probably scanned with an earlier version of Ubooquity though... I'm not sure.


Any suggestions for making it work?


20170307 17:49:24 [Scanner thread] INFO com.ubooquity.fileformat.pdf.b - Reading metadata of pdf file: M:\eBooks\Role Playing Games\Dungeons & Dragons\Downloaded\Basic D&D\Supplements\Eastern Countries Trail Map (Basic v4) (TSR09404).pdf
20170307 17:49:26 [Scanner thread] ERROR com.ubooquity.Ubooquity - Uncaught exception on thread: Scanner thread
java.lang.NoClassDefFoundError: com/twelvemonkeys/image/InverseColorMapIndexColorModel
at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImage10MetadataCleaner.cleanMetadata(Unknown Source) ~[imageio-jpeg-3.1.0.jar.6552165885348581995.tmp:3.1.0]
at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.getImageMetadata(Unknown Source) ~[imageio-jpeg-3.1.0.jar.6552165885348581995.tmp:3.1.0]
at org.apache.pdfbox.filter.DCTFilter.getNumChannels(DCTFilter.java:271) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.filter.DCTFilter.decode(DCTFilter.java:69) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:163) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:147) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:385) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:53) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:208) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:139) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94) ~[pdfbox-2.0.0.jar.2492632753215782698.tmp:2.0.0]
at com.ubooquity.fileformat.pdf.b.a(SourceFile:71) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.fileformat.pdf.b.a(SourceFile:44) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.b(SourceFile:382) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.a(SourceFile:212) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.b(SourceFile:316) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a.a(SourceFile:35) ~[Ubooquity.jar:1.10.1]
at com.ubooquity.data.feeder.a$1.run(SourceFile:116) ~[Ubooquity.jar:1.10.1]
at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_101]
Caused by: java.lang.ClassNotFoundException: Failure to load: com.twelvemonkeys.image.InverseColorMapIndexColorModel
at com.ubooquity.e.c.loadClass(SourceFile:992) ~[Ubooquity.jar:1.10.1]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_101]
... 27 common frames omitted

0

apps for android compatible with Ubooquity

Cristiam Viera Burneo (Frikor) 7 years ago updated by Bobby Hill 6 years ago 3

the version of comicviewer for Ubooquity has not support for books libraru section, someone knows other app for android

0

last scan always shows 'In Progress', also removed comics not removed from database

Neodarke 7 years ago 0

After updating to 1.10, wheever I go to the admin screen, the Last Scan entry always shows 'In Progress' even though no scan is being performed. Also, I moved several comics to a new directory, but now the database shows both the old comic in the original place(that gives a 'Page Not Found' error when you try and read it), and in the new location (which works normally)

0

Ubooquity fails to run using JAVAW.exe; Unhandled exception

bixtool 7 years ago 0

Running latest Ubooquity & java on Windows 10


When I attempt to run headless, the server is not accessible:

Command Prompt> javaw -jar Ubooquity.jar -headless -webadmin


Command completes normally, but I cannot access the server webpage: localhost:2202

Is this the correct method to invoke Ubooquity headless?


I piped the results to a txt file: Can someone explain why the internal server exits??


20170205 14:07:45 [main] INFO com.ubooquity.Ubooquity - Ubooquity 1.10.1 built on 2016-05-10 at 20:36
20170205 14:07:45 [main] INFO com.ubooquity.Ubooquity - Creating application folders
20170205 14:07:45 [main] INFO com.ubooquity.Ubooquity - Loading preferences
20170205 14:07:46 [main] INFO com.ubooquity.c - Starting internal server...
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning books directories
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning books directories, populating folders content cache
20170205 14:07:46 [main] INFO com.ubooquity.c - Reverse proxy prefix is not activated
20170205 14:07:46 [main] INFO com.ubooquity.c - Internal server started. Listening on port 2202
Enter Q to exit
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books folder content cache populated
20170205 14:07:46 [main] ERROR com.ubooquity.Ubooquity - Exiting application because of exception
java.io.IOException: The handle is invalid
at java.io.FileInputStream.available(Native Method) ~[na:1.8.0_121]
at java.io.BufferedInputStream.available(Unknown Source) ~[na:1.8.0_121]
at com.ubooquity.Ubooquity.main(SourceFile:283) ~[Ubooquity.jar:1.10.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_121]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_121]
at com.ubooquity.e.c.a(SourceFile:823) [Ubooquity.jar:1.10.1]
at com.ubooquity.Launcher.main(SourceFile:10) [Ubooquity.jar:1.10.1]
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning comics directories
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics folder content cache populated
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics statistics: [total: 0, added or updated: 0, removed: 0]
20170205 14:07:46 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books statistics: [total: 2, added or updated: 0, removed: 0]
20170205 14:07:46 [Thread-3] WARN com.ubooquity.Ubooquity - Stopping server in shutdown hook
20170205 14:07:46 [Thread-3] INFO com.ubooquity.c - Stopping internal server...
20170205 14:07:46 [Thread-3] INFO com.ubooquity.data.feeder.a - Aborting content scan...
20170205 14:07:46 [Thread-3] INFO com.ubooquity.data.feeder.a - Waiting for scanner thread to stop
20170205 14:07:46 [Thread-3] INFO com.ubooquity.data.feeder.a - Scanner thread stopped
20170205 14:07:46 [Thread-3] INFO com.ubooquity.c - Internal server stopped
20170205 14:07:46 [Thread-3] INFO com.ubooquity.Ubooquity - Ubooquity has closed.
20170205 14:07:47 [Timer-0] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website
20170205 14:07:47 [Timer-0] INFO com.ubooquity.Ubooquity - Latest version available: 1.10.1 - Current version: 1.10.1


0

Include Parent Id in OPDS <entry> and <feed> elements

Gauntlet 7 years ago 0

It would be useful if (all) opds <entry> and <feed> elements contained the parent id or a href to the parent. This would be useful for 3rd party apps when scanning for updates as we could just read through the recently updated pages instead of traversing through every directory.

0

Updating directories among a large collection

Jake Glashofer 7 years ago 0

For example , if updating directories under Marvel, not having to scan through entire Darkhorse, DC, IDW folders that precede it alphabetically.

0
Planned

isbn

Stéphane Le Marec 7 years ago updated by Tom 7 years ago 1

Hello


Is it possible to see isbn on books information ?


Thanks

0
Answered

Linuxserver.io - Ubooquity

Oliver Dixon 7 years ago updated 7 years ago 7

Any idea why when i set it to original mode it crops off the top of every page of every comic i've tried?

https://i.imgur.com/mbcwcKT.jpg

Shows the full image on fit to width and height modes.

0
Under review

java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

Ivar Kramer 7 years ago updated by Tom 7 years ago 1

I just installed Ubooquity and get the follwing when starting headless.


20170107 14:57:36 [Scanner thread] ERROR com.ubooquity.Ubooquity - Uncaught exception on thread: Scanner threadjava.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
      at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) ~[na:1.8.0_111]
      at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65) ~[na:1.8.0_111]
      at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115) ~[na:1.8.0_111]
      at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_111]
      at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:74) ~[na:1.8.0_111]
      at java.lang.Class.forName0(Native Method) ~[na:1.8.0_111]
      at java.lang.Class.forName(Class.java:264) ~[na:1.8.0_111]
      at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103) ~[na:1.8.0_111]
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82) ~[na:1.8.0_111]
      at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181) ~[na:1.8.0_111]
      at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:129) ~[pdfbox-2.0.0.jar.3733332883789124729.tmp:2.0.0]
      at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94) ~[pdfbox-2.0.0.jar.3733332883789124729.tmp:2.0.0]
      at com.ubooquity.fileformat.pdf.b.a(SourceFile:71) ~[Ubooquity.jar:1.10.1]
      at com.ubooquity.fileformat.pdf.b.a(SourceFile:44) ~[Ubooquity.jar:1.10.1]
      at com.ubooquity.data.feeder.a.b(SourceFile:382) ~[Ubooquity.jar:1.10.1]
      at com.ubooquity.data.feeder.a.a(SourceFile:212) ~[Ubooquity.jar:1.10.1]
      at com.ubooquity.data.feeder.a.b(SourceFile:316) ~[Ubooquity.jar:1.10.1]
      at com.ubooquity.data.feeder.a.a(SourceFile:35) ~[Ubooquity.jar:1.10.1]
      at com.ubooquity.data.feeder.a$1.run(SourceFile:116) ~[Ubooquity.jar:1.10.1]
      at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_111]

I started it using the .sh script in the download section. I altered it a bit (added -headless in the command line) because for some reason the server went down if that was not in?!


If I start the jar file in the GUI, the scanner works but the Themes do not work. And since this is my media server i want it to run headless and be accessible from the browser only.


20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Running with the following parameters - headless: true, port: 2202, webadmin: true, host: null, debug: false, execdir: /opt/ubooquity
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - #############################
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - # Starting Ubooquity #
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - #############################
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Java version: 1.8.0_111
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Java vendor: Oracle Corporation
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Max heap size available: 483 MB
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - OS name: Linux
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - OS version: 3.2.0-4-amd64
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - OS architecture: amd64
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Loading local version info
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Ubooquity 1.10.1 built on 2016-05-10 at 20:36
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Creating application folders
20170107 14:57:34 [main] INFO com.ubooquity.Ubooquity - Loading preferences
20170107 14:57:35 [main] INFO com.ubooquity.c - Starting internal server...
20170107 14:57:35 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning books directories
20170107 14:57:35 [Scanner thread] INFO com.ubooquity.fileformat.pdf.b - Reading metadata of pdf file: /home/ivar/Downloads/Media/eBooks/3x PDF For Dummies Windows 10 for dummies-Word 2016 for professionals-SAR for dummies/Word 2016 For Professionals.pdf
20170107 14:57:35 [main] INFO com.ubooquity.c - Reverse proxy prefix is not activated
20170107 14:57:35 [main] INFO com.ubooquity.c - Internal server started. Listening on port 2202
20170107 14:57:36 [Timer-1] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website