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

Inedo ProGet plugin when uploading Package file to proget I'm getting 504 Gateway Time-out Error

      Hi all,

      I'm having declarative pipeline in my Jenkinsfile code.  I changed my Jenkinsfile code as below, because I wanted to archive my artifact file by using Inedo ProGet plugin into my Proget site.   I already configured Proget in Jenkins with API key and installed the plugin. 

      I have added the ProGet API Key settings into the Jenkins' system config settings and it's testing the connection successfully. 

       

      Below is the code change I added in my Jenkinsfile.

      So as above script underline shows the way I'm getting my build artifact's Version Number. 

      Also below is the new .upack Package file I'm creating with the PackageName "JenkinsPackage.upack" for the purpose of upload to the Proget site.
       
      But here the issue I'm facing is when I'm running my build job and it's not success and failing the Proget Upload command with below error log message from Console-Output. 

       

       

       Please anyone assist me on this ?  What's the issue I'm having here, what blocking me to uploading my package file into Proget site ?

        1. Capture.PNG
          Capture.PNG
          97 kB
        2. image-2020-02-20-08-02-45-754.png
          image-2020-02-20-08-02-45-754.png
          124 kB
        3. image-2020-02-20-08-10-02-266.png
          image-2020-02-20-08-10-02-266.png
          31 kB
        4. image-2020-02-20-08-19-00-759.png
          image-2020-02-20-08-19-00-759.png
          114 kB
        5. image-2020-02-20-08-21-46-822.png
          image-2020-02-20-08-21-46-822.png
          223 kB
        6. image-2020-02-20-08-24-40-897.png
          image-2020-02-20-08-24-40-897.png
          37 kB
        7. proget_22Capture.PNG
          proget_22Capture.PNG
          63 kB
        8. proget1_Capture.PNG
          proget1_Capture.PNG
          162 kB

          [JENKINS-61167] Inedo ProGet plugin when uploading Package file to proget I'm getting 504 Gateway Time-out Error

          Amila Gunathilake added a comment - - edited

          Hi Mr andrewsumner it's seems like uploading my JenkinsPackage.upack package file including .7z file inside into the Proget site.  It's actually uploaded. But after uploading Jenkins gives  504: Gateway Time-out error message and existing my Jenkins build job with that error.  Please see below screenshots. 

          actually my artifact uploaded to proget correctly but its taking more than 5 minutes to upload to the proget site and that's where I'm getting the 504 error. Because I noticed even after I got the Jenkins Console output error I have to wait another 5 minutes to get the uploaded file in Proget site.

          as you know after that gives the below error and existing Jenkins build job:

          Amila Gunathilake added a comment - - edited Hi Mr  andrewsumner it's seems like uploading my JenkinsPackage.upack package file including .7z file inside into the Proget site.  It's actually uploaded. But after uploading Jenkins gives  504: Gateway Time-out error message and existing my Jenkins build job with that error.  Please see below screenshots.  actually my artifact uploaded to proget correctly but its taking more than 5 minutes to upload to the proget site and that's where I'm getting the 504 error . Because I noticed even after I got the Jenkins Console output error I have to wait another 5 minutes to get the uploaded file in Proget site. as you know after that gives the below error and existing Jenkins build job:

          Andrew Sumner added a comment -

          I have tried a few more things, still can't get the gateway error though.

          • 7zip file worked fine on a medium sized file of 56 MB
          • On a larger file (155 MB) I get "java.lang.OutOfMemoryError: Java heap space" - this is running on master which is a Windows Server 2016 with 4 GB RAM
          • I then ran build on an agent (Windows Server with 24 GB RAM) and the larger file was uploaded just fine.

          I cannot say for certain that your issue is memory related, but as it's an issue I need to fix I will and keep my fingers crossed it also fixes your issue.

          Andrew Sumner added a comment - I have tried a few more things, still can't get the gateway error though. 7zip file worked fine on a medium sized file of 56 MB On a larger file (155 MB) I get "java.lang.OutOfMemoryError: Java heap space" - this is running on master which is a Windows Server 2016 with 4 GB RAM I then ran build on an agent (Windows Server with 24 GB RAM) and the larger file was uploaded just fine. I cannot say for certain that your issue is memory related, but as it's an issue I need to fix I will and keep my fingers crossed it also fixes your issue.

          Andrew Sumner added a comment -

          Sorry, didn't see your post before I sent mine.

          The length of time you're stating is awfully long for a 58 MB file, none of my uploads have taken anywhere near that time so this is possibly hitting some sort of limit within ProGet and you will need to approach Inedo for help on that. But before you go down that route it would be good to prove that this is the case...

          Have you tried the command line client? You wouldn't even need to run it under Jenkins, in-fact I would prefer to take Jenkins out of the mix at first and only when that is working replicate that in Jenkins.

          If you CAN upload the file using the command line tool (both via Jenkins and direct), it at least proves there is a problem with this plugin.
          If not CANNOT upload the file from the command line tool then you will need to raise an issue via the support channel (and also let me know)

          Andrew Sumner added a comment - Sorry, didn't see your post before I sent mine. The length of time you're stating is awfully long for a 58 MB file, none of my uploads have taken anywhere near that time so this is possibly hitting some sort of limit within ProGet and you will need to approach Inedo for help on that. But before you go down that route it would be good to prove that this is the case... Have you tried the command line client? You wouldn't even need to run it under Jenkins, in-fact I would prefer to take Jenkins out of the mix at first and only when that is working replicate that in Jenkins. If you CAN upload the file using the command line tool (both via Jenkins and direct), it at least proves there is a problem with this plugin. If not CANNOT upload the file from the command line tool then you will need to raise an issue via the support channel (and also let me know)

          Andrew Sumner added a comment -

          I have released version 1.4 of this plugin to fix the out of memory error I have experianced - it should be available in the next hour or so.

          Based on your description where the upload is taking a long time (> 5 minutes) for moderately sized files (approx 50 MB) I think the issue maybe either networking or on the ProGet end so I have my doubts that this will fix your issue but definately worth a go.

          On my system using a 385 MB file it took around 1 minute to pack the file and another minute to upload it.

          Andrew Sumner added a comment - I have released version 1.4 of this plugin to fix the out of memory error I have experianced - it should be available in the next hour or so. Based on your description where the upload is taking a long time (> 5 minutes) for moderately sized files (approx 50 MB) I think the issue maybe either networking or on the ProGet end so I have my doubts that this will fix your issue but definately worth a go. On my system using a 385 MB file it took around 1 minute to pack the file and another minute to upload it.

          Amila Gunathilake added a comment - - edited

          hi Mr. andrewsumner thanks for the update I have installed new inedo proget 1.4 version but still 504 error I'm getting.  I'm actually in the middle of setting up upack cli tool in my powershell scripts. I will get back to you with more updates in next week. 

          Thanks
          Amila

          Amila Gunathilake added a comment - - edited hi Mr. andrewsumner thanks for the update I have installed new inedo proget 1.4 version but still 504 error I'm getting.  I'm actually in the middle of setting up upack cli tool in my powershell scripts. I will get back to you with more updates in next week.  Thanks Amila

          Amila Gunathilake added a comment - - edited

          Hi Mr Andrew Sumner,
          Actually my customer requirement is changed now. Now my customer wants to package and publish my artifact .7z file as a .nupkg file not as a .unpack extension file in to the Proget site.
          So it will be a Nuget package and not a Universal package. For this requirement can I still use the Inedo-Proget plugin? Because in default Inedo plugin create a .upack file no?

           

          Thanks 

          Amila

           

          Amila Gunathilake added a comment - - edited Hi Mr Andrew Sumner, Actually my customer requirement is changed now. Now my customer wants to package and publish my artifact .7z file as a .nupkg file not as a .unpack extension file in to the Proget site. So it will be a Nuget package and not a Universal package. For this requirement can I still use the Inedo-Proget plugin? Because in default Inedo plugin create a .upack file no?   Thanks  Amila  

          Hi andrewsumner is there any update sir ? 

          Thank you
          Amila

          Amila Gunathilake added a comment - Hi andrewsumner is there any update sir ?  Thank you Amila

          Andrew Sumner added a comment -

          Sorry, have been busy moving house so haven't had access.  This plugin was specifically designed for universal packages and there are no plans at present to support nuget (however you're welcome to raise an issue with Inedo and if approved I would work on it). 

          A quick google found this article which might give you some guidance.

          Andrew Sumner added a comment - Sorry, have been busy moving house so haven't had access.  This plugin was specifically designed for universal packages and there are no plans at present to support nuget (however you're welcome to raise an issue with Inedo and if approved I would work on it).  A quick google found this article which might give you some guidance.

          Amila Gunathilake added a comment - - edited

          hi andrewsumner, just forget previous comments, below is my final requirement and what I need now regarding this issue: 

          • I had use upack cli command line tool for package my artifacts as a universal package .upack file.  But when I'm uploading upack file into proget site by using the upack "push" command its still giving the 504 error and stopping the Jenkinspipeline. Any idea how to skip this 504 error from the Jenkinsfile? 
          • When I'm using upack "push"  command in my powershell scripts its skipping the 504 error and keep building the project. But when I'm using upack "push" command in-side Jenkinsfile only it's stopping the build.  So now I want to know is how to continue building the job with this 504 error in Jenkinsfile?  because I prefer to use upack "push" command inside my Jenkinsfile rather than inside powershell script.

          Any ideas andrewsumner?

          Thanks,
          Jenkins Customer South Asia

          Amila

          Amila Gunathilake added a comment - - edited hi andrewsumner , just forget previous comments, below is my final requirement and what I need now regarding this issue:  I had use upack cli command line tool for package my artifacts as a universal package .upack file.  But when I'm uploading upack file into proget site by using the upack "push" command its still giving the 504 error and stopping the Jenkinspipeline. Any idea how to skip this 504 error from the Jenkinsfile?  When I'm using upack "push"  command in my powershell scripts its skipping the 504 error and keep building the project. But when I'm using upack "push" command in-side Jenkinsfile only it's stopping the build.  So now I want to know is how to continue building the job with this 504 error in Jenkinsfile?  because I prefer to use upack "push" command inside my Jenkinsfile rather than inside powershell script. Any ideas andrewsumner ? Thanks, Jenkins Customer South Asia Amila

          Andrew Sumner added a comment -

          First of all, I am quite concerned that you're getting the Gateway Timeout error (good news for my plugin as it proves that it's not faulty). Please raise a support request with Inedo to get to the bottom of that at https://my.inedo.com/tickets/new.

          To ignore the error and continue you could use a try-catch block (see https://jenkins.io/doc/book/pipeline/syntax/). This is not something I would recommend except as a temporary measure while you're getting to the bottom of what is causing the gateway timeout. Even then I would investigate to see if you can catch only the 504 Gateway Timeout error.

           

           

           

          Andrew Sumner added a comment - First of all, I am quite concerned that you're getting the Gateway Timeout error (good news for my plugin as it proves that it's not faulty). Please raise a support request with Inedo to get to the bottom of that at  https://my.inedo.com/tickets/new . To ignore the error and continue you could use a try-catch block (see https://jenkins.io/doc/book/pipeline/syntax/ ). This is not something I would recommend except as a temporary measure while you're getting to the bottom of what is causing the gateway timeout. Even then I would investigate to see if you can catch only the 504 Gateway Timeout error.      

            andrewsumner Andrew Sumner
            amila_devops Amila Gunathilake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: