添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Description of problem:
Create a jbossas-7 app and deploy a quick start example app, like this one: https://github.com/openshift/jbossas-mongoDB-quickstart. Get "Compilation Error" during git push. 
Version-Release number of selected component (if applicable):
INT(devenv_2417)
How reproducible:
Always
Steps to Reproduce:
1.Create a jbossas-7 app
$ rhc app create testmongo jbossas-7
2.Add mongdb to it
$ rhc app cartridge add -a testmongo -c mongodb-2.0
3.Deploy the example app
$ cd testmongo
$ git remote add upstream -m dev/typeless git://github.com/openshift/jbossas-mongoDB-quickstart.git
$ git pull -s recursive -X theirs upstream dev/typeless
$ git push
Actual results:
<------------------output--------------------->
remote: Downloading: http://mirror1.ops.rhcloud.com:80/nexus/content/groups/public/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.pom
remote: [WARNING] Checksum validation failed, expected <!DOCTYPE but is 0c6442b638fc04b534f6259a9bfd7cb0d18b0b7a for http://mirror1.ops.rhcloud.com:80/nexus/content/groups/public/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.pom
remote: [WARNING] Checksum validation failed, expected <!DOCTYPE but is 0c6442b638fc04b534f6259a9bfd7cb0d18b0b7a for http://mirror1.ops.rhcloud.com:80/nexus/content/groups/public/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.pom
......
......
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] COMPILATION ERROR : 
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] error: error reading /var/lib/openshift/34f7f5fd88ff4e4e8286c60f15f2a378/.m2/repository/org/jboss/spec/javax/enterprise/deploy/jboss-jad-api_1.2_spec/1.0.0.Final/jboss-jad-api_1.2_spec-1.0.0.Final.jar; error in opening zip file
remote: [ERROR] error: error reading /var/lib/openshift/34f7f5fd88ff4e4e8286c60f15f2a378/.m2/repository/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.jar; error in opening zip file
remote: [INFO] 2 errors 
remote: [INFO] -------------------------------------------------------------
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] BUILD FAILURE
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 4.493s
remote: [INFO] Finished at: Thu Nov 01 06:33:00 EDT 2012
remote: [INFO] Final Memory: 6M/15M
remote: [INFO] ------------------------------------------------------------------------
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project testmongo: Compilation failure: Compilation failure:
remote: [ERROR] error: error reading /var/lib/openshift/34f7f5fd88ff4e4e8286c60f15f2a378/.m2/repository/org/jboss/spec/javax/enterprise/deploy/jboss-jad-api_1.2_spec/1.0.0.Final/jboss-jad-api_1.2_spec-1.0.0.Final.jar; error in opening zip file
remote: [ERROR] error: error reading /var/lib/openshift/34f7f5fd88ff4e4e8286c60f15f2a378/.m2/repository/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.jar; error in opening zip file
remote: [ERROR] -> [Help 1]
remote: [ERROR] 
remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote: [ERROR] 
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
remote: Running .openshift/action_hooks/build
<------------------------------------------------>
Expected results:
The app should be deployed successfully.
Additional info:
Recreated this in my devenv.  I experienced this failure only for cdi-api-1.0-SP4.jar.  Interestingly, when I download the POM and compute the checksum manually (sha1sum cdi-api-1.0-SP4.pom), it matches the checksum present on the server.
It looks to me like the problem here is a bad redirect to HTTPS when fetching the checksum:
$ curl -v --insecure http://mirror1.ops.rhcloud.com/nexus/content/groups/public/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.pom.sha1                                                                          
* About to connect() to mirror1.ops.rhcloud.com port 80 (#0)
*   Trying 174.129.133.118...
* connected
* Connected to mirror1.ops.rhcloud.com (174.129.133.118) port 80 (#0)
> GET /nexus/content/groups/public/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.pom.sha1 HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.24 libssh2/1.4.1
> Host: mirror1.ops.rhcloud.com
> Accept: */*
< HTTP/1.1 302 Found
< Date: Thu, 01 Nov 2012 15:35:29 GMT
< Server: Apache/2.2.15 (Red Hat)
< Location: https://mirror1.ops.rhcloud.com/nexus/content/groups/public/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.pom.sha1
< Content-Length: 391
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://mirror1.ops.rhcloud.com/nexus/content/groups/public/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.pom.sha1">here</a>.</p>
<address>Apache/2.2.15 (Red Hat) Server at mirror1.ops.rhcloud.com Port 80</address>
</body></html>
* Closing connection #0
OK, fixed.  This was my fault.
An http configuration change I made yesterday redirected any http requests with /enterprise/ in their path to https requests.
I have fixed the configuration and this should be working again.
I apologize for this misconfiguration.