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!

Can't open Docker feed because of null reference exception



  • Since migration to Proget 5.4.3 docker registry page could not be opened any more for logged in user. Instead of docker images list, standard asp.net exception page is always shown with the following stacktrace:

    [ArgumentNullException: Value cannot be null.
    Parameter name: value]
    System.String.StartsWith(String value, StringComparison comparisonType) +598
    System.Linq.WhereListIterator1.MoveNext() +81 System.Linq.Enumerable.Count(IEnumerable1 source) +259
    Inedo.ProGet.WebApplication.Pages.Docker.d__17.MoveNext() +5963
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
    Inedo.ProGet.WebApplication.Pages.Docker.d__16.MoveNext() +1642
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
    Inedo.ProGet.WebApplication.Pages.d__3.MoveNext() +201
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
    Inedo.Web.PageFree.d__46.MoveNext() +220
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
    Inedo.Web.PageFree.d__45.MoveNext() +323
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
    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
    

    Problem has workaround - page could be opened without problems for anonymous users.


  • inedo-engineer

    Hi @luminiscence_6236 ,

    Could you please provide the entire stack trace for the error? You should be able to retrieve it from the Diagnostics Center on the Administration page.

    Thanks,
    Rich



  • Attached stack from diagnostics center, although it's the same as far as I can see

    Stack trace: at System.String.StartsWith(String value, StringComparison comparisonType)
    at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
    at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
    at Inedo.ProGet.WebApplication.Pages.Docker.ListRepositoriesPage.<CreateOutOfBoxExperience>d__17.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.WebApplication.Pages.Docker.ListRepositoriesPage.<CreateChildControlsAsync>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.ProGet.WebApplication.Pages.ProGetSimplePageBase.<InitializeAsync>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.Web.PageFree.SimplePageBase.<ExecutePageLifeCycleAsync>d__46.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Inedo.Web.PageFree.SimplePageBase.<ProcessRequestAsync>d__45.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
    at Inedo.Web.Handlers.AsyncHandlerWrapper.EndProcessRequest(IAsyncResult result)
    at System.Web.HttpApplication.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar)
    at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)
    

  • inedo-engineer

    Hi @luminiscence_6236 ,

    Do you see any other errors in the diagnostic center? Does the page load when you click the Containers link at the top of the page? If that is the one that is erroring, are you able to navigate to your registry by first going to the Feeds then clicking on your registry there?

    Thanks,
    Rich



  • Hi, @rhessinger

    Do you see any other errors in the diagnostic center?

    No, that's the only error we found

    Does the page load when you click the Containers link at the top of the page?

    Yes

    are you able to navigate to your registry by first going to the Feeds then clicking on your registry there?

    Any link to the registry fails with exception, either from Feeds or from Home page


  • inedo-engineer

    Hi @luminiscence_6236 ,

    If you click on the Containers link at the top. Does it error when you click on a local tag? Also do you have any connectors on your docker registry?

    Thanks,
    Rich



  • We found today that page stops crashing if docker connector is removed and starts crashing again if it returned back.


  • inedo-engineer

    Hi @luminiscence_6236 ,

    I'm glad to hear you figured out the issue. I'm going to add an internal ticket to add better error handling around docker connectors.

    Thanks,
    Rich


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation