IIS 7 and Above
http error 503 - windows server 2012 r2 datacenter
Last post Sep 13, 2017 08:12 AM by fab777
Sep 08, 2017 06:34 AM|_marie|LINK
hi, i have a windows server 2012 R2 Datacenter and I am getting http error 503 upon launching an app on the browser. I have tried to uninstall and reinstall my iis and i still get the same error. Can somebody help. Appreciate your kindness, thanks!
Sep 08, 2017 08:18 AM|fab777|LINK
HTTP 503 means "Service Unavailable". The most common cause for this is when your website is started but its ApplicationPool is not. Can you check this and in the IIS access logfile can you get the sc-substatus code ?
Sep 08, 2017 08:29 AM|_marie|LINK
Can you check this and in the IIS access logfile can you get the sc-substatus code - how do I check this sc-substatus code? Thanks
Sep 08, 2017 08:54 AM|fab777|LINK
So I assume your ApplicationPool is started, right?
Regarding the sc-substatus code, well, first, locate your IIS access logfile. Default path is : %SystemDrive%\inetpub\logs\LogFiles
Inside the current log file (named with todays date) your will find all the requests your webserver handled. If the field 'sc-substatus' has been activated, just after the HTTP code (503 in your case, labelled sc-status) you'll have the code (sc-substatus)
Sep 08, 2017 09:14 AM|_marie|LINK
No it's not. My ApplicationPool is stopped. And whenever i restart it, it shows started but when i browse the site again, it goes back to stopped...
Sep 08, 2017 09:42 AM|fab777|LINK
OK, so you probably have a problem with the ApplicationPool Identity. What are you using for it?
Sep 08, 2017 12:51 PM|Paul Lynch|LINK
The reason for the app pool not starting (or being stopped) is probably written to the Application event log. I'd also recommend enabling app pool recycle event logging using this command :
Set-WebConfigurationProperty '/system.applicationHost/applicationPools/applicationPoolDefaults' -Name recycling.logEventOnRecycle -value "Time, Requests, Schedule, Memory, IsapiUnhealthy, OnDemand, ConfigChange, PrivateMemory"
Sep 11, 2017 07:51 AM|Yuk Ding|LINK
Did you install the windows process activation service? To ensure the application pool could works fine, you may need to check whether windows process activation is working fine. In addition, when you get 503 and application pool stop working ,then you may
need to check the application pool identity.
So which application pool identity are you using in application pool->advanced setting? Besides, if you were not hosting asp.net application, which authenticated user did you set in site level->basic setting-> connect as? specific user or pass through user?
Just ensure these identities has permission.
To further diagnose the issue, please post the error message in event viewer application/system event with WAS source.
Also debug diagnostic tool could help you analyse the dump if there is a crash in it.
Sep 13, 2017 04:12 AM|_marie|LINK
getting many warning and error on WAS related such as:
* Application pool 'Platform_Apps' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
*A process serving application pool 'Platform_Apps' suffered a fatal communication error with the Windows Process Activation Service. The process id was '5836'. The data field contains the error number.
*A process serving application pool 'PlatformApp' terminated unexpectedly. The process id was '3612'. The process exit code was '0xfffffffe'.
And....Platform_Apps in Application Pool always stops whenever we want to launch it via browser (which we will get error 503)
Sep 13, 2017 08:12 AM|fab777|LINK
OK, and I insist : what do you use as ApplicationPool Identity? If you use specific account, be sure to use the right password?