org.codehaus.plexus.archiver.ArchiverException: Error while expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip

Jenkins JIRA | Andrew Campbell | 1 year ago
  1. 0

    If you enable the option to launch a unique tunnel per build, then you will receive a lock error when trying to expand Sauce Connect on the second and following builds if they are run on the same node as the first build. {code} FATAL: Error while expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip org.codehaus.plexus.archiver.ArchiverException: Error while expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:158) at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:120) at com.saucelabs.ci.sauceconnect.SauceConnectFourManager.unzipFile(SauceConnectFourManager.java:289) at com.saucelabs.ci.sauceconnect.SauceConnectFourManager.extractZipFile(SauceConnectFourManager.java:254) at com.saucelabs.ci.sauceconnect.SauceConnectFourManager.createProcessBuilder(SauceConnectFourManager.java:198) at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:299) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:913) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:348) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.io.IOException: Negative seek offset at java.io.RandomAccessFile.seek(RandomAccessFile.java:538) at org.codehaus.plexus.archiver.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:397) at org.codehaus.plexus.archiver.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:269) at org.codehaus.plexus.archiver.zip.ZipFile.<init>(ZipFile.java:151) at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:138) ... 13 more Finished: FAILURE {code} If you are not using that option but still launch multiple builds on the same node, then Sauce Connect will fail to start with either a pid file collision or port collison. What I think should happen is that the 'launch unique tunnel per build' option should be on if using a multi configuration project and the zip collision just needs to be corrected.

    Jenkins JIRA | 1 year ago | Andrew Campbell
    org.codehaus.plexus.archiver.ArchiverException: Error while expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip
  2. 0

    If you enable the option to launch a unique tunnel per build, then you will receive a lock error when trying to expand Sauce Connect on the second and following builds if they are run on the same node as the first build. {code} FATAL: Error while expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip org.codehaus.plexus.archiver.ArchiverException: Error while expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:158) at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:120) at com.saucelabs.ci.sauceconnect.SauceConnectFourManager.unzipFile(SauceConnectFourManager.java:289) at com.saucelabs.ci.sauceconnect.SauceConnectFourManager.extractZipFile(SauceConnectFourManager.java:254) at com.saucelabs.ci.sauceconnect.SauceConnectFourManager.createProcessBuilder(SauceConnectFourManager.java:198) at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:299) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:913) at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:348) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.io.IOException: Negative seek offset at java.io.RandomAccessFile.seek(RandomAccessFile.java:538) at org.codehaus.plexus.archiver.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:397) at org.codehaus.plexus.archiver.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:269) at org.codehaus.plexus.archiver.zip.ZipFile.<init>(ZipFile.java:151) at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:138) ... 13 more Finished: FAILURE {code} If you are not using that option but still launch multiple builds on the same node, then Sauce Connect will fail to start with either a pid file collision or port collison. What I think should happen is that the 'launch unique tunnel per build' option should be on if using a multi configuration project and the zip collision just needs to be corrected.

    Jenkins JIRA | 1 year ago | Andrew Campbell
    org.codehaus.plexus.archiver.ArchiverException: Error while expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip
  3. 0

    mvn clean install causes ArchiverException

    Stack Overflow | 2 years ago | sree
    org.codehaus.plexus.archiver.ArchiverException: Error while expanding /home/dev237/.m2/repository/org/neo4j/spatial/osm-test-data/20100819/osm-test-data-20100819.jar
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java IO Exception: Negative seek offset

    Stack Overflow | 2 years ago
    java.io.IOException: Negative seek offset
  6. 0

    [JIRA] [sauce-ondemand-plugin] (JENKINS-31668) Matrix/Multiconfiguration mode fails when using Sauce Connect

    Google Groups | 1 year ago | acampbell@saucelabs.com (JIRA)
    org.codehaus.plexus.archiver.ArchiverException: Error <span class="code-keyword" style="color: #000091">while</span> expanding /Users/Shared/Jenkins/sc-4.3.12-osx.zip
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.io.IOException

    Negative seek offset

    at java.io.RandomAccessFile.seek()
  2. Java RT
    RandomAccessFile.seek
    1. java.io.RandomAccessFile.seek(RandomAccessFile.java:538)
    1 frame
  3. Plexus Archiver Component
    AbstractUnArchiver.extract
    1. org.codehaus.plexus.archiver.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:397)
    2. org.codehaus.plexus.archiver.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:269)
    3. org.codehaus.plexus.archiver.zip.ZipFile.<init>(ZipFile.java:151)
    4. org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:138)
    5. org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:120)
    5 frames
  4. com.saucelabs.ci
    AbstractSauceTunnelManager.openConnection
    1. com.saucelabs.ci.sauceconnect.SauceConnectFourManager.unzipFile(SauceConnectFourManager.java:289)
    2. com.saucelabs.ci.sauceconnect.SauceConnectFourManager.extractZipFile(SauceConnectFourManager.java:254)
    3. com.saucelabs.ci.sauceconnect.SauceConnectFourManager.createProcessBuilder(SauceConnectFourManager.java:198)
    4. com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:299)
    4 frames
  5. hudson.plugins.sauce_ondemand
    SauceOnDemandBuildWrapper.setUp
    1. hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:913)
    2. hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:348)
    2 frames
  6. Hudson
    Executor.run
    1. hudson.model.Build$BuildExecution.doRun(Build.java:156)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    3. hudson.model.Run.execute(Run.java:1741)
    4. hudson.matrix.MatrixRun.run(MatrixRun.java:146)
    5. hudson.model.ResourceController.execute(ResourceController.java:98)
    6. hudson.model.Executor.run(Executor.java:408)
    6 frames