0
Under review

Raspberry Pi 4?

PieterJanSterk 4 years ago updated 4 years ago 4

Hi, trying to run Ubooquti on a Raspberry Pi 4. However, I get the following error:

pi@raspberrypi:/opt/ubooquity $ sudo java -jar Ubooquity.jar
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Running with the following parameters - headless: false, libraryport: -1, adminport: -1, remoteadmin: false, host: null, debug: false, execdir: /opt/ubooquity
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - #############################
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - #     Starting Ubooquity    #
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - #############################
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Java version: 1.8.0_212
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Java vendor: Oracle Corporation
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - java vm name: OpenJDK Client VM
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - java runtime name: OpenJDK Runtime Environment
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Max heap size available: 247 MB
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - OS name: Linux
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - OS version: 5.4.51-v7l+
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - OS architecture: arm
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Loading local version info
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Ubooquity 2.1.2 built on 2018-10-14 at 12:58
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Creating application folders
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Loading preferences
20200914 13:46:36 [main] INFO  com.ubooquity.Ubooquity - Saving preferences
20200914 13:46:37 [main] INFO  org.eclipse.jetty.util.log - Logging initialized @3165ms to org.eclipse.jetty.util.log.Slf4jLog
java.lang.NoClassDefFoundError: javafx/fxml/Initializable
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at com.ubooquity.e.a.d(SourceFile:597)
    at com.ubooquity.e.a.loadClass(SourceFile:962)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.ubooquity.a.<init>(SourceFile:19)
    at com.ubooquity.Ubooquity.main(SourceFile:246)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.ubooquity.e.a.a(SourceFile:823)
    at com.ubooquity.Launcher.main(SourceFile:10)
Caused by: java.lang.ClassNotFoundException: Failure to load: javafx.fxml.Initializable
    at com.ubooquity.e.a.loadClass(SourceFile:992)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 13 more
20200914 13:46:37 [Thread-2] INFO  com.ubooquity.b - Stopping internal server...
20200914 13:46:37 [Thread-2] INFO  com.ubooquity.data.feeder.a - Aborting content scan...
20200914 13:46:37 [Thread-2] ERROR com.ubooquity.b - Error while stopping internal server
java.lang.NullPointerException: null
    at com.ubooquity.d.e.a(SourceFile:99) ~[Ubooquity.jar:2.1.2]
    at com.ubooquity.b.c(SourceFile:112) ~[Ubooquity.jar:2.1.2]
    at com.ubooquity.Ubooquity.C(SourceFile:216) [Ubooquity.jar:2.1.2]
    at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_212]
20200914 13:46:37 [Thread-2] INFO  com.ubooquity.b - Internal server stopped
20200914 13:46:37 [Thread-2] INFO  com.ubooquity.Ubooquity - Ubooquity has closed.

Running Java 8, does any ody have an idea?

Under review

Try to launch it with the --headless option.

This works! Thank you so much!

sudo java -jar Ubooquity.jar --headless
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Running with the following parameters - headless: true, libraryport: -1, adminport: -1, remoteadmin: false, host: null, debug: false, execdir: /opt/ubooquity
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - #############################
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - # Starting Ubooquity #
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - #############################
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Java version: 1.8.0_212
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Java vendor: Oracle Corporation
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - java vm name: OpenJDK Client VM
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - java runtime name: OpenJDK Runtime Environment
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Max heap size available: 247 MB
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - OS name: Linux
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - OS version: 5.4.51-v7l+
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - OS architecture: arm
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Loading local version info
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Ubooquity 2.1.2 built on 2018-10-14 at 12:58
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Creating application folders
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Loading preferences
20200917 10:20:33 [main] INFO com.ubooquity.Ubooquity - Saving preferences
20200917 10:20:34 [main] INFO org.eclipse.jetty.util.log - Logging initialized @2974ms to org.eclipse.jetty.util.log.Slf4jLog
20200917 10:20:34 [main] INFO com.ubooquity.b - Starting internal server...
20200917 10:20:34 [main] INFO com.ubooquity.b - Reverse proxy prefix is not activated
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning books directories
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning books directories, populating folders content cache
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books folder content cache populated
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning comics directories
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics folder content cache populated
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics statistics: [total: 0, added or updated: 0, removed: 0]
20200917 10:20:34 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books statistics: [total: 0, added or updated: 0, removed: 0]
20200917 10:20:34 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.0.v20161208
20200917 10:20:34 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@1695b06{/,null,AVAILABLE,@admin}
20200917 10:20:34 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@11bf319{/,null,AVAILABLE,@library}
20200917 10:20:34 [main] INFO o.e.jetty.server.AbstractConnector - Started library@1bc27f5{HTTP/1.1,[http/1.1]}{0.0.0.0:2202}
20200917 10:20:34 [main] INFO o.e.jetty.server.AbstractConnector - Started admin@1b759d6{HTTP/1.1,[http/1.1]}{127.0.0.1:2203}
20200917 10:20:34 [main] INFO org.eclipse.jetty.server.Server - Started @3413ms
20200917 10:20:34 [main] INFO com.ubooquity.b - Internal server started. Listening on port 2202 (library) and 2203 (admin)
Tyep Q then ENTER to exit
20200917 10:20:35 [Timer-0] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website
20200917 10:20:35 [Timer-0] INFO com.ubooquity.Ubooquity - Latest version available: 2.1.2 - Current version: 2.1.2

Port 2202 is running fine, port 2203 is giving me the "connection refused" error. Is this normal? How do I add/manage stuff now?

Never mind, got it working with --remoteadmin an --adminport, thanks!