IIS 7 Service Unavailable 503 ERROR - iis-7

I am encountering a 503 - Service Unavailable error. I checked the event log and found this:
The Module name FastCgiModule path
C:\WINDOWS\System32\inetsrv\iisfcgi.dll
returned an error from registration.
The data is the error.
Note: Every time I try to visit my website, I found that the DefaultAppPool will auto-stop.
And also found this in event log:
Application pool 'DefaultAppPool' is
being automatically disabled due to a
series of failures in the process(es)
serving that application pool.

This is because your application pool is crashing more than 5 times in 5 minutes [default settings - Rapid Fail]
Instead of disabling Rapid Fail, you should consider taking Crash Dumps and try to find out the root cause. http://blogs.msdn.com/b/rahulso/archive/2006/03/02/what-is-a-crash-technically-in-asp-net-and-what-to-do-if-it-happens.aspx

Related

Google Cloud Composer The server encountered a temporary error and could not complete your request

After running for a couple of days Google Cloud Composer web UI returns the 502 Server Error indefinitely:
Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.
The only way to fix it is to recreate the Composer environment. Though after running for a couple of days the new environment crashes with the same error.
Image version: composer-1.4.0-airflow-1.10.0
Python version: 3
Anyone knows what's the root cause?
I don't run Cloud Composer but I suspect that there's a case where the webserver has exited from all the web worker threads. This can sometimes happen when airflow has an extended timeout reading or writing to the database; either due to a held lock, or network connection issues. It probably is configured to restart if it fully exits, but there are some cases were the airflow webserver command will still hold on without exiting even though all web workers have exited.
Alternatively the 502 is about the identity provider implemented for GCP. If that's the case you might find you need to sign out of your Google login and use the sign in flow provided by Airflow (if it responds to a private browser session or a signed out session).
I was facing the same 502 error and it turned out to be an issue with the DAG itself. As mentioned:
https://cloud.google.com/composer/docs/how-to/using/troubleshooting-dags
"The web server parses the DAG definition files, and a 502 gateway timeout can occur if there are errors in the DAG."
Visible in Composer / Monitoring
Web server was affected by an issue with the DAG itself. We solved it by deleting the recently added DAGs, after couple of minutes the Airflow UI was up.

Error Deploying Web application into my local IIS

I am making a publish of my application to my local IIS and I am getting in my browser an error:
Service Unavailable
HTTP Error 503. The service is unavailable.
I went to my IIS and noticed that the 'DefaultAppPool' stopped, restarted again and try to access to the app again and same error and the app pool stopped again.
then I went to the Event Viewer and I was getting this error:
The worker process for application pool 'DefaultAppPool' encountered an error
'Cannot read configuration file due to insufficient permissions' trying to read configuration data from file
'\?\C:\Windows\Microsoft.NET\Framework\v4.0.30319\CONFIG\machine.config', line number '0'. The data field contains the error code.
any help??

DirectoryServicesCOMException 80072020 From IIS 7.5 Site Running Under ApplicationPoolIdentity

I'm having trouble hunting down an issue where an ASP.NET 4 application fails while trying to get user groups for a given user from time to time. The application pool associated with this application is setup to run under ApplicationPoolIdentity.
Exception Info
System.DirectoryServices.DirectoryServicesCOMException
HRESULT: 80072020
Message: An operations error occurred.
Extended Message: 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1
Stack Trace
System.DirectoryServices.DirectoryEntry.Bind(Boolean)
System.DirectoryServices.DirectoryEntry.Bind()
System.DirectoryServices.DirectoryEntry.get_AdsObject()
System.DirectoryServices.DirectorySearcher.FindAll(Boolean)
System.DirectoryServices.DirectorySearcher.FindOne()
95%-99% of the time, this function works fine, but from time to time, it just starts failing. When I change the application pool to use LocalSystem or NetworkService, it starts working. When I change back to ApplicationPoolIdentity it begins failing again. The only way to get the site working again with ApplicationPoolIdentity is to reboot the server.
I was able to find a similar issue here, but the resolution was a reboot as well. I'd like to find a more permanent solution short of changing the identity of the application pool.
While a reboot will resolve the issue temporarily, there is a Microsoft hotfix KB2545850 that offers a permanent fix to the issue.

ApplicationPoolIdentity 503 Error

This morning I have tried to load all my websites on my local PC that has IIS 7.5 and straight away i get a HTTP 503 Error.
HTTPerr log says: 2012-08-17 08:43:26 127.0.0.1 49326 127.0.0.1 80 HTTP/1.1 GET / 503 3 AppOffline web80
So my application pool is not starting. I try restarting the app pool in IIS and I still get the error. When I look at the App pool I see that it has stopped. So I look in Event viewer:
Error: WAS : Application pool 'web80' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
Warning: WAS : The Windows Process Activation Service failed to create a worker process for the application pool 'web80'. The data field contains the error number.
Looking around the web and stackoverflow, the problem seems to be caused by app pools identity being apppoolidentity. I changed this to local system and it works.
But why out the blue would this just stop working? I've read another solution that you need to provide permission to
C:\Windows\System32\config\Schema but I don't have a Schema folder.Could that be the reason why?
Really all I want to know is how do I get the application pool to reuse the apppoolidentity or where can I look to try things out? I could try re-intall iis but if I can figure out what causes this, I might be able to prevent it in the future.
Thanks
I just ran into this recently. In my scenario, I had the Application Pool Identity set to my Active Directory account under the 'Custom account' setting. Recently I updated my password so I just reset my password for the 'Custom account' accordingly and I was able to reload my application.

Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool

Log Name: System
Source: Microsoft-Windows-WAS
Date: 13.06.2012 08:34:45
Event ID: 5002
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: WIN-QU022VN756J
Description:
Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
Please provide near solution for this problem. I will appreciate the suggestion
IIS comes with a feature called Rapid-Fail Protection. By default an App Pool is configured to become disabled if a worker in the pool crashes 5 times within a 5 minute span.
The thresholds of this setting are able to be modified by right clicking on the App Pool going to Advanced Settings and modifying the 'Rapid-Fail Protection' properties. However, this event indicates that there is likely a serious issue in your application that needs to be resolved.
I got tensed about this issue and finally i got solved.
Please make sure that the following option is correct in Advance Settings in Application pool.
Application Pools>Default Application Pool > Right click and select Advance Settings.
And then check whether the option "Enable 32 bit applications" has been set as "False". It should be False
I got solved by did the above change.
I Got this error when i installed URL Rewrite Module, install correct URL Rewrite Module to fix this.
To verify this error cause of URL Rewrite Module check events logs .
windows logs>> System>> Click on recent Error, In Error details
it will show "Application pool 'DefaultAppPool(or
YourApplicationpool)' is being automatically disabled due to a
series of failures in the process(es) serving that application
pool."
Windows logs>> Application>> click on recent error, In error
details it will show "The Module DLL
'C:\Windows\system32\inetsrv\rewrite.dll' failed to load. the data
is the error."
I hope this will help You.
It's a registry permission issue. This should help:
http://support.microsoft.com/kb/885654
You might also need to add read/write permissions for NT AUTHORITY\NETWORK SERVICE (or NT AUTHORITY\SYSTEM or the account used by your application pool) to c:\Windows\TEMP.
See http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/176e9b6d-7b1b-4667-b55e-330bec133f37/

Resources