+1

Ubooquity behind haproxy issue

Alto Finnegan 8 years ago updated 8 years ago 3

So, I've tried to run Ubooquity behind haproxy instead of nginx (which worked fine). I can't get it working though. The login page displays fine, but as soon as I login (which also seems to work fine according to the Ubooquity log), I'm getting this error:


502 Bad Gateway

The server returned an invalid or incomplete response.


I might very well have something misconfigured, but it could also be that Ubooquity sense back some slightly wonky response that nginx doesn't mind, but haproxy does.


Does anybody on here run Ubooquity behind haproxy by any chance? Or have any idea what the issue could be?


+1
Declined

Metadata for IDs

mediabot666 8 years ago updated by Tom 8 years ago 1
So far just poking around the DB, Ub, doesn't use metadata in the ids to tell us the hierarchy of the files

and directories that it is managing. If metadata were added to the ids, this would simplify navigation when writing custom url


With a directory structure like Comics > [ DC | Image ] > Batman 2011 , Flash with metadata enriching the ids you'd end up with


R0= Comics

AAA = DC

AA1 = Image

001 = Batman 2011

002 = Flash


R0000000000000 = All Publishers

R0AAA000000000 = Are all DC comics

R0AAA001001001 = is batman 01

R0AAA002002022 = flash #22

R0AA1000000000 = all image comics

R0AAA001001000 = all batman comics

With the file-system hierarchy recorded as metadata in the id we can simplify navigation and tell if we're on a branch, trunk, or tip. The record id gives a clear way to navigate up and down the topology

+1

Question Ratings and Webcommands

mediabot666 8 years ago updated by Scott (ScooterPSU) 8 years ago 5

I'm working on building a theme and had a couple of questions. I noticed the database has a section for ratings. I don't see a way to POST the information. Is there a way to update the ratings for books/comics ?


Usually you can enter url#section to jump to a section of a page. I noticed with Ubooquity I could hack it together as href="./#overview" I didn't think it would work but it did. Is this a bug in the software, or is how it is intended to work for jumping section on the html page?


Are there any commands to show what the user is currently reading similar to how new issues are displayed?


For lastest and random they appear to read comic.css. Can the html be override similar to folder-info.html? If so where would the html need to be stored

For navigation I noticed my setup ( Comic >> Publishes > > Series ) that if you're viewing a a folder-html in Series , but put a href=".." it will jump back to view all publishers, and not go back on level? Is that true for all?


Example Browsing Trigun and clicking a link with .. doesn't take you back to Dark Horse Manage, it will bring you to all publishers.


Is their documentation on any post/get we can perform to the server?


+1
Answered

Question Database

mediabot666 8 years ago updated by Tom 8 years ago 2

Are there API calls that can be made to the H2 database through mylar similar to how we query comic vine api?



+1
Declined

Magazines module

Armando Mártires 9 years ago updated by Tom 8 years ago 2

Hi!
Before all thanks for this awesome tool.
I would like to suggest adding a magazines module.
Magazines are mostly in PDF format.
As they are not actually books or comics it would be nice to have a specific module/section for them.

+1
Under review

Too many files open creates a crash

Elouan 9 years ago updated 7 years ago 10
his bug is related to an older one that has been closed. I'm opening a new one because I have a better understanding of what's going on

quite often, after I've used ubooquity for a while, I reach a state where the server stops and when I reload a page, it crashes

When I look at my log, I get something like this:

ERROR com.ubooquity.f.d - Could not list files in folder: 
java.nio.file.FileSystemException: /volume1/comics/aaaa/bbbbbb: Too many open files
      at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) ~[na:1.8.0_101]
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[na:1.8.0_101]
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[na:1.8.0_101]
      etc...

Now, I've looked at the number of file handlers that ubooquity uses versus the number that my system allows. Here is how it looks:

ulimit -n
1024

OK, now I load a couple of pages inside ubooquity to look at how many handles I'm using. First time:


fs.file-nr = 4562

Now, I reload a new page (my settings are to display 20 items par page) I get this:

fs.file-nr = 4582

And this go on: everytime I reload a page, it increases the number of handler by 20 (this is consistent with the number of thumbs to read). The problem is that the number never seems to go down after that

I've continued load pages until I crashed, and I reached the following figure:

fs.file-nr = 5394

So the difference is 5394 - 4592 = 800... which is quite a lot considering I have 1024 to play with, and that I probably missed a few before the first number.

After I restarted ubooquity i went down to 4420

fs.file-nr = 4420

I fear the files are read and then never closed. So, if I increase by 20 at every-reload, and 2 or 3 people using ubooquity, it could exeed the limit within a couple of hours and this would a crash; this would explain my situation, including how it takes to crash the server

It feels there is a file-handler leak: ubooquity never seem to release the handler





+1

thumbnail quality

Telecart 9 years ago updated by Loscar 6 years ago 6

Does anyone else have rather poor quality thumbnails? If I extract the first image from the zip and rename it folder.jpg then the quality is noticeably better. Perhaps Ubooquity can run that process on its own?

+1
Answered

Ubooquity WebView for Android Phones and Tablets

Seth Chhim 9 years ago updated by Cristiam Viera Burneo (Frikor) 8 years ago 3

I have developed a small Android app for my own personal use and would like to share it. It is a simple WebView wrapper but offers two features I wanted: 1. Fullscreen Immersive Mode and 2. Swipe to turn page. I would like to ask the admins of Ubooquity if it is ok to publish this? I would like to ask considering it contains the title "Ubooquity WebView". No ads or unnecessary permissions in this package.


Image 112Image 111

+1
Started

When using "original" the top part of the page gets cut off.

rather 9 years ago updated by Tom 8 years ago 7
+1
Under review

Dc comic pages messed up

Rick Van Wijk 9 years ago updated by Domenico Vaccaro 6 years ago 6

First of all i would like to say that the program works fine as it is but it seems some comics are messed up when it comes down to the page ordering. The comics are fine when opened in other programs but it seems the web browser changes the ordering so reading the comics is not really working.


The comics are in cbr format.


Thank you!