AWS instance - all jobs fail - FATAL: Failed to load the key: hudson.model.Job.serverCookie

163 views
Skip to first unread message

Matt Podber

unread,
Jan 16, 2015, 1:08:18 PM1/16/15
to jenkins...@googlegroups.com
We are currently setting up jenkins via scripts (ansible) and installing all necessary components, etc.

when i create a vagrant box using the scripts, everything works as expected.

i use the vagrant box to create a jenkins instance on aws using the same exact ansible scripts and everything seems to create successfully.

however, whenever i run any job on AWS instance, i get the following.

FATAL: Failed to load the key: hudson.model.Job.serverCookie
java.lang.Error: Failed to load the key: hudson.model.Job.serverCookie
	at jenkins.security.HexStringConfidentialKey.get(HexStringConfidentialKey.java:62)
	at hudson.model.Job.getCharacteristicEnvVars(Job.java:348)
	at hudson.model.Job.getEnvironment(Job.java:375)
	at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:345)
	at hudson.model.Run.getEnvironment(Run.java:2248)
	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:905)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:90)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
	at hudson.model.Build$BuildExecution.build(Build.java:199)
	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
	at hudson.model.Run.execute(Run.java:1745)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
Caused by: java.io.IOException: javax.crypto.BadPaddingException: Given final block not properly padded
	at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:115)
	at javax.crypto.CipherInputStream.read(CipherInputStream.java:233)
	at javax.crypto.CipherInputStream.read(CipherInputStream.java:209)
	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
	at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
	at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:462)
	at jenkins.security.DefaultConfidentialStore.load(DefaultConfidentialStore.java:106)
	at jenkins.security.ConfidentialKey.load(ConfidentialKey.java:47)
	at jenkins.security.HexStringConfidentialKey.get(HexStringConfidentialKey.java:51)
	... 16 more
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:966)
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)
	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
	at javax.crypto.Cipher.doFinal(Cipher.java:2004)
	at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:112)
	... 25 more

This message, and any documents attached hereto, may contain confidential or proprietary information intended only for the use of the addressee(s) named above or may contain information that is legally  privileged. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message and any copies immediately thereafter.  Thank you for your cooperation.
Reply all
Reply to author
Forward
0 new messages