Your comments

Morning Rich,

I am trying to apply your memory tweaks to my script however my Linux skills are a little basic and I'm not sure if I am applying them properly.

This is my normal working script:

[Unit]
Description=Ubooquity
After=network.target

[Service]
WorkingDirectory=/opt/Ubooquity
User=craftyclown
Group=craftyclown

Type=simple
ExecStart= /usr/bin/java -jar Ubooquity.jar --remoteadmin --headless
TimeoutStopSec=20
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

It works fine, however Ubooquity uses 12 gig of virtual memory, which seems to be considerably higher than anything else. With your memory adjustments it jumps to 38gig of virtual memory.  Does that sound right?

This is the new script:

[Unit]
Description=Ubooquity
After=network.target

[Service]
WorkingDirectory=/opt/Ubooquity
User=craftyclown
Group=craftyclown

Type=simple
ExecStart= /usr/bin/java -Xmx6g -Xms5g -Xss1g -jar Ubooquity.jar --remoteadmin --headless
TimeoutStopSec=20
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

Any thoughts?

Cheers

Rich

Just to add, it is taking exactly the same amount of time to regenerate the cover thumbnail as it does to do the initial scan of the comic.

I want to jump in here on this one as well. I too am having my entire collection scanned from the top each time I reload Ubooquity and am also accessing them from google drive (I have it mounted with rclone) 

The entry in the log file for each comic reads;

20190105 19:32:35 [Scanner thread] INFO com.ubooquity.data.feeder.a - Regenerating cover thumbnail for /home/craftyclown/Skull/Comics/100 Bullets (1999)/100 Bullets 001 (1999).cbr

@Tom you say the scanner is checking the modification date of the files, but is there anything else that could be causing the regeneration of the cover thumbnails? As it stands and scan of the collection will take several days to complete.

Got it working. It was a firewall issue at my end. All sorted and I've set up a nice little systemd service to run on boot.

There's no mention of any issues in the log;

20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Running with the following parameters - headless: true, libraryport: 2202, adminport: 2203, remoteadmin: true, host: null, debug: false, execdir: /opt/Ubooquity
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - #############################
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - # Starting Ubooquity #
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - #############################
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Java version: 1.8.0_191
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Java vendor: Oracle Corporation
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - java vm name: OpenJDK 64-Bit Server VM
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - java runtime name: OpenJDK Runtime Environment
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Max heap size available: 7118 MB
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - OS name: Linux
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - OS version: 4.18.0-13-generic
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - OS architecture: amd64
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Loading local version info
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Ubooquity 2.1.2 built on 2018-10-14 at 12:58
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Creating application folders
20190105 10:32:09 [main] INFO com.ubooquity.Ubooquity - Loading preferences
20190105 10:32:10 [main] INFO org.eclipse.jetty.util.log - Logging initialized @10678ms to org.eclipse.jetty.util.log.Slf4jLog
20190105 10:32:10 [main] INFO com.ubooquity.b - Starting internal server...
20190105 10:32:10 [main] INFO com.ubooquity.b - Reverse proxy prefix is not activated
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning books directories
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning books directories, populating folders content cache
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books folder content cache populated
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning comics directories
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics folder content cache populated
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics statistics: [total: 0, added or updated: 0, removed: 0]
20190105 10:32:10 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books statistics: [total: 0, added or updated: 0, removed: 0]
20190105 10:32:10 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.0.v20161208
20190105 10:32:10 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@6b695b06{/,null,AVAILABLE,@admin}
20190105 10:32:10 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@4d1bf319{/,null,AVAILABLE,@library}
20190105 10:32:10 [main] INFO o.e.jetty.server.AbstractConnector - Started library@57bc27f5{HTTP/1.1,[http/1.1]}{0.0.0.0:2202}
20190105 10:32:10 [main] INFO o.e.jetty.server.AbstractConnector - Started admin@5fb759d6{HTTP/1.1,[http/1.1]}{0.0.0.0:2203}
20190105 10:32:10 [main] INFO org.eclipse.jetty.server.Server - Started @10823ms
20190105 10:32:10 [main] INFO com.ubooquity.b - Internal server started. Listening on port 2202 (library) and 2203 (admin)
20190105 10:32:11 [Timer-0] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website
20190105 10:32:11 [Timer-0] INFO com.ubooquity.Ubooquity - Latest version available: 2.1.2 - Current version: 2.1.2

I now can't get past the password screen as it says "failed at the server side"

Does anyone currently have Ubooquity latest build working with Ubuntu?

Ok, so I can get it working only if I implicitly add the lines -adminport 2203 -libraryport 2202 to the initial run command.

are these ports not supposed to be default?

So I've just noticed something strange in the log files

20190104 12:29:49 [qtp2074820378-27] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@5f617b71[p=1,l=517,c=8192,r=516]={\x16<<<\x03\x01\x02\x00\x01\x00\x01\xFc\x03\x03w\xE5\xF4\xCd\x86\x86\xDa...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20190104 12:29:49 [qtp2074820378-43] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@7a481b9b[p=1,l=517,c=8192,r=516]={\x16<<<\x03\x01\x02\x00\x01\x00\x01\xFc\x03\x03\x93\xAd\xAa$\x13\xFa\x13...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20190104 12:29:49 [qtp2074820378-43] WARN org.eclipse.jetty.http.HttpParser - bad HTTP parsed: 400 Illegal character 0x16 for HttpChannelOverHttp@4186f75d{r=0,c=false,a=IDLE,uri=null}
20190104 12:29:49 [qtp2074820378-27] WARN org.eclipse.jetty.http.HttpParser - bad HTTP parsed: 400 Illegal character 0x16 for HttpChannelOverHttp@589bf197{r=0,c=false,a=IDLE,uri=null}
20190104 12:29:49 [qtp2074820378-42] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@16e3572[p=1,l=208,c=8192,r=207]={\x16<<<\x03\x01\x00\xCb\x01\x00\x00\xC7\x03\x03\x18\xA0\t~\xFd\xE7\x17...\x12\x00\x00\x00\x1b\x00\x03\x02\x00\x02ZZ\x00\x01\x00>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20190104 12:29:49 [qtp2074820378-42] WARN org.eclipse.jetty.http.HttpParser - bad HTTP parsed: 400 Illegal character 0x16 for HttpChannelOverHttp@551b187{r=0,c=false,a=IDLE,uri=null}
20190104 12:29:53 [qtp2074820378-42] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@5f617b71[p=1,l=517,c=8192,r=516]={\x16<<<\x03\x01\x02\x00\x01\x00\x01\xFc\x03\x03\x14\x0f\xB7\x1d\x01\xBf\xE6...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20190104 12:29:53 [qtp2074820378-29] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@7a481b9b[p=1,l=517,c=8192,r=516]={\x16<<<\x03\x01\x02\x00\x01\x00\x01\xFc\x03\x03\x184\x85\x98\x99\x0b...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20190104 12:29:53 [qtp2074820378-42] WARN org.eclipse.jetty.http.HttpParser - bad HTTP parsed: 400 Illegal character 0x16 for HttpChannelOverHttp@40533f49{r=0,c=false,a=IDLE,uri=null}
20190104 12:29:53 [qtp2074820378-29] WARN org.eclipse.jetty.http.HttpParser - bad HTTP parsed: 400 Illegal character 0x16 for HttpChannelOverHttp@7acd7f0b{r=0,c=false,a=IDLE,uri=null}
20190104 12:29:53 [qtp2074820378-43] WARN org.eclipse.jetty.http.HttpParser - Illegal character 0x16 in state=START for buffer HeapByteBuffer@11ae8b59[p=1,l=208,c=8192,r=207]={\x16<<<\x03\x01\x00\xCb\x01\x00\x00\xC7\x03\x03h\xB7Di\xF9\xBb\x86...\x12\x00\x00\x00\x1b\x00\x03\x02\x00\x02JJ\x00\x01\x00>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

I can highly recommend Seth's ComicViewer. It really is the best solution right now for Ubooquity. It's so fast, elegant and easy to use.


Now if only we could add downloading for offline access, then it would become hands down the best comic solution there is. ;)