astronomer / astronomer-cosmos

Run your dbt Core projects as Apache Airflow DAGs and Task Groups with a few lines of code
https://astronomer.github.io/astronomer-cosmos/
Apache License 2.0
767 stars 170 forks source link

[Bug] after upgrading from 1.6 to 1.7.1, docs does not open in airflow #1309

Closed corsettigyg closed 1 week ago

corsettigyg commented 2 weeks ago

Astronomer Cosmos Version

1.7.1

dbt-core version

1.8.1

Versions of dbt adapters

LoadMode

DBT_LS_MANIFEST

ExecutionMode

LOCAL

InvocationMode

SUBPROCESS

airflow version

2.9.0

Operating System

linux

If a you think it's an UI issue, what browsers are you seeing the problem on?

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

What happened?

After upgrading cosmos to its latest version, the docs started asking for the user & password. when I provide the default admin, I get blocked from the docs

Image

Relevant log output

No response

How to reproduce

  1. Deploy airflow with dbt-cosmos installed on docker
  2. try to access the docs after setting it up in the config

Anything else :)?

No response

Are you willing to submit PR?

Contact Details

No response

dosubot[bot] commented 2 weeks ago

Hey @corsettigyg! I'm here to help you with your issue. I'm a bot designed to assist with bug fixes, questions, and becoming a contributor. Let's tackle this together!

The issue you're experiencing with accessing the docs after upgrading to Cosmos 1.7.1 might be related to changes in authentication or access control. In version 1.7.1, there were updates that could affect authentication, such as the fix for the Clickhouse profile login mechanism [1]. Additionally, there are known compatibility issues between Cosmos 1.7.1 and Airflow 2.9.0, which might also contribute to the problem [2].

To address this, you might want to check the authentication settings and ensure they are correctly configured. If the default credentials (admin) are not working, it could be due to changes in how authentication is handled in the new version. You may need to verify or update the credentials used for accessing the docs.

If the issue persists, consider reviewing the deployment configuration, especially if you're using the Official Apache Airflow Helm Chart, as there might be specific settings that need adjustment.

To continue talking to Dosu, mention @dosu.

tatiana commented 1 week ago

Thanks for reporting this bug, @corsettigyg , and I'm sorry for introducing it in the first place.

I hope this will resolve it: https://github.com/astronomer/astronomer-cosmos/pull/1312