Error: Invalid or corrupt jarfile jenkins.war

3,252 views
Skip to first unread message

Meenal

unread,
Mar 20, 2018, 8:12:29 AM3/20/18
to Jenkins Users
Hello All,

We are facing a following issue while we run the war file on nonstop machine:

java -jar jenkins.war
Error: Invalid or corrupt jarfile jenkins.war

if we run with a following work around then we see an exception.
$JAVA_HOME/bin/java -cp ./jenkins.war Main
Exception is:

java.io.IOException: No suitable implementation found: os.name=NONSTOP_KERNEL

os.arch=x86_64N sun.arch.data.model=32

Generic java package was downloaded from - https://jenkins.io/download/

Could you please help/suggest any solution for both issues.


Regards,
Minal

Baptiste Mathus

unread,
Mar 20, 2018, 8:15:02 AM3/20/18
to jenkins...@googlegroups.com
Well, seems like it's corrupted, as it says ? :)

What is the version of this Jenkins war?

What does "sha256 sum jenkins.war" output?

Thank you

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/809520c5-3dbf-4395-84ff-cd52838eeb81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Meenal

unread,
Mar 20, 2018, 8:36:40 AM3/20/18
to Jenkins Users
Following is the hash:

sha256sum jenkins.war
014f669f32bc6e925e926e260503670b32662f006799b133a031a70a794c8a14 *jenkins.war


Thank you


On Tuesday, March 20, 2018 at 5:45:02 PM UTC+5:30, Baptiste Mathus wrote:
Well, seems like it's corrupted, as it says ? :)

What is the version of this Jenkins war?

What does "sha256 sum jenkins.war" output?

Thank you
2018-03-20 13:11 GMT+01:00 Meenal <minal.de...@gmail.com>:
Hello All,

We are facing a following issue while we run the war file on nonstop machine:

java -jar jenkins.war
Error: Invalid or corrupt jarfile jenkins.war

if we run with a following work around then we see an exception.
$JAVA_HOME/bin/java -cp ./jenkins.war Main
Exception is:

java.io.IOException: No suitable implementation found: os.name=NONSTOP_KERNEL

os.arch=x86_64N sun.arch.data.model=32

Generic java package was downloaded from - https://jenkins.io/download/

Could you please help/suggest any solution for both issues.


Regards,
Minal

--
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.

Daniel Beck

unread,
Mar 20, 2018, 9:29:25 AM3/20/18
to jenkins...@googlegroups.com

> On 20. Mar 2018, at 13:36, Meenal <minal.de...@gmail.com> wrote:
>
> Following is the hash:
>
> sha256sum jenkins.war
> 014f669f32bc6e925e926e260503670b32662f006799b133a031a70a794c8a14 *jenkins.war
>
>
> Thank you

Your download is corrupted. Try again until it works.

$ shasum -a 256 Jenkins/wars/jenkins-2.107.1.war
cec74c80190ed1f6ce55d705d2f649ddb2eaf8aba3ae26796152921d46b31280 Jenkins/wars/jenkins-2.107.1.war

$ shasum -a 256 Jenkins/wars/jenkins-2.112.war
085f597edeb0d49d54d7653f3742ba31ed72b8a1a2b053d2eb23fd806c6a5393 Jenkins/wars/jenkins-2.112.war

Mark Waite

unread,
Mar 20, 2018, 11:03:27 AM3/20/18
to jenkins...@googlegroups.com
I think you may want to reconsider running the Jenkins server on nonstop.  If you need to build on nonstop, you need an agent on nonstop.  

You could host the server on a more common operating system (Linux is my first choice, Windows a second choice).  You'll be less likely to surprised by unexpected oddities from the nonstop OS if you limit your use to running the agent and builds, rather than also running the server.

Mark Waite

--
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.

Meenal

unread,
Mar 22, 2018, 5:39:50 AM3/22/18
to Jenkins Users
yes, we are looking for Jenkins server running on nonstop. Do we need to run agent.jar on nonstop before running jenkins.jar ? if yes, where can I find agent?

Thank you

Meenal

unread,
Mar 22, 2018, 5:58:24 AM3/22/18
to Jenkins Users
I have downloaded fresh and the following is the  hash:
$JAVA_HOME/bin/java SHACheckSumExample
Hex format : cec74c80190ed1f6ce55d705d2f649ddb2eaf8aba3ae26796152921d46b31280

As I said earlier work around [$JAVA_HOME/bin/java -cp ./jenkins.war Main] works however if Main is not specified it says file is corrupted. This file is readable though.

Thank you.

Mark Waite

unread,
Mar 22, 2018, 11:26:55 AM3/22/18
to jenkins...@googlegroups.com
The Jenkins agent seems much more likely to run successfully on the Non-stop operating system than the Jenkins master.  It has a much smaller footprint and fewer dependencies.

Configure a Jenkins server on a more common operating system (like Linux or Windows) and then use the Jenkins "ssh agent plugin" to launch an agent on your nonstop machine.

Considering the cost per CPU cycle of a nonstop machine, I would think you'd want to do that anyway.

Mark Waite

--
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.

Meenal

unread,
Mar 27, 2018, 12:17:06 PM3/27/18
to Jenkins Users
Thank you Mark.
In case of Jenkins master on Non-stop os, do we need to consider building jenkins jar file a fresh?

Regards,
Meenal

Gustavo Martinez

unread,
Jul 25, 2018, 8:04:04 AM7/25/18
to Jenkins Users

Hello Meenal,

        I'm trying to install Jenkins on a NoNStop machine too.

Facing problems with SHA256 checksum:

INFO: Jetty shutdown successfully
java.lang.SecurityException: SHA-256 digest error for WEB-INF/detached-plugins/windows-slaves.hpi
    at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:218)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:241)
    at java.util.jar.JarVerifier.update(JarVerifier.java:228)
    at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:482)
    at java.io.InputStream.read(InputStream.java:101)
    at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:282)
    at winstone.HostConfiguration.<init>(HostConfiguration.java:81)
    at winstone.HostGroup.initHost(HostGroup.java:66)
    at winstone.HostGroup.<init>(HostGroup.java:45)
    at winstone.Launcher.<init>(Launcher.java:145)
    at winstone.Launcher.main(Launcher.java:354)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DN01022elegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at Main._main(Main.java:312)
    at Main.main(Main.java:136)

Were you finally able to run it on NonStop?

I have also downloaded the generic package from the jenkins site.

Regards,
Gustavo.

Randall Becker

unread,
Aug 17, 2018, 9:31:44 AM8/17/18
to Jenkins Users
Hi Gustavo,

I managed to get Jenkins 2.238 to run under NSSJava 1.8_80 using the following command:

    java -cp ./jenkins.war Main

This seems to bypass some limit restriction in the platform JVM.

Cheers,
Randall

Randall Becker

unread,
Aug 17, 2018, 10:15:06 AM8/17/18
to Jenkins Users
Sorry, should have read: 2.138 not 2.238.
Reply all
Reply to author
Forward
0 new messages