Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Error when pushing package

    Scheduled Pinned Locked Moved Support
    proget
    7 Posts 3 Posters 67 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Can't seem to get package pushing to work
      Proget server 5.0.7 - linux docker container on EC2 docker host instance

      I can access the proget web page and have set up a nuget feed with a end point of http://proget.oneomics.net/nuget/main. Set up an api key for the feed in the admin section. When I try and push with
      nuget push Sciex.TeamCity.Common.1.0.0.1.nupkg -Source http://proget.oneomics.net/nuget/netcore2 -ApiKey kvdDECKMvnwOdCXVslKOGg==

      Pushing Sciex.TeamCity.Common.1.0.0.1.nupkg to 'http://proget.oneomics.net/nuget/netcore2'...
      PUT http://proget.oneomics.net/nuget/netcore2/
      BadRequest http://proget.oneomics.net/nuget/netcore2/ 471ms
      Response status code does not indicate success: 400 (Bad Request).
      Also tried username:password for the API key, which did not work.

      Fiddler says:
      Request:
      PUT http://proget.oneomics.net/nuget/netcore2/ HTTP/1.1
      X-NuGet-ApiKey: kvdDECKMvnwOdCXVslKOGg==
      user-agent: NuGet Command Line/4.4.1 (Microsoft Windows NT 6.2.9200.0)
      X-NuGet-Client-Version: 4.4.1
      Accept-Language: en-US
      Content-Type: multipart/form-data; boundary="b0b5e19c-52ec-41af-94f0-e0e8995b6e92"
      Host: proget.oneomics.net
      Expect: 100-continue
      Accept-Encoding: gzip, deflate
      Connection: Keep-Alive
      Content-Length: 7591

      --b0b5e19c-52ec-41af-94f0-e0e8995b6e92
      Content-Type: application/octet-stream
      Content-Disposition: form-data; name=package; filename=package.nupkg; filename*=utf-8''package.nupkg
      [binary data follows]

      RESPONSE
      HTTP/1.1 400 Bad Request
      X-AspNet-Version: 4.0.30319
      Cache-Control: private
      Content-Type: text/html
      Server: Mono-HTTPAPI/1.0
      Date: Fri, 19 Jan 2018 15:11:11 GMT
      Content-Length: 34
      Connection: close

      There must be exactly one package.
      Using nuget.exe ver 4.4.1

      I am pretty sure the package does not exist on the feed.

      any help would be appreciated.
      thanks in advance

      (note server is not public - works only from specific IP addresses.

      Friedrich

      Product: ProGet
      Version: 5.0.7

      1 Reply Last reply Reply Quote 0
      • benB Offline
        ben inedo-engineer
        last edited by

        Hello Friedrich,

        This appears to be a bug in Mono. We previously had a workaround that would parse multipart requests manually using the input stream, but it appears that even that is broken now.

        I've filed mono#6801 with a test case.

        Unfortunately, there is not much we can do until this is resolved on their end.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hi,

          any idea when this will be working again?

          Also, I found a workaround - with nuget.exe version 3.4.4 it seems to be working.

          Best regards,
          Florian

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Any update on this?
            We are also using 3.4.4 to get around this issue but obviously it's a bad idea to use outdated software.

            Trent

            1 Reply Last reply Reply Quote 0
            • J Offline
              jjohnson_9205
              last edited by

              Hello,

              The ProGet 5.1.2 image on Docker Hub uses a version of mono with the pull request mentioned above included.

              If you want to use an older version of ProGet with this fix, you can build an image using a command like this:

              docker build --pull -t inedo/proget:5.0.13 https://github.com/Inedo/proget-docker#5.0.13
              
              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                The ProGet 5.1.2 image does not help. I trying to push from TeamCity
                Any ideas?

                [nuget push] info :   PUT http://10.0.0.10/nuget/snow-nuget/
                [nuget push] info :   BadRequest http://10.0.0.10/nuget/snow-nuget/ 257ms
                [nuget push] error: Response status code does not indicate success: 400 (There must be exactly one package.).
                [nuget push] Process exited with code 1
                
                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  This error indicates an incomplete request is being sent to ProGet; typically it happens from misconfigured client that is not authenticating properly.... but it's really hard to guess from that error message alone. Unfortunately I'm not familiar enough with how to configure TeamCity to advise on how to fix this.

                  Perhaps cross-post this on their support forums as well.

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation