【问题标题】:Running Single instance AppScale in a virtual machine在虚拟机中运行单实例 AppScale
【发布时间】:2012-08-31 07:40:40
【问题描述】:

我试图在安装在 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 

【问题讨论】:

  • 嗯,堆栈跟踪中是否还有其他内容显示sleep_until_port_is_open? AppScale 正在等待特定端口打开,但它应该为您管理端口(因此在这种情况下,它正在等待由特定端口标识的服务启动)。
  • 这里是完整的命令行:pastebin.com/heGdKP39

标签: java appscale


【解决方案1】:

使用预构建的 Appscale 映像 here 或按照此处列出的步骤 https://github.com/AppScale/appscale/wiki/Virtualized-Cluster 将解决此问题。

它还有构建脚本:

$ sudo su
# cd /root
# wget -O - http://bootstrap.appscale.com | sh

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-29
    • 1970-01-01
    • 2013-06-15
    • 1970-01-01
    相关资源
    最近更新 更多