Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23868

Use IE/Chrome/Firefox to download Jenkins artifacts has wrong size but no error reported

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • Windows server 2008 R2 (A VM). 32GB RAM, X5765 @3.07 GHz (6 processors)
      Jenkins 1.554.3; 1.565.1;

      The symptom is:
      When I download a file, e.g. the file size should be 472MB, and at the first few seconds, the progress shows 46.8/472MB and changes with size. Then suddenly the file size because 169/169MB and then finished download without error.

      Meet this issue in IE/Chrome/Firefox. Clear the load download history could resolve it for a while but may have the same issue other other download in other jobs(We have several jobs with the same artifact name)

      Run jenkins with
      <executable>C:\Program Files\Java\jre7\bin\java.exe</executable>
      <arguments>-d64 -Xrs -XX:MaxPermSize=2g -Xmx16g -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080</arguments>

        1. test.png
          test.png
          85 kB
        2. resend.jpg
          resend.jpg
          116 kB

          [JENKINS-23868] Use IE/Chrome/Firefox to download Jenkins artifacts has wrong size but no error reported

          sharon xia created issue -
          sharon xia made changes -
          Labels Original: artifact-download New: 1.554.X artifact-download

          Daniel Beck added a comment -

          Does this happen for all (large) artifacts or only specific ones? Are there any warnings or errors in the log?

          Daniel Beck added a comment - Does this happen for all (large) artifacts or only specific ones? Are there any warnings or errors in the log?
          Daniel Beck made changes -
          Affects Version/s Original: current [ 10162 ]
          Due Date Original: 2014-07-25

          sharon xia added a comment -

          it happends on all artifacts. No warning in the log

          sharon xia added a comment - it happends on all artifacts. No warning in the log

          Daniel Beck added a comment -

          What happens when you download the artifact using different tools, e.g. other browser, command line tools like wget, curl (may need authentication if Jenkins is secured, but that's possible)?

          Daniel Beck added a comment - What happens when you download the artifact using different tools, e.g. other browser, command line tools like wget, curl (may need authentication if Jenkins is secured, but that's possible)?

          sharon xia added a comment -

          It looks the same from IE/Chrome/Firefox. The download is incomplete but no error message.
          When I download use wget, I saw onetime that the download just hung there and no speed. But if I kill it and download again, it works.

          We are seeing it again. This issue is often seen when the server is in US and we download it from Shanghai office. We do not see it often when download from US.

          sharon xia added a comment - It looks the same from IE/Chrome/Firefox. The download is incomplete but no error message. When I download use wget, I saw onetime that the download just hung there and no speed. But if I kill it and download again, it works. We are seeing it again. This issue is often seen when the server is in US and we download it from Shanghai office. We do not see it often when download from US.

          Mark Waite added a comment -

          You could copy the file from Jenkins to another http server in the U.S. (preferably on the same machine), then attempt the download from the http server (instead of Jenkins). That would let you confirm that the problem is more related to network transfer than to Jenkins being involved in the transfer.

          Alternately, if the receiving machine is a Linux machine, you could copy to a nearby Linux server in the U.S., then use rsync to download the file. The rsync protocol will restart and only transfer missing portions of the file.

          Mark Waite added a comment - You could copy the file from Jenkins to another http server in the U.S. (preferably on the same machine), then attempt the download from the http server (instead of Jenkins). That would let you confirm that the problem is more related to network transfer than to Jenkins being involved in the transfer. Alternately, if the receiving machine is a Linux machine, you could copy to a nearby Linux server in the U.S., then use rsync to download the file. The rsync protocol will restart and only transfer missing portions of the file.

          sharon xia added a comment -

          I copied the Jenkins artifacts to the same machine in our Jenkins server. I tried several downloads. None of them fail or hung.

          However, at the same time, I got a 50% percent rate for downloading from jenkins job that the download started with ~=2MB/s (which is the expected speed), but then after a few seconds, the speed goes down and became zero. And one time that the download complete but the size is smaller than the actual size. So I believe there is a high chance that this is issue with Jenkins. I saw this issue on Jenkins 1.565.1 and 1. 554.3.

          sharon xia added a comment - I copied the Jenkins artifacts to the same machine in our Jenkins server. I tried several downloads. None of them fail or hung. However, at the same time, I got a 50% percent rate for downloading from jenkins job that the download started with ~=2MB/s (which is the expected speed), but then after a few seconds, the speed goes down and became zero. And one time that the download complete but the size is smaller than the actual size. So I believe there is a high chance that this is issue with Jenkins. I saw this issue on Jenkins 1.565.1 and 1. 554.3.

          sharon xia added a comment -

          This is easy to be reproduce to download an artifact for the first time.

          sharon xia added a comment - This is easy to be reproduce to download an artifact for the first time.

            Unassigned Unassigned
            sharon_xia sharon xia
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: