Git Product home page Git Product logo

Comments (24)

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024 1

Made sure that no additional "rogue" processes were running, and then 2x-clicked on the .exe:

You are using the latest version 1.6.1

             __  __   _                                        __   _       _____    __     ____
            |  \/  | (_)   ___   _ __    ___    ___    ___    / _| | |_    |___ /   / /_   | ___|
            | |\/| | | |  / __| | '__|  / _ \  / __|  / _ \  | |_  | __|     |_ \  | '_ \  |___ \
            | |  | | | | | (__  | |    | (_) | \__ \ | (_) | |  _| | |_     ___) | | (_) |  ___) |
            |_|  |_| |_|  \___| |_|     \___/  |___/  \___/  |_|    \__|   |____/   \___/  |____/

                        _                                                                _
                       / \     ___   ___    ___   ___   ___   _ __ ___     ___   _ __   | |_
                      / _ \   / __| / __|  / _ \ / __| / __| | '_ ` _ \   / _ \ | '_ \  | __|
                     / ___ \  \__ \ \__ \ |  __/ \__ \ \__ \ | | | | | | |  __/ | | | | | |_
                    /_/   \_\ |___/ |___/  \___| |___/ |___/ |_| |_| |_|  \___| |_| |_|  \__|

Execute a command ( to quit):
list

Connecting Microsoft 365 Assessment on port 25010...
No running Microsoft 365 Assessment found, starting one...
Microsoft 365 Assessment tool did not start timely
OK
Unhandled exception: Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.", DebugException="System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.")
---> System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.
at System.Net.Http.HttpConnectionPool.ThrowGetVersionException(HttpRequestMessage request, Int32 desiredVersion, Exception inner)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at Grpc.Net.Client.Balancer.Internal.BalancerHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Grpc.Net.Client.Internal.GrpcCall2.RunCall(HttpRequestMessage request, Nullable1 timeout)
--- End of inner exception stack trace ---
at PnP.Scanning.Process.Commands.ListCommandHandler.HandleStartAsync(Boolean running, Boolean paused, Boolean finished, Boolean terminated)
at PnP.Scanning.Process.Commands.ListCommandHandler.b__7_0(Boolean running, Boolean paused, Boolean finished, Boolean terminated)
at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<b__0>d.MoveNext()

Execute a command ( to quit):

m365-assessment-ts-2

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024 1

OK then, it's monitoring software, probably Forcepoint. I thought it could be the culprit but wasn't sure until the logs (whoo hoo). Let me see if I can run the debug version on a machine without it and get back to you.

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024 1

I'll work on this today and report back.

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024 1

Yep. My colleague gets annoyed when we blanket-blame and blanket-bomb FP but it is a piece of garbage.
I removed it from my old laptop, and went thru all the steps again to set up the Azure app, etc (just to be sure). Then magic happened!

c:\Users\admin\Downloads\m365assessment>microsoft365-assessment.exe start --mode syntex --authmode application --tenant xyz.sharepoint.com --applicationid dc0029b4-5f3b-47f1-8cf8-865c198a88af --certpath "My|CurrentUser|6CF47248E5A14503CA9075BDE393552D67BBBC27" --syntexfull

You are using the latest version 1.6.2

Connecting Microsoft 365 Assessment on port 25010...
No running Microsoft 365 Assessment found, starting one...
OK

Initializing authentication
Starting the Microsoft 365 Assessment
Microsoft 365 Assessment authentication initialized
Enumerated 144 site collections for tenant xyz.sharepoint.com
Sites to assess are defined
Sites to assess are queued up. Assessment id = 54dc2753-8323-4e40-9149-d268f3502654

Microsoft 365 Assessment is running!
Use the status command to get realtime feedback
Use the list command to an overview of all Microsoft 365 Assessments

c:\Users\admin\Downloads\m365assessment>

c:\Users\admin\Downloads\m365assessment>microsoft365-assessment.exe status

You are using the latest version 1.6.2

Connecting Microsoft 365 Assessment on port 25010...
OK

Live running Microsoft 365 Assessment status. Press ESC to exit

┌──────────────────┬──────┬────────┬──────────┬─────────┬───────────────┬──────────────────┐
│        Id        │ Mode │ Status │ Progress │ Retries │ Session start │ Session duration │
├──────────────────┼──────┼────────┼──────────┼─────────┼───────────────┼──────────────────┤
│ No running scans │      │        │          │         │               │                  │
└──────────────────┴──────┴────────┴──────────┴─────────┴───────────────┴──────────────────┘

c:\Users\admin\Downloads\m365assessment>microsoft365-assessment.exe list

You are using the latest version 1.6.2

Connecting Microsoft 365 Assessment on port 25010...
OK
┌───────────────────────────────────┬────────┬──────────┬────────────────┬──────────────────────┬──────────────────────┐
│ Id                                │ Mode   │  Status  │    Progress    │ Started at           │ Ended at             │
├───────────────────────────────────┼────────┼──────────┼────────────────┼──────────────────────┼──────────────────────┤
│ 54dc2753-8323-4e40-9149-d268f3502 │ Syntex │ Finished │ 144/144 (100%) │ 1/17/2024 3:08:44 PM │ 1/17/2024 3:12:53 PM │
│ 654                               │        │          │                │                      │                      │
└───────────────────────────────────┴────────┴──────────┴────────────────┴──────────────────────┴──────────────────────┘

c:\Users\admin\Downloads\m365assessment>

c:\Users\admin\Downloads\m365assessment>microsoft365-assessment.exe start --mode AddInsACS --authmode application --tenant xyz.sharepoint.com --applicationid dc0029b4-5f3b-47f1-8cf8-865c198a88af --certpath "My|CurrentUser|6CF47248E5A14503CA9075BDE393552D67BBBC27"

You are using the latest version 1.6.2

Connecting Microsoft 365 Assessment on port 25010...
OK

Initializing authentication
Starting the Microsoft 365 Assessment
Microsoft 365 Assessment authentication initialized
Enumerated 144 site collections for tenant xyz.sharepoint.com
Sites to assess are defined
Sites to assess are queued up. Assessment id = ec6d378a-6f0d-451e-a6df-0ab5df7448ad

Microsoft 365 Assessment is running!
Use the status command to get realtime feedback
Use the list command to an overview of all Microsoft 365 Assessments

c:\Users\admin\Downloads\m365assessment>microsoft365-assessment.exe status

You are using the latest version 1.6.2

Connecting Microsoft 365 Assessment on port 25010...
OK

Live running Microsoft 365 Assessment status. Press ESC to exit
┌──────────────────────────────────────┬───────────┬─────────┬──────────────┬─────────┬──────────────────────┬──────────────────┐
│                  Id                  │   Mode    │ Status  │   Progress   │ Retries │    Session start     │ Session duration │     Id
├──────────────────────────────────────┼───────────┼─────────┼──────────────┼─────────┼──────────────────────┼──────────────────┤┼───────────│ f7e11978-b62f
│ f7e11978-b62f-41b7-8344-41d7979934cc │ AddInsACS │ Queued  │  0/144 (0%)  │  0 / 0  │ 1/17/2024 3:26:18 PM │   00:00:08:36    │c6d378a-6f0d-451e-a6df-0ab5
│ ec6d378a-6f0d-451e-a6df-0ab5df7448ad │ AddInsACS │ Running │ 42/144 (29%) │  0 / 0  │ 1/17/2024 3:34:30 PM │   00:00:00:24    │
└──────────────────────────────────────┴───────────┴─────────┴──────────────┴─────────┴──────────────────────┴──────────────────┘:30 PM │   0
                                                                                                                                 ─


c:\Users\admin\Downloads\m365assessment>microsoft365-assessment.exe status

You are using the latest version 1.6.2

Connecting Microsoft 365 Assessment on port 25010...
OK

Live running Microsoft 365 Assessment status. Press ESC to exit

┌──────────────────────────────────────┬───────────┬─────────┬───────────────┬─────────┬──────────────────────┬──────────────────┐
│                  Id                  │   Mode    │ Status  │   Progress    │ Retries │    Session start     │ Session duration │
├──────────────────────────────────────┼───────────┼─────────┼───────────────┼─────────┼──────────────────────┼──────────────────┤
│ f7e11978-b62f-41b7-8344-41d7979934cc │ AddInsACS │ Queued  │  0/144 (0%)   │  0 / 0  │ 1/17/2024 3:26:18 PM │   00:00:09:11    │
│ ec6d378a-6f0d-451e-a6df-0ab5df7448ad │ AddInsACS │ Running │ 124/144 (86%) │  0 / 0  │ 1/17/2024 3:34:30 PM │   00:00:00:59    │
└──────────────────────────────────────┴───────────┴─────────┴───────────────┴─────────┴──────────────────────┴──────────────────┘

c:\Users\admin\Downloads\m365assessment>

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : How many microsoft365-assessment.exe processes are running after you saw the error?

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

Just the one.
m365-assessment-ts

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : thanks for confirming that, so the process never started. As I've no repro of this issue it's hard to fix, hence I'm building a debug build that logs more information. Hope you can try that?

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

Sure can! I'm OOO next week, so if you don't hear from me in that time frame, that's why.

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : here's the build: https://github.com/pnp/pnpassessment/releases/download/v1.6.1-debug-issue27/microsoft365-assessment.exe

It's bigger than previous ones as for currently unknown reasons .NET 8 assembly trimming failed. This however should not impact functionality at all.

Looking forward to what this one outputs. Please share the console output and the created log file in the folder containing the .exe. If you prefer sharing via email, then send to [email protected].

Thx for testing :-)

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

log_20231220_0934.txt

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : you happen to behind a proxy server or have the environment variables http_proxy or https_proxy set?

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

Possibly some monitoring software.
Would this be the same value as set in "Local Area Network (LAN) Settings" -> Proxy Server?

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

yes that's true, or via environment variables

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

Alternative solution could also be excluding localhost traffic from the proxy via adding the environment variable no_proxy with value localhost,127.0.0.1

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

Good news/bad news: it looks like running it on a computer that doesn't have the FP software is working, BUT my cert isn't getting loaded, doesn't like the path info passed to --certpath . (Verified thumbprint ID in Azure/Registered Apps.)

EDIT: NVM, I see the bit about needing a private key because I'm running the app from another machine.

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

Running tool from my system and still having certificate errors.
If I install cert to Root and use "--certpath "My|CurrentUser|xxxx" I get "Certificate could not be loaded using this path information".
If I install cert to Root and use "--certpath "My|CurrentUser|Root|xxxx" I get "Certificate could not be loaded using this path information".
If I install cert to Personal, I get "The certificate certificate does not have a private key."
Think I may just re-do the whole certificate thing. I'm not that good at them, and this was 2 weeks ago, so I don't even remember exactly how I set it up.

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : you need to export the cert with it's private key into a PFX file from the original machine and re-import on the new machine. Launch certmgr.msc in Windows, select the Personal -> Certificates node and choose All Tasks -> Import. To grab the thumbprint that's easiest done from the Certificate page from your Azure AD app.

Once you've upload the cert with private key and have the thumbprint use like this: --certpath "My|CurrentUser|b133d1cb4d19ce539986c7ac67de005481084c84" where the last part is to be replaced with your thumbprint

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : I've also published a 1.6.2 debug build which forcefully turns off the proxy for localhost traffic...if that one works then we've a fix that does not require you to configure something on your computer. https://github.com/pnp/pnpassessment/releases/download/v1.6.2-debug-issue27/microsoft365-assessment.exe

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : once you're back from vacation, it would be good if you could test version 1.6.2 and see if that works on your default setup, so with ForcePoint

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

Still no joy :-(. I recreated the Azure AD app as I don't think I configured the cert stuff right the last time. I don't see any extra log files in the directory along with the executable. Anyhow to the fun (applicationId and certpath variables sanitized for public consumption):

PS C:\Users\mmacenroe\Downloads\microsoft365assessment> .\microsoft365-assessment.exe start --mode AddInsACS --authmode application --tenant oneidacountygov.sharepoint.com --applicationid xxxxxx --certpath "My|CurrentUser|yyyyyy"

You are using the latest version 1.6.2

Connecting Microsoft 365 Assessment on port 25010...
OK

Initializing authentication
Starting the Microsoft 365 Assessment
Assessment job not started due to error:

PS C:\Users\mmacenroe\Downloads\microsoft365assessment> .\microsoft365-assessment.exe

You are using the latest version 1.6.2

             __  __   _                                        __   _       _____    __     ____
            |  \/  | (_)   ___   _ __    ___    ___    ___    / _| | |_    |___ /   / /_   | ___|
            | |\/| | | |  / __| | '__|  / _ \  / __|  / _ \  | |_  | __|     |_ \  | '_ \  |___ \
            | |  | | | | | (__  | |    | (_) | \__ \ | (_) | |  _| | |_     ___) | | (_) |  ___) |
            |_|  |_| |_|  \___| |_|     \___/  |___/  \___/  |_|    \__|   |____/   \___/  |____/

                        _                                                                _
                       / \     ___   ___    ___   ___   ___   _ __ ___     ___   _ __   | |_
                      / _ \   / __| / __|  / _ \ / __| / __| | '_ ` _ \   / _ \ | '_ \  | __|
                     / ___ \  \__ \ \__ \ |  __/ \__ \ \__ \ | | | | | | |  __/ | | | | | |_
                    /_/   \_\ |___/ |___/  \___| |___/ |___/ |_| |_| |_|  \___| |_| |_|  \__|

Execute a command ( to quit):
start --mode AddInsACS --authmode application --tenant oneidacountygov.sharepoint.com --applicationid xxxxxx --certpath "My|CurrentUser|yyyyyy"

Connecting Microsoft 365 Assessment on port 25010...
OK

Initializing authentication
Starting the Microsoft 365 Assessment
Assessment job not started due to error:

Execute a command ( to quit):

PS C:\Users\mmacenroe\Downloads\microsoft365assessment>

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : strange there's no error, so no log file in the .exe folder and no sub folder created for the assessment then?

from pnpassessment.

netadmin-grrl avatar netadmin-grrl commented on September 28, 2024

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

@netadmin-grrl : but using a machine without ForcePoint works?

from pnpassessment.

jansenbe avatar jansenbe commented on September 28, 2024

Closing this one, the assessment tool does not support custom proxy settings...if you're blocked due to this the advice is to run the assessment from a machine that can bypass your proxy.

from pnpassessment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.