• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • 1.537 on Ubuntu 12.04.3 LTS

      May be related to JENKINS-19752
      One of our jobs has a directory in its workspace containing about 30,000 files (small files < 100KB). A zip-download of this directory results in a zip file (size 12MB) that cannot be unzipped:
      "End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive."

      Zipping this directory at the command prompt results in a valid, unzippable file with size 42MB.

      While analyzing this, I tried downloading the Jenkins created zip file a few times using wget and the browser. Most of the time wget aborted with error 500. Trying the download in the browser sometimes resulted in an IO error (Stack trace attached).

      While I was trying around, another job was started and failed with "Too many open files".

      So it seems to me that the zip download opens all the files when adding them to the zip but apparently they are not closed.

          [JENKINS-20345] ZIP file download generates corrupt zip file

          Lars created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Labels New: lts-candidate
          Jesse Glick made changes -
          Labels Original: lts-candidate New: leak lts-candidate
          Oliver Gondža made changes -
          Labels Original: leak lts-candidate New: 1.532.3-fixed leak
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 151869 ] New: JNJira + In-Review [ 194123 ]

            Unassigned Unassigned
            wolterhis Lars
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: