Workspaces created with "@" in the name

617 views
Skip to first unread message

Matthew Hamilton

unread,
Aug 17, 2015, 6:07:18 PM8/17/15
to Jenkins Users
I am having an issue where one of my maven build jobs is being run from a new workspace that has @2 appended to the name:

drwxrwxr-x  6 wasadmin wasadm 4096 Aug 17 16:01 Common-jboss-build-InboundWebServicesOracleEDWDB
drwxrwxr-x  6 wasadmin wasadm 4096 Aug 17 16:05 Common-jboss-build-InboundWebServicesOracleEDWDB@2

I tried wiping out both workspaces yet it still creates the second workspace and when the build goes to archive the artifacts it logs an exception, even though the resultant artifact is archived with the build.

[EnvInject] - Loading node environment variables.
Building remotely on Common in workspace /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2
Checking out a fresh workspace because there's no workspace at /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2
Cleaning local Directory .
....
....
[JENKINS] Archiving /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2/pom.xml to com.centene.mms.trucare/InboundWebServicesOracleEDWDB/0.0.1-SNAPSHOT/InboundWebServicesOracleEDWDB-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2/target/InboundWebServicesOracleEDWDB.war to com.centene.mms.trucare/InboundWebServicesOracleEDWDB/0.0.1-SNAPSHOT/InboundWebServicesOracleEDWDB-0.0.1-SNAPSHOT.war
ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
java.lang.NullPointerException
	at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
	at java.util.StringTokenizer.<init>(StringTokenizer.java:219)
	at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326)
	at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175)
	at hudson.tasks.MailSender.getMail(MailSender.java:166)
	at hudson.tasks.MailSender.execute(MailSender.java:100)
	at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56)
	at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565)
	at hudson.model.Run.execute(Run.java:1670)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)
project=hudson.maven.MavenModuleSet@5777e6c[Common-jboss-build-InboundWebServicesOracleEDWDB]
project.getModules()=[hudson.maven.MavenModule@7bc70b96[Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@7bc70b96[Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][relativePath:]
FATAL: null
java.lang.NullPointerException
	at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
	at java.util.StringTokenizer.<init>(StringTokenizer.java:219)
	at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326)
	at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175)
	at hudson.tasks.MailSender.getMail(MailSender.java:166)
	at hudson.tasks.MailSender.execute(MailSender.java:100)
	at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56)
	at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565)
	at hudson.model.Run.execute(Run.java:1670)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)



I am wondering what is causing the Jenkins to create the extra workspace with the "@" in the name.

Looking at the job config history, it looks like the user SYSTEM made a configuration change to set the Throttle concurrent build plugin to have the value 1 for configVersion.  Is this what is or was causing this secondary workspace to be created?  Also I am trying to figure out why the system user is listed as the one making some of these changes.  Even with this no longer being defined in the job, it is now building with the workspace that has the "@2" appended to the name.

Thanks.

We are running an older version of Jenkins (1.548) and we do have plans in place to get our version up to one of the more recent versions, we just have to make sure that since there are at least two major updates with regards to Jenkins (java version and another that would be difficult to backout from easily) that we are going to have to go about it in at least 2-3 phases.

Thanks
Matthew

Christopher Orr

unread,
Aug 17, 2015, 6:25:32 PM8/17/15
to jenkins...@googlegroups.com
I'd normally say that's caused by having Concurrent Builds enabled, but
a quick search throws up this, which appears to have been fixed in the
1.565.1 LTS release (at least):
https://issues.jenkins-ci.org/browse/JENKINS-21622


On 18/08/15 00:07, Matthew Hamilton wrote:
> I am having an issue where one of my maven build jobs is being run from
> a new workspace that has @2 appended to the name:
>
> drwxrwxr-x 6 wasadmin wasadm 4096 Aug 17 16:01
> Common-jboss-build-InboundWebServicesOracleEDWDB
> drwxrwxr-x 6 wasadmin wasadm 4096 Aug 17 16:05
> Common-jboss-build-InboundWebServicesOracleEDWDB@2
>
> I tried wiping out both workspaces yet it still creates the second
> workspace and when the build goes to archive the artifacts it logs an
> exception, even though the resultant artifact is archived with the build.
>
> [EnvInject] - Loading node environment variables.
> Building remotely on Common <http://jenkins.centene.com/jenkins/computer/CenteneCommon> in workspace /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2
> Checking out a fresh workspace because there's no workspace at /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2
> Cleaning local Directory .
>
> ....
> ....
>
> [JENKINS] Archiving /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2/pom.xml to com.centene.mms.trucare/InboundWebServicesOracleEDWDB/0.0.1-SNAPSHOT/InboundWebServicesOracleEDWDB-0.0.1-SNAPSHOT.pom
> [JENKINS] Archiving /opt/projects/jenkins/workspace/Common-jboss-build-InboundWebServicesOracleEDWDB@2/target/InboundWebServicesOracleEDWDB.war to com.centene.mms.trucare/InboundWebServicesOracleEDWDB/0.0.1-SNAPSHOT/InboundWebServicesOracleEDWDB-0.0.1-SNAPSHOT.war
> ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
> java.lang.NullPointerException
> <http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException> at java.util.StringTokenizer.<init>(StringTokenizer.java:182) <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
> at java.util.StringTokenizer.<init>(StringTokenizer.java:219) <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
> at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMail&entity=method>
> at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMail&entity=method>
> at hudson.tasks.MailSender.getMail(MailSender.java:166) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMail&entity=method>
> at hudson.tasks.MailSender.execute(MailSender.java:100) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.execute&entity=method>
> at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.end&entity=method>
> at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.end&entity=method>
> at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun&entity=method>
> at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
> at hudson.model.Run.execute(Run.java:1670) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
> at hudson.model.ResourceController.execute(ResourceController.java:88) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
> at hudson.model.Executor.run(Executor.java:231) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
> project=hudson.maven.MavenModuleSet@5777e6c[Common-jboss-build-InboundWebServicesOracleEDWDB]
> project.getModules()=[hudson.maven.MavenModule@7bc70b96[Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][relativePath:]]
> project.getRootModule()=hudson.maven.MavenModule@7bc70b96[Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][Common-jboss-build-InboundWebServicesOracleEDWDB/com.centene.mms.trucare:InboundWebServicesOracleEDWDB][relativePath:]
> FATAL: null
> java.lang.NullPointerException
> <http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException> at java.util.StringTokenizer.<init>(StringTokenizer.java:182) <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
> at java.util.StringTokenizer.<init>(StringTokenizer.java:219) <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
> at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMail&entity=method>
> at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMail&entity=method>
> at hudson.tasks.MailSender.getMail(MailSender.java:166) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMail&entity=method>
> at hudson.tasks.MailSender.execute(MailSender.java:100) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.execute&entity=method>
> at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.end&entity=method>
> at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.end&entity=method>
> at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun&entity=method>
> at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
> at hudson.model.Run.execute(Run.java:1670) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
> at hudson.model.ResourceController.execute(ResourceController.java:88) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
> at hudson.model.Executor.run(Executor.java:231) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
>
>
>
>
> I am wondering what is causing the Jenkins to create the extra workspace with the "@" in the name.
>
>
> Looking at the job config history, it looks like the user *SYSTEM* made a configuration change to set the Throttle concurrent build plugin to have the value 1 for configVersion. Is this what is or was causing this secondary workspace to be created? Also I am trying to figure out why the system user is listed as the one making some of these changes. Even with this no longer being defined in the job, it is now building with the workspace that has the "@2" appended to the name.
>
>
> Thanks.
>
>
> We are running an older version of Jenkins (1.548) and we do have plans in place to get our version up to one of the more recent versions, we just have to make sure that since there are at least two major updates with regards to Jenkins (java version and another that would be difficult to backout from easily) that we are going to have to go about it in at least 2-3 phases.
>
>
> Thanks
>
> Matthew
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/12f23899-5bfd-427e-a0b2-4bfdcf6a1f7f%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/12f23899-5bfd-427e-a0b2-4bfdcf6a1f7f%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages