Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "Service Unavailable" error when browsing IIS website

I have a website in IIS 6.0 using an application pool with a custom service account. When I browse the website, I get an error "service unavailable" and the error in event log says

The identity of application pool 'SampleAppPool' is invalid, so the World Wide Web Publishing Service can not create a worker process to serve the application pool. Therefore, the application pool has been disabled.

I think the utility "Aspnet_regiis" can be used to grant access to an account to IIS metabase according to this article, but is that the right way to fix this issue? Because this utility is used for multiple things and may do more than just granting the permissions to the account, or should I just add the account manually to IIS_WPG group?

like image 805
RKP Avatar asked Jan 28 '11 16:01

RKP


People also ask

Why does it keep saying service is unavailable?

A 503 Service Unavailable Error is an HTTP response status code indicating that a server is temporarily unable to handle the request. This may be due to an overloaded server or a server that's down for maintenance.

How do I bypass service unavailable?

Retry the URL from the address bar again by selecting Reload or Refresh, the F5 key, or the Ctrl+R keyboard shortcut. Even though the 503 Service Unavailable error means there's an error on another computer, the issue is probably only temporary. Sometimes just trying the page again will work.

How do I fix HTTP Error 503 the service is unavailable in Eclipse?

The "503 Service Unavailable" is returned generally when the HTTP binding plugin did not discovered the CORE plugin. To verify this, you can start the NSCL using the java cmd, and enter "ss" to list all bundles, then check the status of the "org. eclipse.


2 Answers

When I see this in IIS 6 and the user has a custom app pool identity, the problem typically originates in the entry of credentials in the app pool properties. So there are generally two origins for the issue.

One is a simple typo in the credentials, unfortunately the form validation is not very good in IIS 6, so I often will have users change the identity of the app pool, then immediately check that the credentials "took" and/or check the System event log for W3SVC and related errors.

The second specific cause I see in this scenario is when people enter an Active Directory user, they sometimes forget to add the domain name. (e.g. DOMAIN\Username). Which leads me to the next point, the IIS_WPG is the builtin local group which grants members the required ACLs to run as an app pool identity. The aspnet_regiis.exe -ga grants the same thing to users, but IMO it is best suited for use when the IIS_WPG group is not an option. Also a dedicated app pool user account is generally a good idea. If the AD user password is changed, you'll bring your app to its knees until you again re-enter the credentials in the IIS Manager.

Edit: I added some para breaks to make this chunk more readable.

like image 193
unhappyCrackers1 Avatar answered Oct 03 '22 06:10

unhappyCrackers1


I had this same problem and I resolved it by starting the application pool. Ours was stopped even though IIS was running.

like image 43
Rob Jefferies Avatar answered Oct 03 '22 05:10

Rob Jefferies