elementary-data / elementary

The dbt-native data observability solution for data & analytics engineers. Monitor your data pipelines in minutes. Available as self-hosted or cloud service with premium features.
https://www.elementary-data.com/
Apache License 2.0
1.94k stars 165 forks source link

on-run-end hook failing: 'Tried to commit transaction on connection "master", but it does not have one open!' #1712

Closed stevenconnorg closed 2 weeks ago

stevenconnorg commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2024-10-01 at 3 58 02 PM

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Would you be willing to contribute a fix for this issue? Let us know if you're willing to contribute so that we'll be able to provide guidance.

franloza-jt commented 3 weeks ago

@stevenconnorg We had the same issue after upgrading to dbt-redshift~=1.8.0 package, which was required to use Versionless in dbt Cloud. We solved it by turning this flag to False in dbt_project.yml file:

flags:
  restrict_direct_pg_catalog_access: False

https://docs.getdbt.com/reference/global-configs/redshift-changes#the-restrict_direct_pg_catalog_access-flag

I think the issue is that elementary does not work well when this flag is turned on.

stevenconnorg commented 2 weeks ago

Thanks so much @franloza-jt ! That worked for me. I will submit an issue here instead.