![juju 状态超时错误 111 连接被拒绝请帮忙](https://linux22.com/image/837830/juju%20%E7%8A%B6%E6%80%81%E8%B6%85%E6%97%B6%E9%94%99%E8%AF%AF%20111%20%E8%BF%9E%E6%8E%A5%E8%A2%AB%E6%8B%92%E7%BB%9D%E8%AF%B7%E5%B8%AE%E5%BF%99.png)
我正在使用入门教程设置 juju 本地环境,一切顺利,直到我重新启动物理机后
当我尝试引导时,它说已经引导,但我看不到状态
查看我的状态
$ juju -v status
2013-06-16 17:49:03,643 DEBUG Initializing juju status runtime
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@712: Client environment:zookeeper.version=zookeeper C client 3.4.5
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@716: Client environment:host.name=ubuntu
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@723: Client environment:os.name=Linux
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@724: Client environment:os.arch=3.8.0-25-generic
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@725: Client environment:os.version=#37-Ubuntu SMP Thu Jun 6 20:47:07 UTC 2013
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@733: Client environment:user.name=user
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@741: Client environment:user.home=/home/user
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@log_env@753: Client environment:user.dir=/home/user
2013-06-16 17:49:03,659:4613(0x7fe71fce5740):ZOO_INFO@zookeeper_init@786: Initiating client connection, host=10.0.3.1:48315 sessionTimeout=10000 watcher=0x7fe71e2ea850 sessionId=0 sessionPasswd=<null> context=0x2bcb640 flags=0
2013-06-16 17:49:03,659:4613(0x7fe71a60f700):ZOO_ERROR@handle_socket_error_msg@1697: Socket [10.0.3.1:48315] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-06-16 17:49:06,996:4613(0x7fe71a60f700):ZOO_ERROR@handle_socket_error_msg@1697: Socket [10.0.3.1:48315] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-06-16 17:49:10,332:4613(0x7fe71a60f700):ZOO_ERROR@handle_socket_error_msg@1697: Socket [10.0.3.1:48315] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-06-16 17:49:13,669:4613(0x7fe71fce5740):ZOO_INFO@zookeeper_close@2522: Freeing zookeeper resources for sessionId=0
Traceback (most recent call last):
Failure: txzookeeper.client.ConnectionTimeoutException: could not connect before timeout
2013-06-16 17:49:13,669 ERROR Traceback (most recent call last):
Failure: txzookeeper.client.ConnectionTimeoutException: could not connect before timeout
2013-06-16 17:49:13,669 ERROR could not connect before timeout
看 原始日志
答案1
机器应该在引导程序之间保留,但有时情况并非如此。您需要使用 销毁环境juju destroy-environment
,然后重新引导。