收到错误 SSLInitializationException:TLS SSLContext 不可用 运行 媒体服务器应用程序
getting an error SSLInitializationException: TLS SSLContext not available running a media server application
我在 fedora 26 上 运行 subsonic(一种媒体服务器 Web 服务)。我最近在升级到 F26 时遇到了电源故障。我不得不修复大量问题,包括 selinux 上下文、替换一些应用程序等...但能够完全恢复 运行,但这个亚音速媒体服务器除外。
然后我重新升级到F26成功了。
当我启动 subsonic 时,我在它的日志中收到以下错误,重要的部分是 "org.apache.http.ssl.SSLInitializationException: TLS SSLContext not available "
[2018-03-07 09:50:01,178] INFO HsqlDaoHelper - Checking database schema.
[2018-03-07 09:50:01,468] INFO HsqlDaoHelper - Done checking database schema.
[2018-03-07 09:50:01,570] INFO SettingsService - Java: 1.8.0_151, OS: Linux
[2018-03-07 09:50:01,613] INFO VersionService - Resolved local Subsonic version
to: 6.1.3
[2018-03-07 09:50:01,673] WARN SettingsService - Failed to validate license.
org.apache.http.ssl.SSLInitializationException: TLS SSLContext not available
at org.apache.http.ssl.SSLContexts.createDefault(SSLContexts.java:55)
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder
.java:966)
at net.sourceforge.subsonic.util.HttpUtil.client(HttpUtil.java:50)
at net.sourceforge.subsonic.util.HttpUtil.httpRequest(HttpUtil.java:37)
at net.sourceforge.subsonic.util.HttpUtil.httpGet(HttpUtil.java:25)
at net.sourceforge.subsonic.util.HttpUtil.httpGet(HttpUtil.java:20)
at net.sourceforge.subsonic.service.SettingsService.validateLicense(Sett
at net.sourceforge.subsonic.service.SettingsService.validateLicense(Sett
ingsService.java:1408)
at net.sourceforge.subsonic.service.SettingsService.access[=11=]0(SettingsS
ervice.java:52)
at net.sourceforge.subsonic.service.SettingsService.run(SettingsServic
e.java:1431)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
1)
at net.sourceforge.subsonic.service.SettingsService.validateLicense(Sett
ingsService.java:1408)
at net.sourceforge.subsonic.service.SettingsService.access[=11=]0(SettingsS
ervice.java:52)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access1(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.NoSuchAlgorithmException: TLS SSLContext not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
at org.apache.http.ssl.SSLContexts.createDefault(SSLContexts.java:51)
... 15 more
我重新安装了应用程序并返回进行了一些修改,但没有成功。还重新安装了 openjdk、openssl 和其他一些没有运气的软件包。
然后我检查了cacerts文件,但是我无法用keytool打开它:
keytool -list -keystore -v /etc/pki/java/cacerts
这给了我一个错误:
" java.security.KeyStoreException: 未找到 JKS" "
然后我重新安装了 ca 证书,认为它可能已损坏。运气不好。
除了完全重新安装还有什么建议吗?我有我的数据备份,但我宁愿先找出问题所在。
猜测电力损失比预期的更严重。我不得不重新安装 java-1.8.0-openjdk-headless 而不是 java-1.8.0-openjdk
纠正这个问题。我不确定到底是什么被损坏了。想知道我还有什么惊喜!
我在 fedora 26 上 运行 subsonic(一种媒体服务器 Web 服务)。我最近在升级到 F26 时遇到了电源故障。我不得不修复大量问题,包括 selinux 上下文、替换一些应用程序等...但能够完全恢复 运行,但这个亚音速媒体服务器除外。
然后我重新升级到F26成功了。
当我启动 subsonic 时,我在它的日志中收到以下错误,重要的部分是 "org.apache.http.ssl.SSLInitializationException: TLS SSLContext not available "
[2018-03-07 09:50:01,178] INFO HsqlDaoHelper - Checking database schema.
[2018-03-07 09:50:01,468] INFO HsqlDaoHelper - Done checking database schema.
[2018-03-07 09:50:01,570] INFO SettingsService - Java: 1.8.0_151, OS: Linux
[2018-03-07 09:50:01,613] INFO VersionService - Resolved local Subsonic version
to: 6.1.3
[2018-03-07 09:50:01,673] WARN SettingsService - Failed to validate license.
org.apache.http.ssl.SSLInitializationException: TLS SSLContext not available
at org.apache.http.ssl.SSLContexts.createDefault(SSLContexts.java:55)
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder
.java:966)
at net.sourceforge.subsonic.util.HttpUtil.client(HttpUtil.java:50)
at net.sourceforge.subsonic.util.HttpUtil.httpRequest(HttpUtil.java:37)
at net.sourceforge.subsonic.util.HttpUtil.httpGet(HttpUtil.java:25)
at net.sourceforge.subsonic.util.HttpUtil.httpGet(HttpUtil.java:20)
at net.sourceforge.subsonic.service.SettingsService.validateLicense(Sett
at net.sourceforge.subsonic.service.SettingsService.validateLicense(Sett
ingsService.java:1408)
at net.sourceforge.subsonic.service.SettingsService.access[=11=]0(SettingsS
ervice.java:52)
at net.sourceforge.subsonic.service.SettingsService.run(SettingsServic
e.java:1431)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
1)
at net.sourceforge.subsonic.service.SettingsService.validateLicense(Sett
ingsService.java:1408)
at net.sourceforge.subsonic.service.SettingsService.access[=11=]0(SettingsS
ervice.java:52)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access1(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.NoSuchAlgorithmException: TLS SSLContext not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
at org.apache.http.ssl.SSLContexts.createDefault(SSLContexts.java:51)
... 15 more
我重新安装了应用程序并返回进行了一些修改,但没有成功。还重新安装了 openjdk、openssl 和其他一些没有运气的软件包。
然后我检查了cacerts文件,但是我无法用keytool打开它:
keytool -list -keystore -v /etc/pki/java/cacerts
这给了我一个错误: " java.security.KeyStoreException: 未找到 JKS" "
然后我重新安装了 ca 证书,认为它可能已损坏。运气不好。
除了完全重新安装还有什么建议吗?我有我的数据备份,但我宁愿先找出问题所在。
猜测电力损失比预期的更严重。我不得不重新安装 java-1.8.0-openjdk-headless 而不是 java-1.8.0-openjdk 纠正这个问题。我不确定到底是什么被损坏了。想知道我还有什么惊喜!