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!

    docker progetcore:5.3.10 - unable to push packages

    Scheduled Pinned Locked Moved Support
    7 Posts 4 Posters 20 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.
    • J Offline
      jyip_5228
      last edited by

      Hi,
      Switched to progetcore due to a possible fix of DB timeouts. however found the following problem when trying to push packages via nuget.

      [Exec] "C:\Txx\tools\NuGet.CommandLine.4.7.1\tools\Nuget.exe" push "C:\xxx.nupkg" -Source "https://xxxxxx/nuget/ks-nuget/" -ApiKey "xxxxxxxx"
      [14:58:16][Exec] Pushing xxx.nupkg to 'https://xxxxxx/nuget/ks-nuget/'...
      [14:58:16][Exec]   PUT https://xxxxxx/nuget/ks-nuget/
      [14:58:16][Exec]   InternalServerError https://xxxxxx/nuget/ks-nuget/ 282ms
      [14:58:16][Exec]   PUT https://xxxxxx/nuget/ks-nuget/
      [14:58:17][Exec]   InternalServerError https://axxxxxx/nuget/ks-nuget/ 171ms
      [14:58:17][Exec]   PUT https://xxxxxx/nuget/ks-nuget/
      [14:58:17][Exec]   InternalServerError https://xxxxxx/nuget/ks-nuget/ 168ms
      [14:58:17][Exec] Response status code does not indicate success: 500 (Internal Server Error).
      

      Reverting back to the regular proget:5.3.10 works perfectly.

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Hello;

        Can you share the errors you're seeing in the Admin > Diagnostic Center? Those will be logged w/ the 500 errors.

        Thank!

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

          Found this.

          An error occurred processing a PUT request to http://xxxx/nuget/ks-nuget/: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
           Details: System.InvalidOperationException: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
          at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.Read(Byte[] buffer, Int32 offset, Int32 count)
          at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
          at System.IO.Stream.ReadByte()
          at Inedo.IO.StreamSearcher.FindNext(Stream stream)
          at Inedo.IO.StreamSearcher.FindAll(Stream stream)+MoveNext()
          at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
          at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
          at Inedo.Web.HttpRequestExtensions.GetPostedFilesInternal(HttpContext context)
          at Inedo.Web.HttpRequestExtensions.GetPostedFiles(HttpContext context)
          at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.PutHandler.ProcessPutRequestAsync(HttpContext context, RequestData urlData, NuGetFeed feed) in C:\InedoAgent\BuildMasterTemp\192.168.44.60\Temp\_E55466\Src\ProGet.WebApplication\FeedEndpoints\NuGet\NuGetApi.PutHandler.cs:line 42
          at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.ProcessRequestAsync(HttpContext context, NuGetFeed feed, String relativeUrl) in C:\InedoAgent\BuildMasterTemp\192.168.44.60\Temp\_E55466\Src\ProGet.WebApplication\FeedEndpoints\NuGet\NuGetApi.cs:line 37
          at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.ProcessRequestAsync(HttpContext context) in C:\InedoAgent\BuildMasterTemp\192.168.44.60\Temp\_E55466\Src\ProGet.WebApplication\FeedEndpoints\FeedEndpointHandler.cs:line 192
          
          1 Reply Last reply Reply Quote 0
          • gdivisG Offline
            gdivis inedo-engineer
            last edited by

            Thanks for the error report. We've fixed this as PG-1816, which will be included in tomorrow's releases (ProGet 5.3.11).

            1 Reply Last reply Reply Quote 0
            • M Offline
              mikhael_3947
              last edited by mikhael_3947

              Same issue on docker container (which is dotnet core too) proget.inedo.com/productimages/inedo/proget:5.3.11
              I see the same issue when doing a docker push :

              received unexpected HTTP status: 500 Internal Server Error
              

              When I catch the HTTP response to PUT /v2/base/alpine/manifests/3.9 HTTP/1.1 with wireshark I can read : Could not find a part of the path '/var/proget/packages/.docker/F3'.
              Also since I did a bind mount in the docker I can see that the folder F3 is not created : /var/proget/packages/.docker/F3

              But docker push works with the docker image proget.inedo.com/productimages/inedo/proget:5.3.10
              And F3 folder is created as expected and I can find the manifest.

              1 Reply Last reply Reply Quote 0
              • gdivisG Offline
                gdivis inedo-engineer
                last edited by

                Docker uses different file operations from all of the other feeds, so it looks like we missed fixing it there. We'll look into this and get it fixed.

                Thanks for trying progetcore!

                1 Reply Last reply Reply Quote 0
                • gdivisG Offline
                  gdivis inedo-engineer
                  last edited by

                  We've got this fixed. If you'd like to try it, it's available as proget.inedo.com/productimages/inedo/progetcore:5.3.12-ci.1

                  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