WeBankBlockchain / WeBASE-Front

WeBASE-Front是和FISCO BCOS节点配合使用的一个子系统,需要和节点统计部署,目前支持FISCO BCOS 2.0以上版本,可通过HTTP请求和节点进行通信,集成了web3sdk(java-sdk),对接口进行了封装和抽象,具备可视化控制台,可以在控制台上查看交易和区块详情,开发智能合约,管理私钥,并对节点健康度进行监控和统计。
Apache License 2.0
66 stars 74 forks source link

快速搭建webase平台——正常启动,无法访问http://localhost:5002/WeBASE-Front #839

Closed wxj-cyber closed 1 year ago

wxj-cyber commented 1 year ago

ubuntu 18.04 java环境如下:

$ java --version

openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)

echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64

节点启动进程输出:

$ ps -ef |grep -v grep|grep fisco-bcos

wxj       18039   1710  4 06:59 pts/0    00:03:47 /home/wxj/fisco/nodes/127.0.0.1/node2/../fisco-bcos -c config.ini -g config.genesis
wxj       18040   1710  4 06:59 pts/0    00:03:44 /home/wxj/fisco/nodes/127.0.0.1/node0/../fisco-bcos -c config.ini -g config.genesis
wxj       18041   1710  4 06:59 pts/0    00:03:47 /home/wxj/fisco/nodes/127.0.0.1/node1/../fisco-bcos -c config.ini -g config.genesis
wxj       18042   1710  4/usr/lib/jvm/java-11-openjdk-amd64 06:59 pts/0    00:03:47 /home/wxj/fisco/nodes/127.0.0.1/node3/../fisco-bcos -c config.ini -g config.genesis

将节点nodes/127.0.0.1/sdk/*下的证书文件复制到webase的conf中,启动

$ bash start.sh
===============================================================================================
Server com.webank.webase.front.Application Port 5002 ...PID(24200) [Starting]. Please check message through the log file (default path:./log/).
===============================================================================================
```Caused by: org.fisco.bcos.sdk.network.NetworkException:  Failed to connect to all the nodes! errorMessage: 
 ssl handshake failed:/127.0.0.1:20200! Please check the certificate and ensure that the SDK and the node are in the same agency!
火狐浏览器访问:http://localhost:5002/WeBASE-Front
结果:Firefox 无法建立到 localhost:5002 服务器的连接。

查看日志,内部有这个错误。

Caused by: org.fisco.bcos.sdk.network.NetworkException: Failed to connect to all the nodes! errorMessage: ssl handshake failed:/127.0.0.1:20200! Please check the certificate and ensure that the SDK and the node are in the same agency!

Dawn-sea commented 8 months ago

请问一下您解决了嘛,我也遇到的类似的问题

lukay43 commented 6 months ago

请问一下您解决了嘛,我也遇到的类似的问题

请问您解决了吗 我是启动节点但打不开localhost的网址