Bug 865754 - Jenkins build failed for Spring Framework app for missing jboss.pid.
Summary: Jenkins build failed for Spring Framework app for missing jboss.pid.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-12 10:30 UTC by Mengjiao Gao
Modified: 2015-05-15 02:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-07 22:53:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Jenkins console output--failed of kitchensink (9.31 KB, application/octet-stream)
2012-10-12 10:30 UTC, Mengjiao Gao
no flags Details

Description Mengjiao Gao 2012-10-12 10:30:14 UTC
Created attachment 625902 [details]
Jenkins console output--failed of kitchensink

Description of problem:
Failed to build Spring apps, with jenkins console output as follows:
-----------------------------------------------------------------------
......
cat: /var/lib/openshift/ee1a045aed354f4d90d61868dc303b9b//jbosseap-6.0/run/jboss.pid: No such file or directory
Failed to stop jbosseap-6.0
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
-----------------------------------------------------------------------

The console output of failed kitchensink app is:
-----------------------------------------------------------------------
......
cat: /var/lib/openshift/85814abfb333494c852723dce7bcb1bf//jbossas-7/run/jboss.pid: No such file or directory
Failed to stop jbossas-7
Build step 'Execute shell' marked build as failure
Archiving artifacts
ERROR: Failed to archive artifacts: deployments/**
hudson.util.IOException2: java.io.IOException: Failed to readlink jbossas-7/ci/jenkins/workspace/kit-build/deployments/ROOT.war.undeployed error=2 No such file or directory
	at hudson.FilePath.copyRecursiveTo(FilePath.java:1745)
	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656)
	at hudson.model.Build$RunnerImpl.post2(Build.java:162)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625)
	at hudson.model.Run.run(Run.java:1435)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:238)
Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Failed to readlink jbossas-7/ci/jenkins/workspace/kit-build/deployments/ROOT.war.undeployed error=2 No such file or directory
	at hudson.remoting.Channel$2.adapt(Channel.java:714)
	at hudson.remoting.Channel$2.adapt(Channel.java:709)
	at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
	at hudson.FilePath.copyRecursiveTo(FilePath.java:1743)
	... 11 more
Caused by: java.io.IOException: Failed to readlink jbossas-7/ci/jenkins/workspace/kit-build/deployments/ROOT.war.undeployed error=2 No such file or directory
	at hudson.Util.resolveSymlink(Util.java:1053)
	at hudson.Util.resolveSymlink(Util.java:1030)
	at hudson.util.DirScanner$Glob.scan(DirScanner.java:107)
	at hudson.FilePath.writeToTar(FilePath.java:1781)
	at hudson.FilePath.access$1000(FilePath.java:166)
	at hudson.FilePath$36.invoke(FilePath.java:1722)
	at hudson.FilePath$36.invoke(FilePath.java:1719)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:287)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)
Finished: FAILURE
-----------------------------------------------------------------------

Seems the jboss.pid was lost in these apps

Version-Release number of selected component (if applicable):
devenv_2318

How reproducible:
always

Steps to Reproduce:
1.Create a spring or kitchensink app on website.
2.Enable Jenkins to it.
3.Build Jenkins of the app.
  
Actual results:
Build failed with Jenkins output as attachment show.

Expected results:
Build successfully.

Additional info:

Comment 1 Mengjiao Gao 2012-10-12 10:32:13 UTC
When used CLI to create the quickstarts as belows, the jenkins build will success.

1.rhc app create -a spring -t jbosseap-6.0
2.cd spring
  git remote add upstream -m master git://github.com/openshift/spring-eap6-quickstart.git
  git pull -s recursive -X theirs upstream master
3.git rm src/main/webapp/index.html
  git commit -m 'Removed default index.html'
4.git push

Comment 2 Mengjiao Gao 2012-10-15 06:42:45 UTC
Tested this issue on devenv_2327, the kitchensink app can be build successfully now. But the spring app can still not be built successfully with the same error as the description above.

Comment 4 Dan McPherson 2013-07-22 20:17:53 UTC
I just tested sprint with success.

Comment 5 Wei Sun 2013-07-23 02:46:31 UTC
Verified on devenv_3539
The kitchensink app and spring app can be build successfully now.


Note You need to log in before you can comment on or make changes to this bug.