Skip to content

Infinite loop with "Search for Windows updates failed with 'SucceededWithErrors'. Retrying..." #155

Description

@jbne

Howdy,

Our image build has been failing when searching for Windows updates due to 'SucceededWithErrors', since it's on a while($true) loop this goes on until the build times out. This seems like a Windows update issue, but it would be nice if this plugin could handle this a little nicer so that users can diagnose the issues a little better and have more control over the Windows update process. Throwing some ideas out there:

  • Dump all warnings from ISearchResult to output: https://learn.microsoft.com/en-us/windows/win32/api/wuapi/nf-wuapi-isearchresult-get_warnings
  • Dump updates that were able to be retrieved to output
  • Add in a max # of retries and make the retries configurable by the user
  • Identify which update(s) are giving errors and display them to the user
  • If the error is recoverable, either perform the recovery step or print out some info about the error to the user. Maybe this behavior could also be made configurable?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions