-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I'm running into an intermittent issue with ASPNETCore 8.0.4 app published on IIS. The app also use Shadow Copy deployment.
What I see:
- Publish Application using dotnet-publish with WebDeploy options
- App publishes
- Usually it works right after publish
- Sometime later the app restarts and fails to reload with white ACNM White error page
- I reset the app pool
- App usually starts back up, but sometimes it continues to fail
The error I get looks like this:
I have many errors in the Windows error logs with different files pointing at the problem include runtime folders that don't exist anywhere on the dev install that is publishing the app:
In neither case the folder exists - but it also doesn't exist on Dev (used to) and I searched code there's no reference anywhere to this folder so there should be no reason for the app to be looking there in the first place. The odd thing is that it works initially but then fails at a later restart. It's not consistent - I've tried manually restarting the app pool and IIS reset and in most cases the app works fine. But at a later time the app - without any new updates - will then fail. IOW - it works at first, and then all of a sudden fails.
As mentioned app uses Shadow Copy to ensure that deployment doesn't fail due to locked files. To be sure I cleared out all Shadow Copy folders (so there's no left over anything) but that didn't seem to help.
This problem started recently - this same app (and also another app) have been running without issues for 2 years and now 3 of my applications are starting to fail with these errors. Initially I was on 8.0.2 (which was out of sync with dev) and I updated to latest (8.0.4) on the server to match dev and republished. At first this seemed to fix it, but the problem has now returned.
Expected Behavior
A site that doesn't crash when the app pool reccyles 😄
Steps To Reproduce
There's no direct repro scenario. See notes above.
Exceptions (if any)
No response
.NET Version
8.0.4
Anything else?
All runtimes are up to date with 8.0.4 on both dev and live.