Skip to content
Advertisement

Airflow: ‘ERR_CONNECTION_REFUSED’ on port 8080 & 8081

I installed airflow (v 2.2.4) on the ami below:

The folder it currently lives in is here (But should I relocate this somewhere else per these docs?)

JavaScript

AMI INFO:

JavaScript

And the issue I am having is that after I run airflow initdb – which works great, I run airflow webserver and when I try to copy in the http value after “Listening at”: I get a ERR_CONNECTION_REFUSED ‘this site can’t be reached’ error in google chrome (same with other browsers).

JavaScript

This initially happened when it was on port 8080, but per this post I tried a new port – but still no luck. Airflow Config details below:

JavaScript

Advertisement

Answer

That is not an Airflow problem – it’s basic remote computing problem.

You run Airflow on remote machine.

If you use localhost, you try to connect to your local one. You need to make sure you connect to the remote machine not to your local host.

You need to setup some way to open your port to be accessible from your local machine where Browser is.

You can do it for example in the way described here:

https://aws.amazon.com/blogs/aws/new-port-forwarding-using-aws-system-manager-sessions-manager/

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement