Issue Type: Bug Bug
Affects Versions: current
Assignee: Gregory Boissinot
Attachments: jenkins_env.txt
Components: postbuildscript
Created: 28/Dec/13 1:35 AM
Description:

While executing shell post-step, I am attempting to do a "sudo service tomcat stop", the jenkins server crashes completely and the build fails with exception below:

[workspace] $ /bin/sh -xe /tmp/hudson1433417204994586409.sh
+ sudo service tomcat stop
Stopping Tomcat JVM: Build was aborted
FATAL: null
java.lang.NullPointerException
at hudson.model.User.get(User.java:322)
at hudson.model.User.get(User.java:300)
at hudson.model.User.get(User.java:365)
at jenkins.model.CauseOfInterruption$UserInterruption.getUser(CauseOfInterruption.java:82)
at jenkins.model.CauseOfInterruption$UserInterruption.print(CauseOfInterruption.java:91)
at hudson.model.Executor.recordCauseOfInterruption(Executor.java:189)
at hudson.model.Run.execute(Run.java:1695)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)

On my ci box tomcat is running as a service as the tomcat user. Running "sudo service tomcat start/stop" works fine from the command prompt. I need to issue the same commands from within jenkins build.

This is a new install of v1.544, I'm running on 64-bit Amazon Linux (Centos/RedHat) with plenty of memory and storage. Jenkins is configured as a service and started stopped in the same way "sudo service jenkins start". There are no other stack traces or errors that I can identify in the jenkins log in /etc/sysconfig or in /var/log/messages.

Environment: See attached
Project: Jenkins
Priority: Blocker Blocker
Reporter: Vard Lott
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to