0
Answered

Ubooquity new install on Ubuntu 16.04 can only see 1st page through browser

acor13 3 years ago updated by Tom 3 years ago 3

Hello All,


I recently setup up Ubooquity on Ubuntu Server 16.04. It catalogged all my comics. When I click on one and attempt to read it however, it only says the comic is 1 page and only shows the cover. I am not able to switch pages because it says the comic only has 1 cover. I've checked the logs and see no errors in it. I've pasted a sample of my logs below:


20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Running with the following parameters - headless: true, port: 80, webadmin: true, host: null, debug: false, execdir: /etc/opt/ubooquity/ubooquity
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - #############################
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - # Starting Ubooquity #
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - #############################
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Java version: 1.8.0_121
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Java vendor: Oracle Corporation
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Max heap size available: 237 MB
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - OS name: Linux
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - OS version: 4.4.0-62-generic
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - OS architecture: amd64
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Loading local version info
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Ubooquity 1.10.1 built on 2016-05-10 at 20:36
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Creating application folders
20170412 22:28:30 [main] INFO com.ubooquity.Ubooquity - Loading preferences
20170412 22:28:30 [main] INFO com.ubooquity.c - Starting internal server...
20170412 22:28:30 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning books directories
20170412 22:28:30 [main] INFO com.ubooquity.c - Reverse proxy prefix is not activated
20170412 22:28:30 [main] INFO com.ubooquity.c - Internal server started. Listening on port 80
20170412 22:28:31 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning books directories, populating folders content cache
20170412 22:28:31 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books folder content cache populated
20170412 22:28:31 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning comics directories
20170412 22:28:31 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache
20170412 22:28:31 [Timer-1] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website
20170412 22:28:32 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics folder content cache populated
20170412 22:28:32 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics statistics: [total: 891, added or updated: 0, removed: 0]
20170412 22:28:32 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books statistics: [total: 0, added or updated: 0, removed: 0]
20170412 22:28:32 [Timer-1] INFO com.ubooquity.Ubooquity - Latest version available: 1.10.1 - Current version: 1.10.1
20170412 22:28:42 [pool-1-thread-2] INFO com.ubooquity.c - User anthony logged off
20170412 22:28:44 [pool-1-thread-2] INFO com.ubooquity.c - Cookie token invalid or too old. Access Denied. [login:anthony][ip:192.168.1.242]
20170412 22:28:44 [pool-1-thread-2] INFO com.ubooquity.c - User successfuly logged in. [login:anthony][ip:192.168.1.242]
20170412 22:35:27 [pool-1-thread-16] INFO com.ubooquity.c - User successfuly logged in. [login:anthony][ip:192.168.1.242]
20170412 22:35:42 [pool-1-thread-15] INFO com.ubooquity.provider.page.a - anthony is reading /mnt/comics/Champions (2016)/Champions 001 (2016) (Digital) (Zone-Empire).cbr


Any input provided would be greatly appreciated.

Looks like I was able to resolve my own issue. I was missing the following paramter in my service script


"-Dfile.encoding=UTF-8"


So I was essentially running


" -jar /etc/opt/ubooquity/ubooquity/Ubooquity.jar -webadmin -headless -port 80"


instead of:


"-Dfile.encoding=UTF-8 -jar /etc/opt/ubooquity/ubooquity/Ubooquity.jar -webadmin -headless -port 80"


After adding that parameter that I found on the following post, it did the trick (the metadata was applying too):


http://ubooquity.userecho.com/topics/117-help-how-to-for-ubuntu-14-headless/


If someone has an explanation on why that parameter is necessary or what does it exactly mean to someone who don't know squat 'bout Java, I'd appreciate it.


Under review

The "UTF-8" parameter is sometimes needed to tell the Java VM (the Java process that runs Ubooquity) that the underlying file system is using UTF-8 encoding.


I don't know exactly why this is necessary on some systems, for instance I didn't need it on my Raspberry Pi (on Raspbian) and not on some others.