Home doesn't exist

webserver comes up, and then after login as admin it redirects to http%3A%2F%2Flocalhost%3A8080%2Fhome which doesn’t appear to exist.

The error I get in the browser is ‘too many redirects’. I’m sure something is wrong in my configuration, but it’s not obvious (to me) what. Can you suggest tools for further diagnosis?

Thanks,
Keith

I thought I would share the resolution of this problem in case anyone else encounters it.

This problem came about while developing a DAG to test a part of our pipeline. The repo I was working with used a Dockerfile which was designed for automated testing and was not suitable for a DAG. Once I reverted to the stock Dockerfile the problem went away and I can now load localhost:8080/home just fine.

Generally, the too many redirect error log is resolved by making sure you are running the latest CLI version.

For some reason the following Docker file causes problems even with the most recent Astro CLI. Perhaps it has to do with Airflow 2.0.0?

FROM astronomerinc/ap-airflow:2.0.0-buster-onbuild

Copy the test script over so it can be executed.

The ap-airflow image has default behavior so this can be accessed

by overriding the entrypoint via the commandline.

docker run --entrypoint /opt/app/test.sh

COPY bin/test.sh /opt/app/test.sh