Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure App Service Deploy fails behind proxy #10815

Closed
TWJH opened this issue Jul 3, 2019 · 19 comments
Closed

Azure App Service Deploy fails behind proxy #10815

TWJH opened this issue Jul 3, 2019 · 19 comments
Assignees
Labels
Area: AzureAppService Label to monitor Azure App Service issues Area: Release bug

Comments

@TWJH
Copy link

TWJH commented Jul 3, 2019

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: AzureRmWebAppDeployment

Environment

  • Server - Azure DevOps Server 2019

    • If using TFS on-premises, provide the version: 17.143.28621.4 (AzureDevOps2019)
  • Agent - Private:

    • If using private agent, provide the OS of the machine running the agent and the agent version:

    • Windows Server 2016 (version 1607)

    • Agent Version: 2.144.2

Issue Description

Task: Azure App Service Deploy.
Version: 3.4.16.

When attempting to deploy to Azure app service from behind our corporate proxy, the task fails with the following error:

[error]Error: Failed to fetch App Service '*****' publishing credentials. Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 8080 8080:80

The private agents I have running have all be configured following this guide https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/proxy?view=azure-devops&tabs=windows and are able to communicate through our proxy and download packages from nuget without issue as part of our build pipelines. It appears that the Azure App Service Deploy task is using node to communicate with Azure but node doesn't appear to have any knowledge of the proxy config that has been applied to the agent.

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

Release.zip

@ghost ghost assigned kmkumaran Jul 3, 2019
@vincent1173 vincent1173 added the Area: AzureAppService Label to monitor Azure App Service issues label Jul 4, 2019
@vincent1173
Copy link
Contributor

@TWJH , Can you please share the debug logs for the release?
Also, the above error is thrown when it tries to hit the "management.azure.com" URL.
Is the above URL added in proxy list?
You can bypass the URL by following the steps here. This requires agent restart.

@TWJH
Copy link
Author

TWJH commented Jul 5, 2019

@vincentdass , I have attached the worker logs, I assume that is the debug log you are referring to?

The only route out through to the internet from our corporate network is through the proxy server, so there is no way to bypass it by using the .proxybypass file.

Worker_20190705-064752-utc.log

@vincent1173
Copy link
Contributor

@TWJH , Please add a variable system.debug to true and rerun the release and share the release logs for that

@TWJH
Copy link
Author

TWJH commented Jul 15, 2019

@vincentdass , Please see attached logs.

logs.zip
Worker_20190715-064513-utc.log

@vincent1173
Copy link
Contributor

vincent1173 commented Jul 16, 2019

@TWJH , Can you check if you are able to ping the Application URL, SCM URL and login.windows.net and management.azure.com from the agent machine?
The above sites are hit by the taks at runtime.

@TWJH
Copy link
Author

TWJH commented Jul 16, 2019

@vincentdass Yes I can ping all of the above listed endpoints from the agent machine.

@TWJH
Copy link
Author

TWJH commented Jul 24, 2019

@vincentdass Are there any further updates to this issue please?

@RoshanKumarMicrosoft
Copy link
Contributor

@vincentdass can you please have a look into it ?

@MarkoMei
Copy link

As azure-pipeline-tasks uses typed-rest-client, this might give more details: microsoft/typed-rest-client#163

@TWJH
Copy link
Author

TWJH commented Aug 27, 2019

@vincentdass I have updated to DevOps server 2019 to "17.153.29207.5 (AzureDevOps2019.Update1) " and the problem still persists. Is there any update to this bug being resolved please?

2019-08-27T13:43:26.3513063Z ##[section]Starting: Deploy to staging slot
2019-08-27T13:43:26.4001448Z ==============================================================================
2019-08-27T13:43:26.4001635Z Task         : Azure App Service deploy
2019-08-27T13:43:26.4001862Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2019-08-27T13:43:26.4002015Z Version      : 3.4.29
2019-08-27T13:43:26.4002088Z Author       : Microsoft Corporation
2019-08-27T13:43:26.4002190Z Help         : [More information](https://aka.ms/azurermwebdeployreadme)
2019-08-27T13:43:26.4002284Z ==============================================================================
2019-08-27T13:43:28.1560454Z Got connection details for Azure App Service:'discoverdev'
2019-08-27T13:44:31.7412416Z ##[error]Error: Failed to fetch App Service 'discoverdev-staging' publishing credentials. Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 8080 8080:80
2019-08-27T13:44:31.7488123Z ##[section]Finishing: Deploy to staging slot

@vincent1173
Copy link
Contributor

@SumiranAgg , please look into this.

@TWJH
Copy link
Author

TWJH commented Sep 26, 2019

@vincent1173 @SumiranAgg @RoshanKumarMicrosoft Hi, could you tell me if this bug being investigated at all please?

@eaarora-ms
Copy link
Contributor

@TWJH Are you still facing this issue?

@TWJH
Copy link
Author

TWJH commented Nov 18, 2019

@eaarora-ms Yes I am.

@chshrikh chshrikh assigned niadak and unassigned kmkumaran Dec 5, 2019
@TWJH
Copy link
Author

TWJH commented Dec 30, 2019

I have updated my DevOps server installation to 2019 1.1 (17.153.29522.3 (AzureDevOps2019.Update1.1)), updated the agents and the issue persists.

@SumiranAgg
Copy link
Contributor

@TWJH Apologies for delay. Are you still seeing the issue?
Just FYI, we do pickup proxy settings from agent and handle it in task execution. Are you able to run other tasks (Working with some other azure resource) successfully?

@TWJH
Copy link
Author

TWJH commented Mar 9, 2020

@SumiranAgg Hi, I have just tried again and get the following error:

Error: Failed to fetch App Service 'discoverdev-staging' publishing credentials. Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 8080 8080:80

We have no other tasks running against azure. Only releasing to app services.

@chshrikh chshrikh assigned Vijay-train and unassigned niadak Mar 13, 2020
@Roshan-Kumar-Microsoft Roshan-Kumar-Microsoft self-assigned this Jul 2, 2020
@TWJH
Copy link
Author

TWJH commented Jul 6, 2020

Hello. Is there any progress with fixing this issue please?

@TWJH
Copy link
Author

TWJH commented Jul 7, 2020

After further investigation ​we had to remove the agent, then reinstall after adding the VSTS_HTTP_PROXY environment variable hack with the proxy details. The connectivity is then established successfully.

Please close this problem. Thank you for your help.

@TWJH TWJH closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: AzureAppService Label to monitor Azure App Service issues Area: Release bug
Projects
None yet
Development

No branches or pull requests