Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application pools won't run

Tags:

iis

iis-7

I have two servers sitting behind a loadbalancer in my service tier. Both of them should be identical - IIS setup the same, AppFabric (to keep two services warmed up), app pools running under either a service account or the app pool identity. On one server, everything works. On the other server, three of my app pools (the two that AppFabric is warming up, under the service accounts, and one that's just a standard app pool with no changes made from default settings) stop running almost as soon as I start them up (sometimes on the first request).

I get five of the following error in the Application log each time I try to start one of the app pools:

There was an error during processing of the managed application service auto-start for configuration path: 'MACHINE/WEBROOT/APPHOST/Site/App'. The error message returned is: ''. The worker process will be marked unhealthy and be shutdown. The data field contains the error code.

The error code referenced is 80070005.

This is actually for the same Site/App regardless of the app pool being started (though it may change after recreating the app pools).

In the System log, I get the following warning five times before it errors (Application pool 'AppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.):

A process serving application pool 'AppPool' reported a failure during application preloading or service loading. The process id was '2396'. Please ensure that all application preload or service settings in the application pool are configured properly. The data field contains the error number.

The error code referenced is 80004005.

The AppPool here is the one being started.

I've tried recreating; I've tried uninstalling AppFabric (but we need it, so reinstalled and still no go). I'm out of ideas. Any suggestions?

EDIT: I tried copying the applicationHost.config over from the working server, but that didn't work either..

EDIT2: One of the app pools works when running under a real user account but doesn't when running under the ApplicationPoolIdentity....

(Also, we had an issue where the site was running under 2.0 and the apps were running under 4.0. That may have resolved the ones that are running as the service accounts.)

like image 924
zimdanen Avatar asked Apr 30 '13 19:04

zimdanen


2 Answers

I was just wrestling with this same problem for a few hours and found a different culprit.

I had added a new configuration section to my Web.config in a recent commit. I also added this section to a separate ERB file used by Puppet to generate a custom Web.config at the point of deployment. In this template file, I added the new section but forgot to include its declaration in <configSections>.

Once I added the declaration to the template, our app's test VMs were able to start up again and this error went away.

like image 92
Chad Levesque Avatar answered Oct 24 '22 08:10

Chad Levesque


While the app pools for the applications were 4.0, the app pool for the site itself was 2.0, causing some of the issues. We also had inetpub on a different drive, and we had to grant access to SERVER\Users.

like image 42
zimdanen Avatar answered Oct 24 '22 09:10

zimdanen