pnp / pnpassessment

Microsoft 365 SharePoint Assessment tool enabling various deprecation and adoption scenarios
https://aka.ms/microsoft365assessmenttool
MIT License
28 stars 14 forks source link

"Microsoft 365 Assessment tool did not start timely" #19

Closed gw3437 closed 1 year ago

gw3437 commented 1 year ago

Here is what I get when trying to analyze my workflows: Connecting Microsoft 365 Assessment on port 25010... No running Microsoft 365 Assessment found, starting one... Unhandled exception: System.Exception: Microsoft 365 Assessment tool did not start timely at PnP.Scanning.Process.Services.ScannerManager.WaitForScannerToBeUpAsync() at PnP.Scanning.Process.Services.ScannerManager.LaunchScannerAsync() at PnP.Scanning.Process.Services.ScannerManager.GetScannerClientAsync() at PnP.Scanning.Process.Commands.StartCommandHandler.<>cDisplayClass19_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at Spectre.Console.Status.<>cDisplayClass16_0.<b0>d.MoveNext() in /_/src/Spectre.Console/Live/Status/Status.cs:line 79 --- End of stack trace from previous location --- at Spectre.Console.Status.<>cDisplayClass17_0`1.<b_0>d.MoveNext() in //src/Spectre.Console/Live/Status/Status.cs:line 120 --- End of stack trace from previous location --- at Spectre.Console.Progress.<>cDisplayClass28_01.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/Progress/Progress.cs:line 133 --- End of stack trace from previous location --- at Spectre.Console.Internal.DefaultExclusivityMode.RunAsync[T](Func1 func) in //src/Spectre.Console/Internal/DefaultExclusivityMode.cs:line 40 at Spectre.Console.Progress.StartAsync[T](Func`2 action) in //src/Spectre.Console/Live/Progress/Progress.cs:line 116 at Spectre.Console.Status.StartAsync[T](String status, Func2 func) in /_/src/Spectre.Console/Live/Status/Status.cs:line 117 at Spectre.Console.Status.StartAsync(String status, Func2 action) in /_/src/Spectre.Console/Live/Status/Status.cs:line 77 at PnP.Scanning.Process.Commands.StartCommandHandler.HandleStartAsync(StartOptions arguments) at PnP.Scanning.Process.Commands.StartCommandHandler.b18_0(StartOptions arguments) at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context) at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass22_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass15_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass26_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass24_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b23_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass21_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b8_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__7_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass11_0.<b__0>d.MoveNext()

The log file shows this. 2023-04-19 12:23:55.787 -05:00 [INF] Starting Microsoft 365 Assessment on port 25010 2023-04-19 12:23:56.171 -05:00 [INF] Started Microsoft 365 Assessment on port 25010 2023-04-19 12:23:56.241 -05:00 [INF] User profile is available. Using 'C:\Users\\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. 2023-04-19 12:23:56.602 -05:00 [INF] Now listening on: http://localhost:25010 2023-04-19 12:23:56.608 -05:00 [INF] Application started. Press Ctrl+C to shut down. 2023-04-19 12:23:56.609 -05:00 [INF] Hosting environment: Production 2023-04-19 12:23:56.609 -05:00 [INF] Content root path: C:\microsoft365assessment

Any ideas?

jansenbe commented 1 year ago

@gw3437 : the error indicates that the "server" part of the assessment tool did not start timely. The server part is an ASP.NET web server (kestrel) running on port 25010. If for some reason there's something else is already using that port then the server can't start. Can you check the following:

jansenbe commented 1 year ago

@gw3437 : did above help get you unblocked?

jansenbe commented 1 year ago

@gw3437 : are you good with closing this issue?

jansenbe commented 1 year ago

@gw3437 : I'm closing this issue as there was not feedback anymore. In case the problem still persists please re-open and let me know how the recommended steps turned out.