Webmail goes down randomly (503 Service Unavailable)

firefoxchris
Posts: 15
Joined: Wed Jul 20, 2011 8:17 am

Webmail goes down randomly (503 Service Unavailable)

Postby firefoxchris » Wed May 03, 2017 4:14 pm

We have started to have sporadic crashing of MailEnable (9.62 Enterprise) Webmail – it started a few months ago and we have since upgraded mailenable to check all the IIS web applications were configured correctly and it was all fine, then on Saturday it happened again – so it looks to be a triggered error.
We've had to set up some monitoring on it and as soon as it goes down we get this message..

HTTP/1.1 503 Service Unavailable


The quickest way to get it back up and running is to run IISRESET from the command line on the server, comes back instantly.
On inspection of the event log theres some very *INTERESTING* items in there..

HTTPRequestValidationException (looks like some kind of attempt to inject script tags)

An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/5/ROOT
Process ID: 8272
Exception: System.Web.HttpRequestValidationException
Message: A potentially dangerous Request.RawUrl value was detected from the client (="...jsp?param=<SCRIPT>foo</SCRIPT>...").
StackTrace: at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_RawUrl()
at MailEnable.Web.IIS.AsyncHttpRequest.AssembleRequestString(HttpContext Context)
at MailEnable.Web.IIS.AsyncHttpRequest.ProcessAsyncHttpRequest(Object _State_NotUsed)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

Immediate crash of w3wp.exe process

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Web.HttpRequestValidationException
at System.Web.HttpRequest.ValidateString(System.String, System.String, System.Web.Util.RequestValidationSource)
at System.Web.HttpRequest.get_RawUrl()
at MailEnable.Web.IIS.AsyncHttpRequest.AssembleRequestString(System.Web.HttpContext)
at MailEnable.Web.IIS.AsyncHttpRequest.ProcessAsyncHttpRequest(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()



w3wp.exe fault in KERNELBASE.dll

Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x5215df96
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18340, time stamp: 0x57366075
Exception code: 0xe0434352
Fault offset: 0x0000000000008a5c
Faulting process id: 0x2050
Faulting application start time: 0x01d2c02e424e1849
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll





The above then repeats 3 times, then webmail is down with 503 error until you reboot or do IISRESET.


Looks like something it taking the application pool down until it is restarted.

Any ideas would be helpful - it does look like an externally triggered issue so its hard to replicate or predict when it might happen next.

Thanks for your time!

firefox

Benson
Posts: 5
Joined: Tue Jun 13, 2017 7:26 am

Re: Webmail goes down randomly (503 Service Unavailable)

Postby Benson » Tue Jun 13, 2017 7:29 am

We have also the same issue, webmail shutdown randomly after upgrading it to 9.7. have you resolved this kind of issues?

Benson
Posts: 5
Joined: Tue Jun 13, 2017 7:26 am

Re: Webmail goes down randomly (503 Service Unavailable)

Postby Benson » Tue Jun 13, 2017 7:45 am

have you resolved this? we also encountered the same issue after upgrading it to 9.7

Regards,
Benson

Benson
Posts: 5
Joined: Tue Jun 13, 2017 7:26 am

Re: Webmail goes down randomly (503 Service Unavailable)

Postby Benson » Wed Jun 14, 2017 9:47 am

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/14/2017 2:12:22 PM
Event time (UTC): 6/14/2017 6:12:22 AM
Event ID: d16ac6229d4244f89f411105af53bc33
Event sequence: 281241
Event occurrence: 8
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2/ROOT-1-131418286835845608
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files (x86)\Mail Enable\Bin\NetWebMail\
Machine name: MAILSERVER

Process information:
Process ID: 4168
Process name: w3wp.exe
Account name: MAILSERVER\IME_ADMIN

Exception information:
Exception type: ArgumentNullException
Exception message: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at MailEnable.LanguageTokens.GetAllTokens(Dictionary`2& LanguageNamespaceManager)
at MailEnable.LanguageTokens.GetAllTokens()
at MailEnable.Clients.WebMail.ScriptTranslationsArray.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



Request information:
Request URL: http://<email address url>/Mondo/lang/sys/Failure.aspx
Request path: /Mondo/lang/sys/Failure.aspx
User host address: 119.92.112.34
User:
Is authenticated: False
Authentication Type:
Thread account name: MAILSERVER\IME_ADMIN

Thread information:
Thread ID: 1445
Thread account name: MAILSERVER\IME_ADMIN
Is impersonating: False
Stack trace: at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at MailEnable.LanguageTokens.GetAllTokens(Dictionary`2& LanguageNamespaceManager)
at MailEnable.LanguageTokens.GetAllTokens()
at MailEnable.Clients.WebMail.ScriptTranslationsArray.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:




we need to restart the IIS to bring up the webmail

MailEnable-Ian
Site Admin
Posts: 8439
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Webmail goes down randomly (503 Service Unavailable)

Postby MailEnable-Ian » Thu Jun 15, 2017 3:24 am

Hi Benson,

Please lodge a support ticket via the MailEnable support form below, under "Upgrade", and provide access to the server via RDP or Teamviewer so we can analyze the configuration and errors in more detail.

https://www.mailenable.com/support/step1.asp
Regards,

Ian Margarone
MailEnable Support

firefoxchris
Posts: 15
Joined: Wed Jul 20, 2011 8:17 am

Re: Webmail goes down randomly (503 Service Unavailable)

Postby firefoxchris » Mon Jun 26, 2017 11:52 am

Hi Ian, Any thoughts on the log posted in my original post?

Benson
Posts: 5
Joined: Tue Jun 13, 2017 7:26 am

Re: Webmail goes down randomly (503 Service Unavailable)

Postby Benson » Mon Jul 10, 2017 3:48 am

Hi Ian,

any updates on this?

firefoxchris
Posts: 15
Joined: Wed Jul 20, 2011 8:17 am

Re: Webmail goes down randomly (503 Service Unavailable)

Postby firefoxchris » Tue Jul 25, 2017 7:57 am

Hi Ian, could you please help us with this?

firefoxchris
Posts: 15
Joined: Wed Jul 20, 2011 8:17 am

Re: Webmail goes down randomly (503 Service Unavailable)

Postby firefoxchris » Tue Aug 08, 2017 8:19 am

...anyone? :D

Is it fixed in the new version / preview?

Who is online

Users browsing this forum: No registered users and 11 guests