Comments (24)
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, Nullable
1 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):
from pnpassessment.
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.
I'll work on this today and report back.
from pnpassessment.
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.
@netadmin-grrl : How many microsoft365-assessment.exe processes are running after you saw the error?
from pnpassessment.
from pnpassessment.
@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.
Sure can! I'm OOO next week, so if you don't hear from me in that time frame, that's why.
from pnpassessment.
@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.
from pnpassessment.
@netadmin-grrl : you happen to behind a proxy server or have the environment variables http_proxy
or https_proxy
set?
from pnpassessment.
Possibly some monitoring software.
Would this be the same value as set in "Local Area Network (LAN) Settings" -> Proxy Server?
from pnpassessment.
yes that's true, or via environment variables
from pnpassessment.
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.
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.
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.
@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.
@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.
@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.
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.
@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.
from pnpassessment.
@netadmin-grrl : but using a machine without ForcePoint works?
from pnpassessment.
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)
- Microsoft 365 Assessment Tool - SharePoint Add-In HOT 1
- Assessment job not started due to error: System.DllNotFoundException: Dll was not found. HOT 5
- Assessment job not started due to error: Microsoft Graph service exception HOT 3
- One site failed in assessment HOT 3
- Insufficient privileges to complete the operation HOT 1
- Multiple queries about the assessment tool HOT 7
- Problem when running Microsoft Assessment Tool for SharePoint Add-Ins and Azure ACS deprecation HOT 7
- Missing Azure ACS principals HOT 4
- Unhandled exception error HOT 2
- Assessment is sitting idle for a long time HOT 3
- [Feature Request] - Include the List RenderType value in the InfoPath report
- Microsoft Graph service exception - Max page size should be <= 501 HOT 5
- InfoPath Assessment Contains Lists/Usages in the future
- new lease cannot run in Windows server 2019 datacenter HOT 1
- Assessment job not started due to error: Max number of parallel assessments reached HOT 12
- Issue : Microsoft Graph service exception HOT 2
- Two instances of m365assessment.exe starting when trying to run the infopath scan HOT 3
- when run the sharepoint addin/acs assessment, showing "Assessment Job not started due to error: Microsoft graph service exception" HOT 4
- M365 Assessment tool for Azure ACS and Addins fails to run for sharepoint vanity urls HOT 2
- m365Assessment.exe starts on a random port HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pnpassessment.