Error prompt¶
Tags: “console” “Console Configuration” “Command Line Interactive Tools”
Important
“Console” only supports FISCO BCOS 3.x version, based on ‘Java SDK<../../sdk/java_sdk/index.html>’_ Implementation。
You can view the current console version through the command. “/ start.sh –version”
Possible errors in console startup:
The connection to the server timed out¶
Connection node timeout, possible cause:
Node version error: ‘console 3.0 ‘only supports FISCO BCOS 3.x, please ensure that the deployed blockchain environment is 3.0+Version
Network connection failure: The node is not started or the configuration node connection information is incorrect
SSL handshake failed: Certificate error or ‘SSL’ configuration error
对于Network connection failureThe problem, troubleshooting methods are as follows:
Check whether the node starts normally
ps -ef | egrep fiscoCheck whether the node connection information configured in the console is wrong
The list of node connections configured in the console, in the console configuration file ‘config.toml’:
[network] peers=["127.0.0.1:20200", "127.0.0.1:20201"] # The peer list to connect
The connection port should be theRPC Port, node ‘RPC’ port in node configuration file ‘config.ini:”listen _ port” field:
[rpc] listen_ip=0.0.0.0 listen_port=20200
Check whether the network is connected
You can use tools such as’ ping ‘and’ telnet ‘to determine if the console is not connected to the server network where the node is located
对于SSL handshake failed问题:
Check whether the ‘sdk’ certificate is correct:
‘sdk’ certificate location of the ‘Air’ installation package:
nodes/IP/sdk‘sdk’ certificate location of the ‘Pro’ version installation package:
generated/rpc/chainID/IP/serviceName/sdk(Remarks: chainID:Chain ID, IP:Node IP, serviceName:Service name, specified when setting up the environment)
will ‘sdk /*’Copy the certificate in the directory to the console configuration directory ‘console / conf’
Check the ‘SSL’ configuration
Console ‘SSL’ Configuration:
[cryptoMaterial] useSMCrypto = "false" # RPC SM crypto type
‘SSL ‘configuration of the node:
[rpc] ; ssl or sm ssl sm_ssl=false
The two configurations should be consistent, set to ‘true’ in the national secret environment and ‘false’ in the non-national secret environment
there has no connection available for the group, maybe all connections disconnected or the group does not exist¶
The group id used by the console does not exist. There are two ways to start the console:
Specify Group: bash start.sh groupId
Default startup: ‘bash start.sh ‘, the group id used at this time is the group configured in the’ config.toml ‘file:
[network]
defaultGroup="group0" # Console default group to connect
The group ID of the node. Check the node configuration file ‘config.genesis’:
// config.genesis
[chain]
; the group id, should never be changed
group_id=group0
ensure that the group id used by the console corresponds to the group id of the node。