Avatar of Stavros Steve
Stavros Steve
Flag for Greece asked on

Mobile devices sync with exchange 2013 has stop it receive mails

Halo folks, before three days all mobile devices that was syncing perfect has stop to receive new mails. Remove and recreate the VD nothing was change, also owa has error "could not load scripr 'preboot.js'

Any clues?
ExchangeMobile

Avatar of undefined
Last Comment
Stavros Steve

8/22/2022 - Mon
Jian An Lim

did you lately install windows patches/exchange patches?
try reboot the machine and see whether it still have the same problem.
Alan Hardisty

Run the Activesync test on the following site and report back any errors (masking your domain name):

https://testconnectivity.microsoft.com
Stavros Steve

ASKER
Jian An Lim thanks for your response but not nothing from patches where installed.

Alan below is the error that I get from ActiveSync testconnectivity:

Attempting to send the OPTIONS command to the server.
 
Testing of the OPTIONS command failed. For more information, see Additional Details.
 

Additional Details
 
Exception details:
Message: The underlying connection was closed: An unexpected error occurred on a receive.
Type: System.Net.WebException
Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Exchange.Tools.ExRca.Extensions.RcaHttpRequest.GetResponse()
Exception details:
Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Type: System.IO.IOException
Stack trace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
Exception details:
Message: An existing connection was forcibly closed by the remote host
Type: System.Net.Sockets.SocketException
Stack trace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
Elapsed Time: 14566 ms.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Jian An Lim

Firewall changes?
have you tried to hook up the phone internally (bypass firewall?)

and what exchange you are running on? what is your .net framework as well?

assuming you have recreate the Virtual directory using this? https://technet.microsoft.com/en-us/library/ff629372.aspx
Stavros Steve

ASKER
Jian, The firewall is off,my exchange is 2013, .NET is 4. Yes I have already remove and recreate VD of ActiveSync
Alan Hardisty

Do you have any AV Software on the server?  If so - what is it?  The error suggests communication is being killed by something, which is either hardware firewall or AV / Software firewall.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
I have installed Bitdefender with licence for exchange but I had installed two days before the activesync stop.
Alan Hardisty

Okay - can you disable the firewall on it please and test again.

Also - which version of BitDefender are you using please?
Stavros Steve

ASKER
Firewall on server is off attached the ver of bitdefender. Nothing different happened
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Alan Hardisty

When you say the Firewall on the server is off, do you mean the Windows Firewall, or the BitDefender Firewall?

Not seeing any attachment showing the version - sorry.

Alan
Stavros Steve

ASKER
Bit Defender Ver=7.70772

Bitdefender has np firewall only exchange security(Antimalware, Antispam & Antivirus).
Windows Firewall is OFF
Alan Hardisty

Okay - sounds like just the Basic BitDefender (not BitDefender Endpoint Security or similar), so it probably isn't Exchange aware.  Have you setup the exclusions from the following article to stop the AV software messing with Exchange?

https://technet.microsoft.com/en-us/library/bb332342(v=exchg.150)

Alan
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
I have check that bitdefender is exclude many items fom scanning but compare it with the list of Microsoft. I will check it if its 100% the same as vendor say.

Could I ask you if you have oea problem with error unavle to load script preboot.js
Alan Hardisty

Not seen that specific error, but things to check:

Are you on the latest Rollup / Update / Service Pack for Exchange?  If not - please update.
Are all Exchange Services that are set to Automatic Start, started?  If not - please start them.

Alan
Stavros Steve

ASKER
I have the latest cu 16 windows up to date all service is automatic allready remove and recreate OWA VD nothing change
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Alan Hardisty

Understood.

Were you having the problem before BitDefender was installed?
Stavros Steve

ASKER
Yes i had it
Alan Hardisty

Which router do you use and what management port does it use?  Is it grabbing port 443 for it's own use rather than passing the traffic through the router?

Alan
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
Its passing thru. The same router was working with the same conf with exchange2010
Alan Hardisty

Okay - do mobile devices sync internally (same site as the server is located) happily?
Stavros Steve

ASKER
Nothing.
Does anyone now how to repair ecxhange 2013
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Alan Hardisty

Okay - is anything else about Exchange not working?

What's the history of the server?  When did it last work and what changes were made since it last worked (if any)?

Single server or cluster?

All roles on one server or split roles?
Stavros Steve

ASKER
Single serve all roles in one. It has worked until 4-4-2017. Except OWA that it did not work few days ago with error unable to load script "preboot.js"  i am despert cause i search all the internet and nothing has fix my errors. Anyone that can help me.
Alan Hardisty

What changed?  Anything?  Any Updates Installed (check Control Panel).  Any Power Cuts / outages etc?

Something has to have changed somewhere.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
Sure that something happened but I am unable to find out. No power failure no updates.
Alan Hardisty

How did you remove and reinstall the Activesync virtual directory?  Do you have the commands you used (exactly)?
Stavros Steve

ASKER
Remove-ActiveSyncVirtualDirectory -Identity 'exchange13.pts.local\Microsoft-Server-ActiveSync (Default Web Site)'

New-ActiveSyncVirtualDirectory -WebSiteName "Default Web Site" -ExternalUrl "http://mail.pts.gr/Microsoft-Server-ActiveSync"

That was the command that I used to remove and recreate ActiveSync Virtual Directory
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Alan Hardisty

Okay - looks like you put the virtual directory back with the wrong syntax.

Please remove it again using:

Get-Activesyncvirtualdirectory | Remove-activesyncvirtualdirectory

Then run:

New-ActiveSyncVirtualDirectory –Identity "Microsoft-Server-ActiveSync (default web site)" -ExternalURL "https://mail.pts.gr/Microsoft-Server-ActiveSync"

Run IISRESET from an administrative command prompt and re-test on the test site.

Any better?
Stavros Steve

ASKER
An ActiveSync session is being attempted with the server.
 
Errors were encountered while testing the Exchange ActiveSync session.
 

Additional Details
 

Test Steps
 

Attempting to send the OPTIONS command to the server.
 
Testing of the OPTIONS command failed. For more information, see Additional Details.
 

Additional Details
 
Exception details:
Message: The operation has timed out
Type: System.Net.WebException
Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Exchange.Tools.ExRca.Extensions.RcaHttpRequest.GetResponse()
Elapsed Time: 100207 ms.


That is the error that I took after the command that you gave me
Alan Hardisty

When you ran the test, did you tick the Ignore trust for SSL option as your certificate is self issued?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
Yes I have tick Ignore
Alan Hardisty

Okay - when was the server last rebooted and can you reboot it now?  if you can, please do and re-test.
Stavros Steve

ASKER
Now its impossible I will do it next week and I will inform you
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Alan Hardisty

No problems.  I can connect to your Activesync directory, but without credentials, can't go any further, so it's looking happier and the test site is happier, but not quite there as it's timing out, but it's not erroring at least.

OWA looks happy too, but no cress means I can just look ;)

Were you using credentials when testing, of an Admin user?  If you were, can you please re-test with a non-admin user please.
Stavros Steve

ASKER
Autodiscovery it test it with user credential.

For Owa I still get the same error owa.png
Stavros Steve

ASKER
Hallo again folks, after all of the previous discussion I stil get error. Below what I get

Capture.PNG
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Alan Hardisty

Okay - please show me the result of the following Exchange Shell Command:

get-transportagent

From the BitDefender blurb on the web, it shows the following:

Mail Servers:
• Microsoft Exchange 2016, 2013, 2010, 2007,
• Physical and virtual servers
• Roles: Edge Transport, Hub Transport and Mailbox
• Protocols: SMTP, MAPI, Exchange ActiveSync

The Activesync part worries me and I'm reasonably convinced that BitDefender is the problem as the forcibly closed connections is typical AV behaviour.

Alan
Stavros Steve

ASKER
transport-service.png
That is the results
Stavros Steve

ASKER
I get same result after uninstall bit defender
Your help has saved me hundreds of hours of internet surfing.
fblack61
Alan Hardisty

Thanks - for now, please run the following to disable the AV Agents:

get-transportagent -identity Endpoint* | Disable-transportagent
get-transportagent -identity System* | Disable-transportagent

Once done, restart the Microsoft Exchange Transport Agent and then re-test on the test site.  Post results.

Thanks

Alan
Stavros Steve

ASKER
After your advice the same
Exception details:
Message: The underlying connection was closed: An unexpected error occurred on a receive.
Type: System.Net.WebException
Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Exchange.Tools.ExRca.Extensions.RcaHttpRequest.GetResponse()
Exception details:
Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Type: System.IO.IOException
Stack trace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
Exception details:
Message: An existing connection was forcibly closed by the remote host
Type: System.Net.Sockets.SocketException
Stack trace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
Elapsed Time: 17611 ms.
Alan Hardisty

Okay - plan B - please uninstall the BitDefender software, reboot and test again.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
I have done it and get the same result
Alan Hardisty

You've uninstalled, rebooted and still get the same problem?
Stavros Steve

ASKER
Yes my friend
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Alan Hardisty

Okay - was that just now, or before today?
Stavros Steve

ASKER
today before 2 hours
Alan Hardisty

If you have - then what are the other agents that are installed that we just disabled?

What other scanning software is installed on the server, because something is installed and it could be that causing you the problems?

Alan
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
Alan,

I have uninstall the bit defender and I have test it. I got the same result, and as you can understand I do not want to leave my mail server without protection cause before a month I had problem I got blacklist as a spammer. That's why after the test I was re-installed. The server does not have anything else installed. Below you will find what is installed on my exchange 2013 and you can see that is absolute clean

Untitled.png
Alan Hardisty

If you want some protection, install Vamsoft ORF Fusion on trial (42 days) and that will protect your inbound mail-flow, then remove BitDefender, reboot and leave the server to settle for a few hours.  Then test again.

If you need help configuring Vamsoft - let me know.

Alan
Stavros Steve

ASKER
alan I have disable everything on transport tansport-false.png
and I still have the same errorRCATestResult.html
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Alan Hardisty

Disabling isn't sufficient with AV software unfortunately - uninstalling is the only real way to guarantee that it's not messing with the server.

Sorry
Stavros Steve

ASKER
Ok Alan I will try later tonight cause now the mail server can not be restart and I will post the result after uninstalling again the AV.
Thanks for you useful advice, I will keep in touch
Stavros Steve

ASKER
Alan something else that I would like to ask you. If you see previous post you can see that also I have problem with owa. I am unable to find any solution on the net that will work. could you please check it and advise me.....
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Alan Hardisty

The two might be related - they might not be, but hopefully one may lead to a fix for the other.

It's also going to be difficult to try and resolve by Q&A, but I'll do my best.

Any event log errors that might throw some light on the issues?

Alan
Stavros Steve

ASKER
The error that I get when I login to owa is that is unable to load script/prebbot.js which exactly logs would you like to post for you
Alan Hardisty

Open up Event Viewer and see if there are any logs in the various logs there that are Critical / Warning etc (not informational etc).  Might be a pointer in the logs as to a problem.

Alan
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Stavros Steve

ASKER
Alan I have resolve the error and was not the bit defender but the log parser that I have install. Just uninstall it and the service is Ok now.

THANKS EVERYONE FOR THE HELP THAT YOU GAVE ME.

KEEP GOING THE GOOD WORK
Alan Hardisty

Random!  Glad that you've resolved the issue.  Not sure why LogParser would cause the issue, but happy that removing it has sorted the problem.

One to note for the future in my memory bank :)

Well done!!
ASKER CERTIFIED SOLUTION
Stavros Steve

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Stavros Steve

ASKER
It was the Wright for my error
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.