java.util.zip.ZipException: error in opening zip file

Jenkins JIRA | Martin Smith | 1 year ago
  1. 0

    I believe this bug affects any plugins, so I've marked it major. It seems be https://issues.jenkins-ci.org/browse/JENKINS-12514 but I'm not 100% sure so I didn't want to re-open. Basically, I'm unable to upgrade ssh-credentials-plugin. Because I use chef, this means chef tries and restarts Jenkins repeatedly, making the service unusable. Steps to reproduce: # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ list-plugins | grep ssh-credentials ssh-credentials SSH Credentials Plugin 1.10 (1.11) # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ install-plugin http://updates.jenkins-ci.org/latest/ssh-credentials.hpi Installing a plugin from http://updates.jenkins-ci.org/latest/ssh-credentials.hpi # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ list-plugins | grep ssh-credentials ssh-credentials SSH Credentials Plugin 1.10 (1.11) # service jenkins restart * Restarting Jenkins Continuous Integration Server jenkins [ OK ] # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ list-plugins | grep ssh-credentials ssh-credentials SSH Credentials Plugin 1.10 (1.11) (expected version 1.11). Other potentially useful information: # find /var/lib/jenkins -type f -iname "*ssh-credentials*" /var/lib/jenkins/plugins/ssh-credentials.jpi # cp /var/lib/jenkins/plugins/ssh-credentials.jpi /tmp/ # unzip /tmp/ssh-credentials.jpi # grep -i version META-INF/MANIFEST.MF Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Implementation-Version: 1.10 Compatible-Since-Version: 1.0 Plugin-Version: 1.10 Hudson-Version: 1.532.2 Jenkins-Version: 1.532.2 # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ install-plugin http://updates.jenkins-ci.org/latest/ssh-credentials.hpi -deploy Installing a plugin from http://updates.jenkins-ci.org/latest/ssh-credentials.hpi java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.jar.JarFile.<init>(JarFile.java:154) at java.util.jar.JarFile.<init>(JarFile.java:133) at hudson.ClassicPluginStrategy.getShortName(ClassicPluginStrategy.java:107) at hudson.PluginManager.dynamicLoad(PluginManager.java:439) at hudson.cli.InstallPluginCommand.run(InstallPluginCommand.java:105) at hudson.cli.CLICommand.main(CLICommand.java:237) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) (Downloading and unzipping manually works great.)

    Jenkins JIRA | 1 year ago | Martin Smith
    java.util.zip.ZipException: error in opening zip file
  2. 0

    I believe this bug affects any plugins, so I've marked it major. It seems be https://issues.jenkins-ci.org/browse/JENKINS-12514 but I'm not 100% sure so I didn't want to re-open. Basically, I'm unable to upgrade ssh-credentials-plugin. Because I use chef, this means chef tries and restarts Jenkins repeatedly, making the service unusable. Steps to reproduce: # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ list-plugins | grep ssh-credentials ssh-credentials SSH Credentials Plugin 1.10 (1.11) # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ install-plugin http://updates.jenkins-ci.org/latest/ssh-credentials.hpi Installing a plugin from http://updates.jenkins-ci.org/latest/ssh-credentials.hpi # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ list-plugins | grep ssh-credentials ssh-credentials SSH Credentials Plugin 1.10 (1.11) # service jenkins restart * Restarting Jenkins Continuous Integration Server jenkins [ OK ] # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ list-plugins | grep ssh-credentials ssh-credentials SSH Credentials Plugin 1.10 (1.11) (expected version 1.11). Other potentially useful information: # find /var/lib/jenkins -type f -iname "*ssh-credentials*" /var/lib/jenkins/plugins/ssh-credentials.jpi # cp /var/lib/jenkins/plugins/ssh-credentials.jpi /tmp/ # unzip /tmp/ssh-credentials.jpi # grep -i version META-INF/MANIFEST.MF Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Implementation-Version: 1.10 Compatible-Since-Version: 1.0 Plugin-Version: 1.10 Hudson-Version: 1.532.2 Jenkins-Version: 1.532.2 # java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ install-plugin http://updates.jenkins-ci.org/latest/ssh-credentials.hpi -deploy Installing a plugin from http://updates.jenkins-ci.org/latest/ssh-credentials.hpi java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.jar.JarFile.<init>(JarFile.java:154) at java.util.jar.JarFile.<init>(JarFile.java:133) at hudson.ClassicPluginStrategy.getShortName(ClassicPluginStrategy.java:107) at hudson.PluginManager.dynamicLoad(PluginManager.java:439) at hudson.cli.InstallPluginCommand.run(InstallPluginCommand.java:105) at hudson.cli.CLICommand.main(CLICommand.java:237) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) (Downloading and unzipping manually works great.)

    Jenkins JIRA | 1 year ago | Martin Smith
    java.util.zip.ZipException: error in opening zip file
  3. 0

    Not able to start appium session due to unable to install apk to mobile device

    GitHub | 2 years ago | priyankshah217
    java.util.zip.ZipException: error in opening zip file
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error in opening zip file

    GitHub | 2 years ago | BMukesh
    org.apache.maven.plugin.PluginDescriptorParsingException: Failed to parse plugin descriptor for org.primefaces.extensions:resources-optimizer-maven-plugin:1.2.0 (C:\Users\mukesh\.m2\repository\org\primefaces\extensions\resources-optimizer-maven-plugin\1.2.0\resources-optimizer-maven-plugin-1.2.0.jar): error in opening zip file
  6. 0

    Cannot launch sample app on appium

    Stack Overflow | 1 year ago | PyNaobie
    java.util.zip.ZipException: error in opening zip file

  1. cesarnog 291 times, last 1 month ago
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.zip.ZipException

    error in opening zip file

    at java.util.zip.ZipFile.open()
  2. Java RT
    JarFile.<init>
    1. java.util.zip.ZipFile.open(Native Method)
    2. java.util.zip.ZipFile.<init>(ZipFile.java:215)
    3. java.util.zip.ZipFile.<init>(ZipFile.java:145)
    4. java.util.jar.JarFile.<init>(JarFile.java:154)
    5. java.util.jar.JarFile.<init>(JarFile.java:133)
    5 frames
  3. Hudson
    CliManagerImpl.main
    1. hudson.ClassicPluginStrategy.getShortName(ClassicPluginStrategy.java:107)
    2. hudson.PluginManager.dynamicLoad(PluginManager.java:439)
    3. hudson.cli.InstallPluginCommand.run(InstallPluginCommand.java:105)
    4. hudson.cli.CLICommand.main(CLICommand.java:237)
    5. hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
    5 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608)
    2. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583)
    3. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542)
    4. hudson.remoting.UserRequest.perform(UserRequest.java:121)
    5. hudson.remoting.UserRequest.perform(UserRequest.java:49)
    6. hudson.remoting.Request$2.run(Request.java:326)
    7. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    7 frames
  6. Hudson
    CliManagerImpl$1.call
    1. hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
    1 frame
  7. Hudson :: Remoting Layer
    CallableDecoratorList$1.call
    1. hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18)
    2. hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
    2 frames
  8. jenkins.util
    ContextResettingExecutorService$2.call
    1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    1 frame
  9. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames