Openshift:使用--from-app选项创建克隆应用程序后无法启动克隆应用程序

时间:2014-06-21 22:08:23

标签: java jboss openshift openshift-client-tools

我使用--from-app选项成功创建了一个新应用程序,但它拒绝启动。创建过程已完成,没有任何错误。

这是我执行rhc app-start mobservicebkp时得到的:

Failed to execute: 'control start' for /var/lib/openshift/53a5f2845004467500000393/jbossews

对机器执行ssh并手动运行ctl_app start jbossews --trace我得到:

An error occurred executing 'gear start' (exit code: 2)
Error message: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/53a5f2845004467500000393/jbossews

/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1344:in `block in do_control_with_directory'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1134:in `process_cartridges'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1307:in `do_control_with_directory'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1156:in `do_control'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1576:in `start_cartridge'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1468:in `block in start_gear'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:84:in `block in each_cartridge'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1140:in `block in process_cartridges'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1138:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1138:in `process_cartridges'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:82:in `each_cartridge'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1463:in `start_gear'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/v2_cart_model.rb:1472:in `start_gear'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.25.7/lib/openshift-origin-node/model/application_container.rb:477:in `start_gear'
/usr/bin/gear:481:in `block (3 levels) in <main>'
/usr/bin/gear:66:in `do_command'
/usr/bin/gear:476:in `block (2 levels) in <main>'
/opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:180:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:180:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:155:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/runner.rb:385:in `run_active_command'
/opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/runner.rb:74:in `run!'
/opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/delegates.rb:11:in `run!'
/opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/import.rb:10:in `block in <top (required)>'

create-app --from-app是否可能遗漏了某些别名?

1 个答案:

答案 0 :(得分:0)

我已经弄明白了!我目前正在将此应用程序与New Relic集成,我错误地设置了JAVA_OPTS_EXT变量。正确的形式是

JAVA_OPTS_EXT=-javaagent:"/var/lib/openshift/53aa229750044611fc0004bf/app-root/repo/newrelic/newrelic.jar"

我之前没有-javaagent设置它。我的坏。