The Azure App Service Deploy task keeps on failing with the below error. On Multiple retries , same error is observed with "position" changing in every error message
[error]Failed to deploy App Service.
[error]Error Code: ERROR_CONNECTION_TERMINATED
More Information: Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.
Error: Unexpected end of file has occurred. The following elements are not closed: results. Line 1, position 4886.
Error count: 1.
@shyamsrini , Can you please share the current task version ?
We have fixed this issue in 3.3.0 version.
@vincentdass The issue was seen in 3.2.1 version. However, when creating the task .. I can only choose only version 3.* from the drop-down menu. Will the task always run with in 3.3.0 from now on?
@shyamsrini , The deployment is in progress and the fix will be available in a week or two.
Can you please try the following steps to mitigate the issue:

Is this issue happening consistently?
Have you deployed to this app previously without any issue or is this the first deployment for the app ?
Hi @shyamsrini , is the issue still happening for you? Can you please share the full debug logs with [email protected] . You can generate the debug logs by setting the system.debug variable to true in the variables tab
@arjgupta @vincentdass
Hi, the issue is not happening anymore , after moving to latest version. I havent seen the issue for past 4-5 days. Thanks a lot for your prompt response and your help .
I am currently hitting this issue with version 3.3.28
2017-12-07T21:06:00.6139340Z ##[warning]Error Code: ERROR_CONNECTION_TERMINATED
More Information: Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.
Error: Unexpected end of file has occurred. The following elements are not closed: results. Line 1, position 370.
Error count: 1.
@ggirard07 , Can you please share the full release log?
We retry the deployment again for ERROR_CONNECTION_TERMINATED and it should have fixed the issue.
Also share the whether the agent is private or hosted.
I just got one, how can i share the logs? I just don't have the system.debug enabled on that release...
@ggirard07 , share the current release log here. (copy-paste is also preferable).
You can also send the logs to [email protected] with issue title as subject.
I have the same issue while publish a web application to azure -
I am using B1 app service plan in azure web app.
Is it a connection issue or am I missing anthing ?
Tips to resolve this issue is much appreciated.
I'm unexpectedly hitting the same error. Seems very weird to me. I've been using this feature for several years and this is first time I hit this. Can盲t figure out why. How to debug?
@magnuskarlssonhm
system.debug with value true.Hi,
Who are you and what are you deploying to github? Is this related to Afound?
Regards/H盲lsningar
MAGNUS KARLSSON
BUSINESS TECHNOLOGY STRATEGIST
AFOUND / HM GROUP
PHONE: +46 73 074 1403
This email is nonbinding unless and until a more formal and definitive written contract between the parties is signed.
From: VAMsumannenavath notifications@github.com
Sent: 7 February, 2020 09:35
To: microsoft/azure-pipelines-tasks azure-pipelines-tasks@noreply.github.com
Cc: Karlsson Magnus (SEIT) Magnus.Karlsson@hm.com; Mention mention@noreply.github.com
Subject: Re: [microsoft/azure-pipelines-tasks] App Service Deploy fails with ERROR_CONNECTION_TERMINATED (#4171)
i am trying to deploy to function app using ci/cd pipeline and i am getting this error
2020-02-07T08:32:03.1876574Z ##[error]Failed to deploy web package to App Service.
2020-02-07T08:32:03.1885343Z ##[error]Error Code: ERROR_CONNECTION_TERMINATED
More Information: Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.
Error: Unexpected end of file has occurred. The following elements are not closed: results. Line 1, position 550.
Error count: 1.
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure-pipelines-tasks/issues/4171?email_source=notifications&email_token=AJUXJA3ZIEXAGTR5QRLI3YTRBUMMTA5CNFSM4DJKBVTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELCEI4Q#issuecomment-583287922, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJUXJA6EYVY4GXCSIRXDQH3RBUMMTANCNFSM4DJKBVTA.
General Information
The information contained in this e-mail message may be privileged, confidential, and protected from disclosure. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. If you think that you have received this e-mail message in error, please reply to the sender and delete this message from your computer.
I had fiddler capturing and that caused it. Close / stop capturing and that solved it.
I had fiddler capturing and that caused it. Close / stop capturing and that solved it.
Closing Fiddler solved the same problem for me, thank you!
Most helpful comment
I had fiddler capturing and that caused it. Close / stop capturing and that solved it.