4
EWS Issues in latest release
Question asked by Robbie Wright - 8/25/2015 at 8:45 AM
Unanswered
Running 14.2.5711, just moved a 6 person company over to SM, all using Outlook 2011. Tried setting everyone up as an Exchange account with EWS (autodiscover still is not working correctly) and EWS is sucking at life. Folders aren't syncing correctly, mail is being delayed severely (more than 4 hours) between SM and Outlook, while working fine in webmail.
 
Additionally, IIS and Smartermail are both consuming 100% of available CPU between the two of them nearly all the time. This didn't happen until the upgrade to 5711 in which we were hoping to fix the EWS syncing issues. Maybe some kind of application pool issue or who knows what. IIS restart on the server (not the site) does not fix the issue, nor does restarting SM service.
 
We're getting a handful of these in the error log:
 
[2015.08.25] [CurrentUser: unknown]
[2015.08.25] [8/25/2015 7:36:46 AM]
[2015.08.25] https://mail.domain.net/ews/Exchange.asmx
[2015.08.25] 
[2015.08.25] System.Exception: Null exception (likely a 404 or something else produced by IIS)
[2015.08.25] Application Error
[2015.08.25] =======
And these in the EWS log:
[2015.08.25] 05:57:18 AM - EXCEPTION System.Exception: Message does not exist
[2015.08.25] 
[2015.08.25] Server stack trace: 
[2015.08.25]    at MailService.Remoting.Mail.GetAttachmentInfo(String sessionStr, String emailAddress, String folderName, UInt32 messageUid)
[2015.08.25]    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
[2015.08.25]    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
[2015.08.25] 
[2015.08.25] Exception rethrown at [0]: 
[2015.08.25]    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
[2015.08.25]    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
[2015.08.25]    at SmarterMail.RemoteInterface.IMail.GetAttachmentInfo(String sessionStr, String emailAddress, String folderName, UInt32 messageUID)
[2015.08.25]    at SMWeb.HelperClasses.RemoteWrapper.GetAttachmentInfo(UserData USER, String email, String folder, UInt32 uid)
[2015.08.25]    at SMWeb.EWS.EwsItemFunctions.HandleAdditionalItemProperties(BasePathToElementType[] additionalProperties, MessageData itemData, MessageType& messageType, String parent, UserData owner)
[2015.08.25]    at SMWeb.EWS.EwsItemFunctions.SetItemProperties(ItemResponseShapeType shape, MessageData message, MessageType& messageType, String folderPath, UserData owner)
[2015.08.25]    at SMWeb.EWS.EwsItemFunctions.GetItem(GetItemType request)
Anyone aware of a method to turn off the EWS service from running and see if our CPU usage returns to normal?

3 Replies

Reply to Thread
0
Employee Replied
Employee Post
Robbie,
 
As Sys Admin, you can edit the domain(s) in question with EWS errors and under the Features tab you can deselect Exchange Web Services (EWS).
 
If you want to disable EWS for all domains, go to Settings | Defaults | Domain Defaults and uncheck EWS under the Features tab and then propagate to all domains.
0
Employee Replied
Employee Post
You may want to consider opening a support ticket so that we can get your EWS logs. If it is found to be a bug, your ticket would be refunded.
0
Robbie Wright Replied
Thanks Robert. Definitely looks like EWS. I disabled it for the domain in question and proc usage went back to normal, ie below 10%. I'll open a ticket later today.

Reply to Thread