FAQ  •  Register  •  Login

[Solved] Problem x509

<<

BlackGeare

Serviio newbie

Posts: 7

Joined: Tue Mar 06, 2018 4:04 pm

Post Tue Mar 06, 2018 4:20 pm

[Solved] Problem x509

Hello everyone, I apologize for my English, but I am an Italian user.
I would like to use the serviio on Linux Mint 18.3 x64, but the server will not boot and the console will report an ERR_CONNECTION_REFUSED error from the localhost on 23423 port ...

My Java version:
$ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 8.0.5.5 - pxa6480sr5fp5-20171114_01(SR5 FP5))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64 Compressed References 20171102_369060 (JIT enabled, AOT enabled)
OpenJ9 - 7ade437
OMR - 1b656cb
IBM - 59c3d96)
JCL - 20171113_01 based on Oracle jdk8u151-b12


and the log file:
2018-03-06 16:54:22,240 INFO [MediaServer] ------------------------------------------------------------------------
2018-03-06 16:54:22,240 INFO [MediaServer] Serviio DLNA media streaming server v 1.9.1 (rev. 5ccd9739d6ec)
2018-03-06 16:54:22,240 INFO [MediaServer] Petr Nejedly 2009-2017
2018-03-06 16:54:22,240 INFO [MediaServer] http://www.serviio.org
2018-03-06 16:54:22,240 INFO [MediaServer]
2018-03-06 16:54:22,240 INFO [MediaServer] Java 1.8.0_151-IBM Corporation amd64
2018-03-06 16:54:22,240 INFO [MediaServer] OS Linux 4.13.0-36-generic
2018-03-06 16:54:22,240 INFO [MediaServer] File encoding: UTF-8
2018-03-06 16:54:22,257 INFO [MediaServer] Headless mode enabled: true
2018-03-06 16:54:22,257 INFO [MediaServer] User: blackgeare
2018-03-06 16:54:22,257 INFO [MediaServer] User home dir: /home/blackgeare
2018-03-06 16:54:22,257 INFO [MediaServer] Temp dir: /tmp
2018-03-06 16:54:22,257 INFO [MediaServer] ------------------------------------------------------------------------
2018-03-06 16:54:22,271 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2018-03-06 16:54:22,283 INFO [DatabaseManager] Using DERBY database language
2018-03-06 16:54:23,456 INFO [DBSchemaUpdateExecutor] Updating DB schema
2018-03-06 16:54:27,153 INFO [DBSchemaUpdateExecutor] Dropping search index
2018-03-06 16:54:27,156 INFO [SearchManager] Starting up search engine
2018-03-06 16:54:27,248 INFO [DBSchemaUpdateExecutor] Cleaning temporary cache
2018-03-06 16:54:27,257 INFO [WebServer] Socket buffer set to 65535 bytes
2018-03-06 16:54:27,257 INFO [Device] Created UPnP Device with UUID: 9910f445-e26c-335b-99a8-8ff8acd7afc8, bound address: 192.168.1.62
2018-03-06 16:54:27,297 INFO [DBSchemaUpdateExecutor] Cleaning persistent cache
2018-03-06 16:54:27,304 WARN [IndexedDiskCache] Region [online_technical_metadata] Reseting cache
2018-03-06 16:54:27,348 INFO [RestletServer] Starting HTTP/1.1 Restlet server (/console) exposed on port 23423
2018-03-06 16:54:27,349 INFO [RestletServer] Starting HTTP/1.1 Restlet server (/rest) exposed on port 23423
2018-03-06 16:54:27,350 INFO [RestletServer] Starting HTTPS/1.1 Restlet server (/console) exposed on port 23523
2018-03-06 16:54:27,350 INFO [RestletServer] Starting HTTPS/1.1 Restlet server (/rest) exposed on port 23523
2018-03-06 16:54:27,376 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available
at org.serviio.restlet.RestletServer.runServer(RestletServer.java:93)
at org.serviio.MediaServer.main(MediaServer.java:128)
Caused by: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:171)
at javax.net.ssl.KeyManagerFactory.getInstance(KeyManagerFactory.java:12)
at org.restlet.engine.ssl.DefaultSslContextFactory.createSslContext(DefaultSslContextFactory.java:331)
at org.restlet.ext.simple.HttpsServerHelper.start(HttpsServerHelper.java:98)
at org.restlet.Server.start(Server.java:588)
at org.restlet.Component.startServers(Component.java:637)
at org.restlet.Component.start(Component.java:562)
at org.serviio.restlet.RestletServer.startComponent(RestletServer.java:172)
at org.serviio.restlet.RestletServer.runServer(RestletServer.java:80)
... 1 more
2018-03-06 16:54:27,377 WARN [IndexedDiskCache] Region [subtitles] Disk cache not shutdown properly, shutting down now.
2018-03-06 16:54:27,377 WARN [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.
2018-03-06 16:54:27,377 WARN [IndexedDiskCache] Region [tokens] Disk cache not shutdown properly, shutting down now.
2018-03-06 16:54:27,377 WARN [IndexedDiskCache] Region [subtitles_metadata] Disk cache not shutdown properly, shutting down now.
2018-03-06 16:54:27,377 WARN [IndexedDiskCache] Region [online_technical_metadata] Disk cache not shutdown properly, shutting down now.


Unfortunately I'm not very practical, how can I solve the problem? Thank's a lot
Last edited by BlackGeare on Wed Mar 07, 2018 1:29 pm, edited 1 time in total.
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Mar 06, 2018 4:37 pm

Re: Problem x509

Did you install Java before installing Serviio? With Linux, you must install Java separately, as it is not included with Serviio.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

BlackGeare

Serviio newbie

Posts: 7

Joined: Tue Mar 06, 2018 4:04 pm

Post Tue Mar 06, 2018 9:47 pm

Re: Problem x509

Sure. I installed version java version "1.8.0_151". I specified the version in my previous post.
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Mar 06, 2018 10:42 pm

Re: Problem x509

BlackGeare wrote:Sure. I installed version java version "1.8.0_151". I specified the version in my previous post.


Whoops: apologies, I missed that :oops:

Beyond that, I installed Serviio on a Linux Mint computer just last week without issue. I'll check what version of Java I installed, just to see if it differs from yours.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

BlackGeare

Serviio newbie

Posts: 7

Joined: Tue Mar 06, 2018 4:04 pm

Post Tue Mar 06, 2018 10:54 pm

Re: Problem x509

Thank you very much for your availability.
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Tue Mar 06, 2018 11:24 pm

Re: Problem x509

I think your problem is caused by using IBM java .If you don't need IBM java for something else, try uninstalling IBM java, and installing either
openjdk java or oracle java.
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Mar 07, 2018 2:53 am

Re: Problem x509

Your Java version may certainly be the issue. The Serviio log says I'm running "Java 1.8.0_151-Oracle Corporation amd64". That's a little strange, since this computer is running an Intel i3-2120 CPU. But running java from the command line says
  Code:
 $ java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)



I can't remember how I retrieved Java, but I think it was via apt-get, and not the Software Manager tool. Then again, maybe not. I'm looking at Software Manager right now, and it shows that I have "default-jre" installed, with this version saying "2:1.8.56ubuntu2". Software Manager reports dozens of different types of Java items available, but I think the "default-jre" is the standard runtime you should use.

I trust what the command line version is reporting as displaying the most accurate version number being used by the system.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

BlackGeare

Serviio newbie

Posts: 7

Joined: Tue Mar 06, 2018 4:04 pm

Post Wed Mar 07, 2018 8:50 am

Re: Problem x509

These are all the Java packages installed on my PC:
Attachments
JAVA.png
JAVA.png (237.27 KiB) Viewed 6825 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Mar 07, 2018 8:54 am

Re: Problem x509

you should be able to get OpenJDK Java, rather than the IBM one.
<<

BlackGeare

Serviio newbie

Posts: 7

Joined: Tue Mar 06, 2018 4:04 pm

Post Wed Mar 07, 2018 9:36 am

Re: Problem x509

zip wrote:you should be able to get OpenJDK Java, rather than the IBM one.


I tried only with the Openjdk-9-jre in a virtual machine with the same system but nothing :-(
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Wed Mar 07, 2018 10:18 am

Re: Problem x509

Looking at your earlier attachment ,you have both IBM java and Openjdk 8 java installed. Your system was defaulting to IBM java.
I don't know what you your trying in the virtual machine ,but you don't want Openjdk-9-jre you need Openjdk-8-jre .
Let's see if we can get you sorted out. Open a console and run,
  Code:
java -version

and tell us the result. Run this command
  Code:
sudo update-alternatives --display java

and tell us the result.
<<

BlackGeare

Serviio newbie

Posts: 7

Joined: Tue Mar 06, 2018 4:04 pm

Post Wed Mar 07, 2018 11:37 am

Re: Problem x509

Thank you so much .. I have created a virtual machine with linux mint virgin for testing purposes, I have only installed OpenJava, FFmpeg and the requirements to perform the serviio, but it does not work anyway.
By launching the commands, in the real machine, I get:
$ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 8.0.5.5 - pxa6480sr5fp5-20171114_01(SR5 FP5))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64 Compressed References 20171102_369060 (JIT enabled, AOT enabled)
OpenJ9 - 7ade437
OMR - 1b656cb
IBM - 59c3d96)
JCL - 20171113_01 based on Oracle jdk8u151-b12


For the second command:

$ sudo update-alternatives --display java
[sudo] password di blackgeare:
java - modalità manuale
link best version is /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
il collegamento attualmente punta a /usr/lib/jvm/java-ibm-x86_64-80/jre/bin/java
link java is /usr/bin/java
slave java.1.gz is /usr/share/man/man1/java.1.gz
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java - priorità 1081
slave java.1.gz: /usr/lib/jvm/java-8-openjdk-amd64/jre/man/man1/java.1.gz
/usr/lib/jvm/java-ibm-x86_64-80/jre/bin/java - priorità 80
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Wed Mar 07, 2018 12:21 pm

Re: Problem x509

Run this command,
  Code:
sudo update-alternatives --config java

you should be presented a list of installed java run times, choose the selection that includes this line
  Code:
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

that should make your system use openjdk.
You can check by running
  Code:
java -version

It should return something similar to this
  Code:
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
<<

BlackGeare

Serviio newbie

Posts: 7

Joined: Tue Mar 06, 2018 4:04 pm

Post Wed Mar 07, 2018 1:28 pm

Re: Problem x509

Wow it's great ... It finally works! I selected the path that you indicated to me (the one with the automatic mode), I ran serviio.sh and the console and it works.
Thank you so much for the help you gave me
now the java version displays:

$ java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 102 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.