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

error: HTTPSConnectionPool - Failed to establish a new connection: [Errno 110] Connection timed out #13

Open
jordan-mow opened this issue Jun 22, 2023 · 3 comments

Comments

@jordan-mow
Copy link

SAS Viya information -

Version:
Long-Term Support 2023.03
Release:
20230620.1687221111013

Currently trying to execute an example DAG provided in the git repository. Made sure that /Public/Airflow/demo_studio_flow_1.flw exists within the environment, yet am still unable to run the DAG successfully.

Here is the abridged log from the run attempt attached.

20230622-airflow-dag-failure.txt

I've run the command the Airflow Provider is trying to execute via Postman and can see the following -
URL - {{protocol}}://{{url}}/studioDevelopment/code
Body -
{
"reference": {
"type": "content",
"path": "/Public/Airflow/demo_studio_flow_1.flw",
"mediaType": "application/vnd.sas.dataflow"
},
"initCode": true,
"wrapperCode": false
}

And I get the appropriate response -

{
"code": ""
}

Any guidance on how to navigate this would be appreciated.

@AndrewShakinovsky-SAS
Copy link
Collaborator

If you look at the log, you will see this:
airflow.exceptions.AirflowException: SASStudioFlowOperator error: HTTPSConnectionPool(host='URL', port=443): Max retries exceeded with url: /studioDevelopment/code (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f31918ca1d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

Note that it says host="URL"
It looks like you are trying to connect to 'URL' instead of to your Viya deployment. You should configure your sas connection in Airflow ui correctly.

@jordan-mow
Copy link
Author

Sorry, I should of been more explicit. I've replaced the actual URL with URL just for safety concerns. It is using the correct URL in actuality.

@AndrewShakinovsky-SAS
Copy link
Collaborator

In that case, it sounds like it's unable to connect from the airflow worker to your Viya deployment. Since you are able to connect via postman, Viya is accessible, but it sounds like it's not accessible from the airflow worker. You might need to consult airflow docs. You could also try running Airflow standalone on your local machine to see if its able to connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants