0

我使用该选项成功创建了一个新应用程序--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错过了一些别名?

4

1 回答 1

0

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

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

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

于 2014-06-25T02:05:25.773 回答