0

PDF books give java exeption

vincent vriends 6 years ago 0

When I try to read a PDF ebook, the log file shows the following error:

20190526 16:00:49 [qtp1670546046-96] ERROR com.ubooquity.c.a - Could not serve stream with URI: /bookreader/21
org.eclipse.jetty.io.EofException: null
  at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
~[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
~[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:322)
~[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:372)
~[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:741)
~[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
~[jetty-util-9.4.0.v20161208.jar.202814073141207242.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)
~[jetty-util-9.4.0.v20161208.jar.202814073141207242.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:518)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:677)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:728)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:234)
~[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:218)
~[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:509)
~[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
   at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2147) ~[commons-io-2.5.jar.6363128418599582580.tmp:2.5]
   at org.apache.commons.io.IOUtils.copy(IOUtils.java:2102) ~[commons-io-2.5.jar.6363128418599582580.tmp:2.5]
   at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2123) ~[commons-io-2.5.jar.6363128418599582580.tmp:2.5]
   at org.apache.commons.io.IOUtils.copy(IOUtils.java:2078) ~[commons-io-2.5.jar.6363128418599582580.tmp:2.5]
   at com.ubooquity.d.d.a(SourceFile:96) ~[Ubooquity.jar:2.1.2]
   at com.ubooquity.c.a.a(SourceFile:374) [Ubooquity.jar:2.1.2]
   at com.ubooquity.provider.page.a.a(SourceFile:138) [Ubooquity.jar:2.1.2]
   at com.ubooquity.provider.page.a.a(SourceFile:78) [Ubooquity.jar:2.1.2]
   at com.ubooquity.d.c.a(SourceFile:142) [Ubooquity.jar:2.1.2]
   at com.ubooquity.d.b.handle(SourceFile:54) [Ubooquity.jar:2.1.2]
  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1228)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:170)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1130)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:118)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.Server.handle(Server.java:564)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
[jetty-server-9.4.0.v20161208.jar.125194739452847055.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:112)
[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
[jetty-util-9.4.0.v20161208.jar.202814073141207242.tmp:9.4.0.v20161208]
  at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
[jetty-util-9.4.0.v20161208.jar.202814073141207242.tmp:9.4.0.v20161208]
   at java.lang.Thread.run(Thread.java:748) [na:1.8.0_212]
Caused by: java.io.IOException: Broken pipe
   at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) ~[na:1.8.0_212]
   at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) ~[na:1.8.0_212]
   at sun.nio.ch.IOUtil.write(IOUtil.java:148) ~[na:1.8.0_212]
   at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504) ~[na:1.8.0_212]
   at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:272)

~[jetty-io-9.4.0.v20161208.jar.8258200143543668761.tmp:9.4.0.v20161208]
... 39 common frames omitted

Is there a way I can fix this? epub books are working fine. I also tried to change the PDF compability but that didn't help.

I'm running version 2.1.2 on a armbian.

0

Server side tracker of "Favorites" and modified default theme.

DarkShadowSwE 6 years ago updated 6 years ago 0

A small script written in python, it might not be pretty but its my first ever written... (I am a former webdeveloper (PHP, HTML, CSS, JS)).

It replaces the "random" button in a copy of the default theme with a server side tracker of favorites you name, keep the naming to a-z, special chars might not work.

Included both the source .py script and a compiled .exe for windows. The script creates a "database.db" in the same folder as you run it. This keeps track of the favorites.

The script assumes its running on the same IP as your ubooquity server and visiting it at something like: http://192.168.x.x:2202, and the server then runs at 192.168.x.x:2204.

Otherwise you have to modify the themeScript.js.

The favorites are login based so every username get their own.

Download: http://s000.tinyupload.com/index.php?file_id=39779176757277465837 , place the unzipped folder called "bookmarks" in your ubooquity themes folder and change the theme at http://192.168.x.x:2203/admin

0

Folder info resource not found or access not authorized

Alpe 6 years ago updated 6 years ago 2

Which folder?
(Noticed this because I'm not seeing the number of files in a folder)

0

how to install and configure Ubooquiny on nas synology DS 415+

Tabard 6 years ago updated by zorrax 6 years ago 4

Hello

how to install and configure Ubooquiny on nas synology DS 415+

Thank you for your help

Sincerely.

0

Problem of missing/wrong cover in Ubooquity

orshak 6 years ago updated by DarkShadowSwE 6 years ago 1

Recently, since i moved Ubooquity to Docker (or so i thought), i've been encoutering a weird problem :

quite often, i've got some covers not showing (it's the "broken image" icon showing up in the bottom left corner), or worse, wrong covers showing up on some books/folders (and bet it, amongst the 3k+ files in my comics folder(s) and the 4k+ in my books folder(s) it seems to always be the under 10 comics and under 50 books that are leaning toward erotic/sex Images/Covers, Go figur :D).

When i reload the page, with or without clearing cache (F5 or Ctrl+F5), it doesn't solve it, because in the end, the ones that weren't displaying an image/cover or an incorrect  now do... but others that displayed one (the proper one) don't anymore....

When i click on a book, it shows the proper cover image and metadata.

I was wondering if it was a problem of memory allocated since it runs in a docker and is limited to 512Mo Ram by default (i didn't change that settings), and i tried too, to wipe the database and redo a complete and new scan.

Both things failed in the end.

But the thing is i installed Ubooquity on another computer a couple days ago (for a friend, so they would have a way to see/search things more easily than using the windows explorer for the books i gave them, but without resorting to being forced to use Calibre and the dumb ass "hey you MUST store your books the way I decided you must store them" system... :()... and it ended exactly the same.

Any idea where it can come from ?

I'm using the Comixology Theme (latest version) on both installs, but i've tried without it and it's the same.

0

Comparison method violates its general contract! error

Jailer 6 years ago 0

I'm having a bit of trouble with the database. It seems that some items that were once showing up in the UI no longer do. The full error I'm getting in the logs is as follows:

WARN com.ubooquity.fileformat.pdf.b - Problem while reading file: /media/American Rifleman/nra_ar_201806.pdf
java.lang.IllegalArgumentException: Comparison method violates its general contract!

This is only happening for some items not all of them. If you click on one of the items I get a page not found error displayed. Not sure exactly when this started happening or what to do to fix it. Any help would be appreciated. Running this in a jail on my FreeNAS server if it matters.

0

Cant connect with Chunky

Jaylie 6 years ago updated by DarkShadowSwE 6 years ago 12

Hello all,


I have been browsing through multiple topics, but I cant find the answer. If I go to 192.168.0.104:2202 I can see all my Comics. If I go my Chunky app, and add 192.168.0.104:2202/opds-comics, it just says: 'Connection failed. 

What do I do here?

Thanks, Joey

0
Under review

Synology ds418 Need help

Apollo11 6 years ago updated by Tom 6 years ago 9

So I've been having problems with setting up Ubqooquity to run on my DS418. I don't have the ability to install Docker, because it is not supported by my Synology. So, I have to get it to run without Docker, and after following this guide. I got the following issue. Please

Image 527

0

Is it possible to see the last accessed books first?

jaykool 6 years ago 0
Hi



Is it possible to show the last read/accessed books at the top of the book list page? I have a lot of books and finding the books I read or glanced is a bit of pain if you will. It would be nice if one can just see those ones at the top of the listing page, so easy to access.



thanks

0

Synology

Bruno 6 years ago updated 6 years ago 1

bonjour


j'ai exécuté le script suivant:

#! / usr / bin / env bash
#title: ubooquity.sh
#description: Lance le serveur ubooquity. script shell dans le gestionnaire de tâches
#date: 20170807
# ====================================== =====================================
### VAVABLES JAVA ###
# Répertoire d'installation Java
JAVA_DIR = / var / packages / java / target / bin
# Taille maximale du pool d'allocation de mémoire d'exécution Java.
Valeur par défaut: 64 Mo MEM = 512m
### VARIABLES UBOOQUITY ###
# Emplacement binaire d'
Ubooquity UBOOQUITY_BIN = / var / packages / Ubooquity / Ubooquity.jar
# Répertoire de travail d'
Ubooquity WORK_DIR = / volume1 / Bibliotheque / .ubooquity
# ID de processus
PID_FILE = $ WORK_DIR / ubooquity.pid
# Port de la bibliothèque
Ubooquity LIB_PORT = 2202
# Port d’administration de
Ubooquity ADMIN_PORT = 2203
### VARIABLES ENVIRONNEMENT ###
# Encodage des caractères
# ENCO = utf8
# Sélection
locale # LANG = fr_FR.utf8 ##
SCRIPT ###
# Solution de contournement pour lire correctement les caractères spéciaux
# export LANG
# Tuer le processus précédent
if [-f $ PID_FILE]; then
pkill -F $ PID_FILE> / dev / null 2> & 1
fi
# Lance ubooquity
printf "Démarrage du serveur Ubooquity ... \ n"
$ JAVA_DIR / java -jar -Dfile.encoding = utf8 -Xmx $ MEM $ UBOOQUITY_BIN \
- adminport $ ADMIN_PORT --libraryport $ LIB_PORT \
--workdir $ WORK_DIR \
--remoteadmin --headless & UBOOQUITY_PID = $!
echo $ UBOOQUITY_PID> $ PID_FILE
printf "Ubooquity est en cours d'exécution (pid:% d). \ n" $ UBOOQUITY_PID
exit 0


Et j'obtiens le mél suivant :

État actuel: 2 (Interrompu)
Sortie standard / erreur:
/volume1/Bibliotheque/ubooquity.sh: ligne 43: erreur de syntaxe: fin de fichier inattendue


Avez-vous une idée du problème?


Merci d'avance