Red Hat Bugzilla – Bug 989276
OPENMEAP on OPENSHIFT install : No such file or directory
Last modified: 2015-05-14 22:24:19 EDT
Created attachment 779480 [details]
Description of problem:
Unable to install OPENMEAP over JBOSS EWS 2.0 cartridge on OPENSHIFT free trial gear
Version-Release number of selected component (if applicable):
INSTALL OPENMEAP quick start on a gear.
Steps to Reproduce:
cp: cannot stat `/var/lib/openshift/51f5c3bee0b8cd950f002e95/jbossews//webapps/ROOT.war': No such file or directory
There is an error anywhere in the installation script that throws a double slash in the installation path:
The double slash is a red herring, and this is directly related to
There's an implicit assumption in that bugfix that "ROOT.war" will always exist, but the OpenMEAP quickstart directs users to a specific URL:
ROOT.war in a successfully deployed OpenMEAP app in OpenShift is just the stuff we put in jbossews/template/src. So, it seems like simply verifying the existence of the source before copying it would be sufficient.
Also note that if you make a bare jbossews app in OpenShift and then merge in OpenMEAP code, is works fine, because post_install only runs at cartridge install time. So in order to test a fix for this, you _must_ use "--from-code".
Tested on devenv_3660, tried to create OpenMEAP application from website or using --from-code, but all met "cp: cannot stat `/var/lib/openshift/426114806412954633764864/jbossews//webapps/ROOT.war': No such file or directory " error.
It can work correct when creating it maunally from github repo, so --from-code is still not working.
Of course it's not working; the bug has not been fixed yet. I merely suggested what the fix would be.
Will verify this bug after pull request is merged.
Commit pushed to master at https://github.com/openshift/origin-server
Bug 989276 - Check for existence of ROOT.war before attempting to copy it
Test on devenv_3829 and can create OpenMEAP application successfully via web console. So verify this bug, thanks!