juju 本地错误 ERROR 超时前无法连接

juju 本地错误 ERROR 超时前无法连接

juju -v status

2013-04-07 18:11:20,888 DEBUG Initializing juju status runtime
2013-04-07 18:11:20,902:3553(0x7f739cef7700):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.6
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@log_env@662: Client environment:host.name=ubuntu
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@log_env@670: Client environment:os.arch=3.5.0-26-generic
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@log_env@671: Client environment:os.version=#42-Ubuntu SMP Fri Mar 8 23:18:20 UTC 2013
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@log_env@679: Client environment:user.name=alok
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@log_env@687: Client environment:user.home=/home/alok
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@log_env@699: Client environment:user.dir=/home/alok
2013-04-07 18:11:20,903:3553(0x7f739cef7700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=10.0.3.1:50094 sessionTimeout=10000 watcher=0x7f739c609700 sessionId=0 sessionPasswd=<null> context=0x3684740 flags=0
2013-04-07 18:11:20,903:3553(0x7f73984cb700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [10.0.3.1:50094] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-04-07 18:11:24,237:3553(0x7f73984cb700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [10.0.3.1:50094] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-04-07 18:11:27,573:3553(0x7f73984cb700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [10.0.3.1:50094] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-04-07 18:11:30,909:3553(0x7f73984cb700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [10.0.3.1:50094] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
Traceback (most recent call last):
Failure: txzookeeper.client.ConnectionTimeoutException: could not connect before timeout
2013-04-07 18:11:30,909 ERROR Traceback (most recent call last):
Failure: txzookeeper.client.ConnectionTimeoutException: could not connect before timeout

2013-04-07 18:11:30,910 ERROR could not connect before timeout

请告诉我问题出在哪里。我生成了 ssh 密钥:

ssh-keygen -t rsa 

juju使用指南进行安装juju.ubuntu.com 但仍然出现此错误cat .juju/environments.yaml

environments:
  sample:
    type: local
    control-bucket: juju-4fd5fb3fd7044bd9ac65a9c6bdc8aecd
    admin-secret: ffeb3c9a61e84155a04df9cf8db3e4fb
    default-series: precise
    data-dir: /home/alok/data
    ssl-hostname-verification: true

答案1

我遇到了类似的情况。我在 MAAS 中准备好了节点,并且“juju bootstrap”命令成功了。当我尝试执行任何“juju -v deploy”或“juju -v status”时,会显示一个错误,提示连接被拒绝。它不断重试在各种不同端口上连接到 zookeeper。大概需要等待 5-7 分钟,但 status 命令终于成功了。现在任何后续的 status 或 deploy 命令都可以正常工作。如果对任何人有帮助,以下是“juju -v status”的输出。您会注意到第一次需要很长时间,但第二次会立即出现。

http://pastebin.com/jhvgDYK0

相关内容