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

Tasks fails behind when agent is behind proxy #55

Open
amejiasr opened this issue Apr 3, 2020 · 7 comments
Open

Tasks fails behind when agent is behind proxy #55

amejiasr opened this issue Apr 3, 2020 · 7 comments
Labels

Comments

@amejiasr
Copy link

amejiasr commented Apr 3, 2020

Hello,
We are experiencing an issue running this task from devops.

Task : Azure Data Factory Trigger
Description : Start/stop an Azure Data Factory Trigger
Version : 2.2.0
Author : Jan Pieter Posthuma
Help : More Information

We are using a private agent to run the whole pipeline, but when we reach the task stop adf triggers it fails with the next error:
"
2020-04-03T11:55:39.5962047Z ##[debug]a8353143-a5bb-4b8a-bc30-78206609c459 auth param serviceprincipalid = ***
2020-04-03T11:55:39.5964210Z ##[debug]a8353143-a5bb-4b8a-bc30-78206609c459 auth param serviceprincipalkey = ***
2020-04-03T11:55:39.5965894Z ##[debug]a8353143-a5bb-4b8a-bc30-78206609c459 data environmentAuthorityUrl = https://login.windows.net/
2020-04-03T11:55:39.5967922Z ##[debug]a8353143-a5bb-4b8a-bc30-78206609c459 auth param tenantid = ***
2020-04-03T11:55:39.5969647Z ##[debug]a8353143-a5bb-4b8a-bc30-78206609c459=https://management.azure.com/
2020-04-03T11:55:39.5971122Z ##[debug]Parsed task inputs
2020-04-03T11:55:39.6195880Z (node:35240) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-04-03T11:55:39.6851206Z ##[error]Error login in to Azure. Please check the Service Configuration. Error: Failed to acquire token for application with the provided secret.
Error: tunneling socket could not be established, cause=socket hang up.
2020-04-03T11:55:39.6863609Z ##[debug]Processed: ##vso[task.issue type=error;]Error login in to Azure. Please check the Service Configuration. Error: Failed to acquire token for application with the provided secret. %0AError: tunneling socket could not be established, cause=socket hang up.
2020-04-03T11:55:39.6865325Z ##[debug]task result: Failed
2020-04-03T11:55:39.6866464Z ##[error]Unhandled: Azure clients require credentials.
2020-04-03T11:55:39.6867714Z ##[debug]Processed: ##vso[task.issue type=error;]Unhandled: Azure clients require credentials.
2020-04-03T11:55:39.6869986Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unhandled: Azure clients require credentials.
2020-04-03T11:55:39.6870808Z ##[debug]task result: Failed
2020-04-03T11:55:39.6872330Z ##[debug]Processed: ##vso[task.complete result=Failed;]
2020-04-03T11:55:39.6891126Z ##[section]Finishing: Stops trigger to be deployed
"

We have tested the configuration from devops, agent and access to Azure and it is working fine, but we get the above error.

How can we solve it?
Alejandro Mejías

@liprec
Copy link
Owner

liprec commented Apr 8, 2020

If I look at the error message it looks like the service connection with Azure is not working properly:
Error login in to Azure. Please check the Service Configuration. Error: Failed to acquire token for application with the provided secret. %0AError: tunneling socket could not be established, cause=socket hang up.

Can you validate or reconfigure the Service connection with Azure?

@amejiasr
Copy link
Author

Sorry for the delay, It was bank holiday here...
I verified the service configuration in azure, and it works as you can see below:

image

@amejiasr
Copy link
Author

The connection service was tested with Azure support and they granted that the access to Azure was available and working rigth...

@liprec
Copy link
Owner

liprec commented Apr 17, 2020

Can your agent directly connect to Azure? Or does it connect via a proxy?

@amejiasr
Copy link
Author

amejiasr commented Apr 17, 2020 via email

@liprec
Copy link
Owner

liprec commented Apr 17, 2020

That is (probably) causing the issue as currently there is no special code regarding connection via a proxy.
I will take a look what I can do to enable connection via a proxy server.

@liprec liprec added bug and removed help wanted labels Apr 17, 2020
@amejiasr
Copy link
Author

amejiasr commented Apr 17, 2020 via email

@liprec liprec changed the title fail to run stop adf triggers from devops pipeline Tasks fails behind when agent is behind proxy Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants