2012-08-31 24 views
1

我試圖在安裝在VMware箱單實例節點運行AppScale並在同一服務器上的虛擬機中運行的appscale工具和得到這個錯誤:在虛擬機中運行的單實例AppScale

[email protected]:~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 
+0

嗯,還有什麼在堆棧跟蹤在那裏說:'sleep_until_port_is_open'? AppScale正在等待打開一個特定的端口,但它應該爲您管理端口(所以在這種情況下,它正在等待服務出現,由特定端口識別)。 –

+0

下面是完整的命令行:http://pastebin.com/heGdKP39 – xybrek

回答