> OS:Gentoo,CentOS
>版本:2.1.0
>版本:2.1.0
按照quick start guide,运行bootstrap-localcloud时遇到以下错误:
cloudify@default> bootstrap-localcloud STARTING CLOUDIFY MANAGEMENT 2012-05-30 14:55:50,396 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - ; \ Caused by: org.cloudifysource.shell.commands.CLIException: \ Error while starting agent. \ Please make sure that another agent is not already running. Operation Failed.
Cloudify用于检查代理正在运行的端口?
PS:在Windows上运行时工作正常.
更新:5月30日星期三22:37:30 ICT 2012
回复@tamirkorem和@Itai Frenkel:
我很确定,因为这是我第一次在2台服务器上运行该命令.更清楚的是,这是输出:
cloudify@default> teardown-localcloud Teardown will uninstall all of the deployed services. Do you want to continue [y/n]? 2012-05-30 22:43:33,145 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - Teardown Failed. Failed to fetch the currently deployed applications list. For force teardown use the -force flag. Operation Failed. cloudify@default> teardown-localcloud -force Teardown will uninstall all of the deployed services. Do you want to continue [y/n]? Failed to fetch the currently deployed applications list. Continuing teardown-localcloud. .2012-05-30 22:46:39,040 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - Teardown aborted,an agent was not found on the local machine. Operation Failed.
这一个是详细的结果:
cloudify@default> bootstrap-localcloud --verbose NIC Address=127.0.0.1 Lookup Locators=127.0.0.1:4172 Lookup Groups=localcloud Starting agent and management processes: gs-agent.sh gsa.global.lus 0 gsa.lus 0 gsa.gsc 0 gsa.global.gsm 0 gsa.gsm_lus 1 gsa.global.esm 0 gsa.esm 1 >/dev/null 2>&1 STARTING CLOUDIFY MANAGEMENT 2012-05-30 22:36:12,870 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - ; Caused by: org.cloudifysource.shell.commands.CLIException: Error while starting agent. Please make sure that another agent is not already running. Command executed: /usr/local/src/gigaspaces-cloudify-2.1.0-ga/bin/gs-agent.sh gsa.global.lus 0 gsa.lus 0 gsa.gsc 0 gsa.global.gsm 0 gsa.gsm_lus 1 gsa.global.esm 0 gsa.esm 1 >/dev/null 2>&1
回复@Eliran Malka:
没有这样的进程监听端口4172:
# netstat --protocol=inet -nlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 2363/tor tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2331/MysqLd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2293/cupsd
解决方法
您可能已在计算机上运行localcloud.
有几种选择:
有几种选择:
>尝试使用connect localhost连接到现有的localcloud
>在bootstrap-localcloud之前运行teardown-localcloud
有关更多调试信息,请使用–verbose选项(例如bootstrap-localcloud –verbose)