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

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/542a0e86-c67f-4a66-87e0-7d835607930e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to