我试图在安装在 Vmware 盒子中的单实例节点中运行 AppScale,并在同一服务器虚拟机中运行 appscale-tools 并收到此错误:
root@appscale:~appscale-tools-bin# ./appscale-run-instances --ips ips.yaml
About to start AppScale over a non-cloud environment.
Head node successfully created at 127.0.0.1. It is now starting up cassandra via the command line arguments given.
Generating certificate and private key
Starting server at 127.0.0.1
Please wait for the controller to finish pre-processing tasks.
Warning: Permanently added '127.0.0.1' (RSA) t othe list of known host.
Error: Couldn't find me in the node map
我被告知的解决方案是更改此源中的代码:
appscale/AppController/lib/helperfunctions.rb
并查找self.local_ip()
并更改为:
def self.local_ip()
return "127.0.0.1"
end
但是当我跑步时
./appscale-run-instances --ips ips.yaml
我不确定,但它只是继续说:
"Please wait for the controller to finish pre-processing tasks."
已经有几分钟了。
所以我决定终止它,这就是我得到的:
"...common_functions.rb:399:in 'sleep_unti_port_is_open"
在这种情况下,我似乎需要打开一个端口,我在 Ubuntu 中运行 AppScale,我应该在我的服务器中打开哪个端口?
这是完整的命令行:
./appscale-run-instances --ips ips.yaml
About to start AppScale over a non-cloud environment.
Head node successfully created at 127.0.0.1.
It is now starting up cassandra via the command line arguments given.
Generating certificate and private key.
Starting server at 127.0.0.1
Please wait for the controller to finish pre-processing tasks.
^C./../lib/../lib/common_functions.rb:399:in sleep': Interrupt
from ./../lib/../lib/common_functions.rb:399:in 'sleep_until_port_is_open'
from ./../lib/../lib/common_functions.rb:397:in 'loop'
from ./../lib/../lib/common_functions.rb:397:in 'sleep_until_port_is_open'
from ./../lib/../lib/common_functions.rb:1359:in 'start_appcontroller'
from /usr/lib/ruby/1.8/timeout.rb:62:in ttimeout.
from ./../lib/../lib/common_functions.rb:1351:in 'start_appcontroller'
from ./../lib/../lib/common_functions.rb:548:in 'start_head_node'
from ./../lib/appscale_tools.rb:284:in trun_instances'
from ./appscale-run-instances:14