我使用--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
是否可能遗漏了某些别名?
答案 0 :(得分:0)
我已经弄明白了!我目前正在将此应用程序与New Relic集成,我错误地设置了JAVA_OPTS_EXT
变量。正确的形式是
JAVA_OPTS_EXT=-javaagent:"/var/lib/openshift/53aa229750044611fc0004bf/app-root/repo/newrelic/newrelic.jar"
我之前没有-javaagent
设置它。我的坏。