问题1:端口被占
报错:Exceed waiting time. Please try again to start node0
initConfig for P2PInitializer failed,check Port=30303,EINFO=Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >
std::exception::what: bind: Address already in use
解决:关闭占用端口的进程
查看端口是否被占
lsof -i:30303
这个也可以netstat -ap | grep 30303
说明被PID为5305的进程占用,关闭该进程
kill -9 PID号
kill -9 5305
检查,直到全部杀死
删除fisco文件,重新部署
问题2
Can’t load /home/user2/.rnd into RNG
140578306785728:error:2406F079:random number generator:RAND_load_file:Cannot open file:…/crypto/rand/randfile.c:88:Filename=/home/user2/.rnd
解决方法:在缺少.rnd的目录中生成.rnd
cd /home/user2/
openssl rand -writerand .rnd
问题3:查看连接,以node0为例。(8545是node0的rpc端口) jq不能找到
-sh: jq: command not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 956 100 899 100 57 877k 57000 --:–:-- --:–:-- --:–:-- 933k
(23) Failed writing body
安装jq
sudo apt-get install jq