FISCO BCOS踩过的坑

一些不知怎么跳的坑

1/节点可以启动,其他一切正常,但连接不上控制台

Failed to connect to the node. Please check the node status and the console configuration.

log显示

[ERROR] [2019-11-18 19:20:17] Service.run(349) | system error
javax.net.ssl.SSLException: Failed to initialize the client-side SSLContext: Input stream not contain valid certificates.
        at org.fisco.bcos.channel.handler.ChannelConnections.initSslContextForConnect(ChannelConnections.java:468)
        at org.fisco.bcos.channel.handler.ChannelConnections.startConnect(ChannelConnections.java:395)
        at org.fisco.bcos.channel.client.Service.run(Service.java:312)
        at console.ConsoleInitializer.init(ConsoleInitializer.java:113)
        at console.ConsoleClient.main(ConsoleClient.java:41)

asset-app目录下

[root@localhost ~]# cd ~/asset-app
[root@localhost asset-app]# ./gradlew build

BUILD SUCCESSFUL in 648ms
4 actionable tasks: 4 up-to-date

[root@localhost dist]# bash asset_run.sh deploy
Exception in thread "main" javax.net.ssl.SSLException: Failed to initialize the client-side SSLContext: Input stream not contain valid certificates.
    at org.fisco.bcos.channel.handler.ChannelConnections.initSslContextForConnect(ChannelConnections.java:468)
    at org.fisco.bcos.channel.handler.ChannelConnections.startConnect(ChannelConnections.java:395)
    at org.fisco.bcos.channel.client.Service.run(Service.java:312)
    at org.fisco.bcos.asset.client.AssetClient.initialize(AssetClient.java:80)
    at org.fisco.bcos.asset.client.AssetClient.main(AssetClient.java:203)

log错误信息

[ERROR] [2019-11-18 19:35:39] org.fisco.bcos.channel.client.Service.run(349) | system error
javax.net.ssl.SSLException: Failed to initialize the client-side SSLContext: Input stream not contain valid certificates.
        at org.fisco.bcos.channel.handler.ChannelConnections.initSslContextForConnect(ChannelConnections.java:468)
        at org.fisco.bcos.channel.handler.ChannelConnections.startConnect(ChannelConnections.java:395)
        at org.fisco.bcos.channel.client.Service.run(Service.java:312)
        at org.fisco.bcos.asset.client.AssetClient.initialize(AssetClient.java:80)
        at org.fisco.bcos.asset.client.AssetClient.main(AssetClient.java:203)
原因:证书每换
解决方法:

你可能感兴趣的:(FISCO BCOS踩过的坑)