0
Not a bug

New version crash

Garikover 7 years ago updated by Tom 7 years ago 2

Hello,


The old version refusing to launch, I recovered the new but I still have a startup error that I do not explain.


Do you have an idea of why ?


exec /var/packages/Java8/target/j2sdk-image/bin/java -jar /var/packages/Ubooquity/Ubooquity.jar --adminport 2203 --libraryport 2202 --debug --host 192.161.1.48



20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - Running with the following parameters - headless: false, libraryport: 2202, adminport: 2203, remoteadmin: false, host: 192.161.1.48, debug: true, execdir: /root
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - #############################
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - #     Starting Ubooquity    #
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - #############################
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - Java version: 1.8.0_121
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - Java vendor: Oracle Corporation
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - Max heap size available: 121 MB
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - OS name: Linux
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - OS version: 3.2.40
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - OS architecture: arm
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - Loading local version info
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - Ubooquity 2.1.0 built on 2017-06-18 at 17:14
20170805 00:02:20 [main] INFO  com.ubooquity.Ubooquity - Creating application folders
20170805 00:02:21 [main] INFO  com.ubooquity.Ubooquity - Loading preferences
20170805 00:02:21 [main] INFO  com.ubooquity.Ubooquity - Saving preferences
20170805 00:02:26 [main] INFO  com.ubooquity.Ubooquity - Deleting obsolete database file and cleaning cache folders
20170805 00:02:31 [main] INFO  org.eclipse.jetty.util.log - Logging initialized @25726ms to org.eclipse.jetty.util.log.Slf4jLog
20170805 00:02:31 [main] INFO  com.ubooquity.b - Starting internal server...
20170805 00:02:31 [main] INFO  com.ubooquity.b - Reverse proxy prefix is not activated
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Scanning books directories
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Finished scanning books directories, populating folders content cache
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Books folder content cache populated
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Scanning comics directories
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Comics folder content cache populated
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Comics statistics: [total: 0, added or updated: 0, removed: 0]
20170805 00:02:31 [Scanner thread] INFO  com.ubooquity.data.feeder.a - Books statistics: [total: 0, added or updated: 0, removed: 0]
20170805 00:02:32 [main] INFO  org.eclipse.jetty.server.Server - jetty-9.4.0.v20161208
20170805 00:02:32 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@3cbe{/,null,AVAILABLE,@admin}
20170805 00:02:32 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@82ba93{/,null,AVAILABLE,@library}
20170805 00:02:33 [main] INFO  o.e.jetty.server.AbstractConnector - Started admin@f53b8a{HTTP/1.1,[http/1.1]}{127.0.0.1:2203}
20170805 00:02:33 [main] ERROR com.ubooquity.Ubooquity - Exiting application because of exception
java.net.BindException: Cannot assign requested address
        at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_121]
        at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_121]
        at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_121]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_121]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.8.0_121]
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298) ~[jetty-server-9.4.0.v20161208.jar.912556113657989286.tmp:9.4.0.v20161208]
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[jetty-server-9.4.0.v20161208.jar.912556113657989286.tmp:9.4.0.v20161208]
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) ~[jetty-server-9.4.0.v20161208.jar.912556113657989286.tmp:9.4.0.v20161208]
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.4.0.v20161208.jar.6107594308689232933.tmp:9.4.0.v20161208]
        at org.eclipse.jetty.server.Server.doStart(Server.java:431) ~[jetty-server-9.4.0.v20161208.jar.912556113657989286.tmp:9.4.0.v20161208]
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.4.0.v20161208.jar.6107594308689232933.tmp:9.4.0.v20161208]
        at com.ubooquity.d.e.a(SourceFile:92) ~[Ubooquity.jar:2.1.0]
        at com.ubooquity.b.a(SourceFile:95) ~[Ubooquity.jar:2.1.0]
        at com.ubooquity.Ubooquity.main(SourceFile:222) ~[Ubooquity.jar:2.1.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
        at com.ubooquity.e.a.a(SourceFile:823) [Ubooquity.jar:2.1.0]
        at com.ubooquity.Launcher.main(SourceFile:10) [Ubooquity.jar:2.1.0]
java.lang.NoClassDefFoundError: javafx/scene/control/Alert
        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.Ubooquity.main(SourceFile:256)
        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.scene.control.Alert
        at com.ubooquity.e.a.loadClass(SourceFile:992)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 12 more


Not a bug

Try running Ubooquity with the "--headless" option, it should work.

Also, there were two issues: I had missed this line:

java.net.BindException: Cannot assign requested address


This means one of the port you want to use for Ubooquity (2202 or 2203) is already used by another process on your machine. Try using other ports.