Tencent / phxpaxos

The Paxos library implemented in C++ that has been used in the WeChat production environment.
Other
3.36k stars 863 forks source link

局域网测试sample失败 #183

Closed gogobody closed 4 years ago

gogobody commented 4 years ago

测试两台主机 192.168.1.108:8600 和 192.168.1.119:8600 ./phxecho 运行后都接收不到消息 两台主机单独测试socket,nc -lp 监听连接均正常

 ~  netstat -ano |grep 8600                                                                      ✔ 
tcp        0      0 192.168.1.119:8600      0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 192.168.1.119:8600      192.168.1.108:37690     ESTABLISHED off (0.00/0/0)
tcp        0      0 192.168.1.119:53808     192.168.1.108:8600      ESTABLISHED off (0.00/0/0)
udp        0      0 0.0.0.0:8600            0.0.0.0:*   

log 如下:

Log file created at: 2020/06/03 20:02:50
Running on machine: ginux-pc
Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
E20200603 20:02:50.680682  4705 logger_google.cpp:99] init_glog_warning_file
E20200603 20:02:50.705943  4706 logger_google.cpp:99]  ERR(0): PN8phxpaxos8DatabaseE::GetMinChosenInstanceID no min chosen instanceid 
E20200603 20:02:50.706310  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:51.238546  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:51.965955  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:52.472232  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:53.138499  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:53.709807  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 0 
E20200603 20:02:53.909823  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:53.914319  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:53.944680  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:54.114481  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:54.117692  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:54.317967  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:54.323045  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:54.450940  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:54.524473  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:54.528838  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:54.729097  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:54.732682  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:54.933109  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:54.939327  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:55.068253  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:55.139423  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:55.143718  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:55.343453  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:55.351085  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:55.552347  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:55.559260  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:55.719414  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:55.759709  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:55.765704  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:55.966375  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:55.971511  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:56.171656  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:56.175987  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:56.375365  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:56.380348  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:56.398672  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:56.580430  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:56.582962  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:56.783341  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:56.789841  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:56.933930  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:56.989470  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:56.994619  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:57.194878  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:57.199295  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:57.399917  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:57.404203  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:57.458146  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:57.604451  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:57.609112  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:57.809296  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:57.811856  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:58.011531  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:58.014256  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:58.091347  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:58.214399  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:58.217427  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:58.418325  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:58.421113  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:58.621232  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:58.624809  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:58.824528  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:58.826953  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:59.026566  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:59.029322  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:59.060698  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:59.230108  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:59.233623  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:59.433439  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:59.438146  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:59.638788  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:59.642599  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:02:59.738910  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:02:59.843354  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:02:59.845808  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:00.045987  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:00.053844  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:00.253712  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:00.256337  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:00.456764  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:00.460284  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:00.630214  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:03:00.661286  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:00.665323  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:00.866351  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:00.869890  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:01.069746  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:01.071208  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:01.271716  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:01.274132  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:01.309475  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:03:01.474725  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:01.478080  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:01.679136  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:01.682461  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:01.882467  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:01.887006  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:01.952755  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now instanceid 0
E20200603 20:03:02.086841  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:02.092653  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:02.293315  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:02.296460  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:02.497354  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:02.501119  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:02.702236  4713 logger_google.cpp:99]  ERR: PN8phxpaxos12MessageEventE::ReConnect start, ip 192.168.1.108 
E20200603 20:03:02.706257  4713 logger_google.cpp:99]  ERR: PN8phxpaxos9EventLoopE::OnError event error, events 28 socketfd 23 socket ip 192.168.1.108 errno 115 
E20200603 20:03:02.809062  4709 logger_google.cpp:99] STATUS(0): PN8phxpaxos7CleanerE::run sleep a while, max deleted instanceid 0 checkpoint instanceid (no checkpoint) now
gogobody commented 4 years ago

可能是由于虚拟机设置问题,更换另外的主机测试正常了