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!

    Deletion of certain docker images fail

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 11 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.
    • D Offline
      dsh_0031
      last edited by

      Hello guys,

      We are trying to delete some docker images from our docker feed in ProGet using the web interface.
      However the SQL query seems to fail, and the site throws an application error. This only affects deletion of certain image tags, not sure what makes them special.

      ProGet Version 5.2.14 (Build 17)

      Full error/Stack trace

      Server Error in '/' Application.
      512`16`1`DockerImages_DeleteImage`23`Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
      Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.
      Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
      
      Exception Details: System.Data.SqlClient.SqlException: 512`16`1`DockerImages_DeleteImage`23`Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
      Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.
      
      Source Error:
      
      An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
      
      Stack Trace:
      
      
      [SqlException (0x80131904): 512`16`1`DockerImages_DeleteImage`23`Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
      Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.]
         System.Data.SqlClient.<>c.<ExecuteDbDataReaderAsync>b__180_0(Task`1 result) +47
         System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() +104
         System.Threading.Tasks.Task.Execute() +73
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
         Inedo.Data.<CreateAsync>d__14.MoveNext() +339
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
         Inedo.Data.<ExecuteInternalAsync>d__37.MoveNext() +1372
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
         Inedo.Data.<ExecuteNonQueryAsync>d__35.MoveNext() +332
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
         Inedo.Data.<ExecuteScalarAsync>d__34`1.MoveNext() +297
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         Inedo.ProGet.WebApplication.Pages.Docker.Images.<<CreateChildControls>b__5>d.MoveNext() +1027
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         Inedo.Web.PageFree.<ProcessPostAsync>d__64.MoveNext() +586
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         Inedo.Web.PageFree.<ProcessPostAsync>d__64.MoveNext() +929
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
         Inedo.Web.PageFree.<ProcessRequestAsync>d__47.MoveNext() +575
         System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
         System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
         System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +59
         Inedo.Web.Handlers.AsyncHandlerWrapper.EndProcessRequest(IAsyncResult result) +33
         System.Web.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar) +234
         System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +169
      

      Any idea how to fix this or what could be happening?
      I tried deleting the image tags using the API, but this fails the same way.

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

        Hello;

        Thank you for the bug report; there was a bad query in that stored procedure that would cause it to fail in some cases.

        It will be fixed in the next maintence release of ProGet (5.2.28), but you can download a patch (1.DockerImages_DeleteImage.sql) and run it against your database today :)

        The file is attached to the ticket: https://inedo.myjetbrains.com/youtrack/issue/PG-1684

        Best,
        Alana

        1 Reply Last reply Reply Quote 0
        • D Offline
          dsh_0031
          last edited by

          Thank you, sound good. I will give the patch a go.

          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