-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
w3wp.exe reports 1000s of PATH NOT FOUND and Windows Process Activation Service shuts down #8036
Comments
While #6118 is closed, the ancm log on that issue also shows
Here it is slight different (da744fbcc13abce\src instead of e37dd45d8cd1eaf4\src)
According to #6118 this was resolved by #4206 but the options there are not working for me. Ref: #4431 |
Update: Same thing happens with OutOfProcess. |
@muratg You are probably busy but I wonder if you have inputs on how to debug this? e.g. DebugDiag settings or something else. |
Nothing comes to my mind, @shirhatti any thoughts why this may be happening? @shapeh We may need a simple app that reproduces this issue to get to the bottom of it. |
@muratg - okay re the app. I am not sure how I can produce that for you? It seems to be happening only for this particular app and we run 5-6 other asp.net core apps on same server. The other apps also use dapper, same sql server etc. Could it be some file watching mechanism / compression / caching thing in IIS we have set up wrongfully or something? As far as I am aware, nothing in our code makes w3wp.exe requests these pages. web.config (outofprocess):
|
👀
HR 0x80070020 is ERROR_SHARING_VIOLATION: The process cannot access the file because it is being used by another process. |
@shirhatti - is this related to the CreateFile issue or are these unrelated errors? |
Just troubleshooting here - looking at our code we are using startup.cs
LanguageRouteConstraint.cs
RouteDataRequestCultureProvider.cs
|
Curious what you're doing here? The WebSDK should have just generated something like
|
That additional stuff was added by VS - we started with 1.5-1.6 project and have upgraded. I have removed that since myself. There is no change in the CreateFile events. They keep happening in both inprocess and outofprocess. I just looked in procmon.exe - this particular call is happening as well: So now it looks like this for inprocess:
and this for outofprocess
Some more stuff from procmon on the actual CreateFile event. FASTIO_NETWORK_QUERY_OPEN:
FASTIO_NETWORK_QUERY_OPEN: - stack
IRP_MJ_CREATE (CreateFile):
IRP_MJ_CREATE (CreateFile) - stack:
|
Paging @jkotalik |
I'll take a look when I get the chance. Lot on my plate ATM. |
@jkotalik @shirhatti - thanks :) I now see we also get this for .net 4.6.2 - but a lot less than for core. I suspect IIS problem: FASTIO_NETWORK_QUERY_OPEN: result -> FAST IO DISALLOWED:
IRP_MJ_CREATE: result -> PATH NOT FOUND:
|
A few more appcrashes happened tonight / not sure if this is related to OP. UPDATE: On first request, fb scraper tells us nothing is found in UPDATE Two: Same thing happens sharing an article on Skype... hummm. This happens for OutOfProcess and InProcess. When using InProcess, app pool is automatically restarted, - OutOfProcess does not automatically restart app-pool. Could it be service lifetime we have misconfigured or something?
Some more logs to digest:
Eventlog 2
Eventlog 3 Eventlog 4
Then from in ancm.log: ANCM.log
Report.wer
|
Managed to get a dump file with procdump. Anybody interested in this? 437mb.
|
@shapeh I can take a look. Can you email me a link at [firstname].[lastname][at]microsoft.com ? |
@shirhatti - sent to your email as a onedrive link :) Thanks for looking into this. |
@shirhatti We have registered this error probably 40 times today. |
@shapeh did this behavior reproduce on the original AspNetCoreModule. Ex: target the AspNetCoreModule as the module name in your web.config? From what I read, I don't see why this would be an IIS issue. Feel free to send me the dumps too at the email listed on my github profile, because I'm curious. |
@jkotalik - we have not tried with AspNetCoreModule - but are trying now to see what will happen. I have just sent you an email with 3 dumps - 2 from PS and 1from procdump64 + analysis report. It could a misconfiguration somewhere on our side but I don't really know. For the CreateFile error, I am not even sure they are related to the dumps I am sending. |
I don't believe they are. The dumps you are sending just have the dotnet process throwing an unhandled exception. |
Okay I understand. We have switched to AspNetCoreModule now and have been running for ~2 hours with no problems so far. In contract, we also do not have a lot of traffic on the site these hours. Do you think the exception is due to a mis configuration in our code or? It is kind of hard to track it down as the log files are pretty limited. |
Update: we still get the exceptions with AspNetCoreModule:
|
From the information I gathered, it seems like you have an error with your app and not with ANCM/IIS. I looked at the dumps and it shows an exception being thrown on a background thread. Look for any instances of async void. Also, note that the exception code 0xc00000005 (Access Violation) can be the same as a NullReferenceException. |
@jkotalik - we looked all code through.
None of the exceptions should be NRE's. My question is - why are they only being triggered when facebook sends a request or Skype sends a request? Are you aware of any other methods / logging we can use to debug the app? - we are really struggling with this stuff. Some routing problem maybe? |
Idea from out of left field: can you try to see what happens when you turn stdoutLogEnabled to false and rerun using ANCMV2? |
Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn't been addressed yet, please file a new issue. This issue will be locked after 30 more days of inactivity. If you still wish to discuss this subject after then, please create a new issue! |
Describe the bug
I have been running Process Monitor (procmon) on
w3wp.exe
and I am getting 1000's ofPATH NOT FOUND
.w3wp.exe is calling
CreateFile
several 1000 times in short time (1-2 minutes) on several pages / Controllers in my ASP.NET Core 2.2.2 MVC project. Eventually the app pool will stop with the message:In my case, root is c:\inetpub\wwwroot\www.example.com
Procmon returns:
Since these paths do not exists (and should not), procmon reports PATH NOT FOUND and NAME NOT FOUND.
To Reproduce
Steps to reproduce the behavior:
Additional context
web.config
ancm.log
dotnet --info
The text was updated successfully, but these errors were encountered: