I have a series of large files that need to be uploaded to a Nexus artifact repository using the Nexus Artifact Uploader plugin in Jenkins. I have many jobs built that use this plugin and correctly upload the files to Nexus. Unfortunately, I am seeing that there is a ~2.5GB file size limit after which the Jenkins job fails with error "Read timed out". When I use a curl command to push the artifacts directly to the Nexus repo, it does not fail. This makes me believe that the timeout is being applied by Jenkins or possibly the Docker container that Jenkins is running on. I have attached the log below. Does anyone here have any suggestions about how I could solve this timeout error?

       

       
      {{09:54:28 Uploading artifact (artifact file).zip started....
      09:54:28 GroupId: data
      09:54:28 ArtifactId: (artifact name)
      09:54:28 Classifier:
      09:54:28 Type: zip
      09:54:28 Version: 0.0.1
      09:54:28 File: (artifact file).zip
      09:54:28 Repository:(repository name)
      09:54:28 Uploading: https://(nexus location)/repository/(repo name)/data/(artifact name)/0.0.1/(artifact name)-0.0.1.zip
      09:54:50 10 % completed (902 MB / 9.0 GB).
      09:55:12 20 % completed (1.8 GB / 9.0 GB).
      09:56:20 Failed to deploy artifacts: Could not transfer artifact data:(artifact name):zip:0.0.1 from/to (repo name) (https://(nexus location)/repository/repo name): Read timed out
      09:56:20 ERROR: Uploading file (artifact file).zip failed.}}

          [JENKINS-61374] Timeout when deploying large file to Nexus

          Miranda Schubert added a comment - - edited

          I'm on Nexus Artifact Uploader 2.13 and don't even get an error, with our large file:

          [Pipeline] nexusArtifactUploaderUploading artifact lobby-h5c-20220106-27133183-ems0105test7-static.tgz started....
          GroupId: lobby
          ArtifactId: lobby
          Classifier: 
          Type: tgz
          Version: 20220106-27133183-ems0105test7-static
          File: lobby-h5c-20220106-27133183-ems0105test7-static.tgz
          Repository:releases
          Uploading: (path)/lobby-h5c-20220106-27133183-ems0105test7-static.tgz
          10 % completed (1.3 GB / 13 GB).
          [Pipeline] }
          [Pipeline] // dir
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          Finished: SUCCESS

          Here's that piece of the pipeline:

                          nexusArtifactUploader(
                              nexusVersion: 'nexus2',
                              protocol: 'http',
                              nexusUrl: url,
                              groupId: 'lobby',
                              version: staticVersion,
                              repository: 'releases',
                              credentialsId: 'NexusDevServiceCredentials',
                              artifacts: [
                                  [artifactId: 'lobby-h5c',
                                  classifier: '',
                                  file: staticTarName,
                                  type: 'tgz']
                              ]
                          )

          Miranda Schubert added a comment - - edited I'm on Nexus Artifact Uploader 2.13 and don't even get an error, with our large file: [Pipeline] nexusArtifactUploaderUploading artifact lobby-h5c-20220106-27133183-ems0105test7- static .tgz started.... GroupId: lobby ArtifactId: lobby Classifier: Type: tgz Version: 20220106-27133183-ems0105test7- static File: lobby-h5c-20220106-27133183-ems0105test7- static .tgz Repository:releases Uploading: (path)/lobby-h5c-20220106-27133183-ems0105test7- static .tgz 10 % completed (1.3 GB / 13 GB). [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS Here's that piece of the pipeline: nexusArtifactUploader( nexusVersion: 'nexus2' , protocol: 'http' , nexusUrl: url, groupId: 'lobby' , version: staticVersion, repository: 'releases' , credentialsId: 'NexusDevServiceCredentials' , artifacts: [ [artifactId: 'lobby-h5c' , classifier: '', file: staticTarName, type: 'tgz' ] ] )

          Kaz Niimi added a comment -

          We observed the same problem using Nexus Artifact Uploader 2.13.

          Also tested using curl to upload the same large file directly to the same Nexus server using the same user credentials, and it was able to upload successfully with curl where the same upload failed with the Nexus plugin.

          We're using the plugin on CloudBees CI Cloud Operations Center 2.289.2.3-rolling.

          Any possibility of getting this fixed anytime in the near future pskumar448 ?

          Kaz Niimi added a comment - We observed the same problem using Nexus Artifact Uploader 2.13. Also tested using curl to upload the same large file directly to the same Nexus server using the same user credentials, and it was able to upload successfully with curl where the same upload failed with the Nexus plugin. We're using the plugin on CloudBees CI Cloud Operations Center 2.289.2.3-rolling. Any possibility of getting this fixed anytime in the near future pskumar448 ?

            pskumar448 Suresh Kumar
            mtemple Michael Temple
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: