0

admin screen not showing up on headless Ubuntu server. Ubooquity seems to be running ok.

CraftyClown 6 months ago • updated by Think Strategy 4 months ago 9

Hey guys,

I'm trying to run the Ubooquity.jar on a headless Ubuntu 18.10 box and despite the fact the terminal seems to indicate it is running I am unable to access it via http://YOUR_IP:2203/admin

The command I am  running is 

java -jar Ubooquity.jar --remoteadmin --headless

This is the output from terminal;

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

any thoughts on what the issue might be, or how I might go about trouble shooting it?

Cheers all

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}

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?

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?

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

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.

could you explain how you did the system service please? Every time I try it fails

Thx

Which Ubuntu are you on? 

isn't Java a "little" bit on the heavy side for a Raspberry pi?

Anyways, search on google for an example of a Rasbian script. Im not exatcly sure if they are the same as Ubuntu 18.04. However, the concept is mostly the same.

Just have your path of java use a jar file (ubooquity.jar) and the options you want it to use. For example something like this

/usr/bin/java -jar Ubooquity.jar --workdir <path> --headless --libraryport <port> --remoteadmin --adminport <different port than libraryport>