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

ClickHouse DB engine spec fails: Unrecognized common setting product_name #23291

Closed
2 of 3 tasks
cwegener opened this issue Mar 7, 2023 · 3 comments
Closed
2 of 3 tasks
Labels
#bug Bug report data:connect:clickhouse Related to Clickhouse

Comments

@cwegener
Copy link
Contributor

cwegener commented Mar 7, 2023

Superset fails to start when installing with the clickhouse extra requirement.

How to reproduce the bug

  1. Install apache-superset using the clickhouse extra (pip install 'apache-superset[clickhouse]')
  2. Run Superset: superset run
  3. Attempt to access the Superset UI: curl http://localhost:5000/login/
  4. See error: {"errors": [{"message": "Unrecognized common setting product_name", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}

Expected results

Superset server functions correctly and users are able to log in successfully.

Actual results

Superset server fails to login users

2023-03-07 13:10:16,143:ERROR:superset.views.base:Unrecognized common setting product_name
{"errors": [{"message": "Unrecognized common setting product_name", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}

Environment

(please complete the following information):

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

PR #23185 Introduces support for ClickHouse Connect but the version constraints for the clickhouse-connect package do not align with the API features used in PR #23185

The PR requires at least ClickHouse Connect version 0.5.4 which is the first version that introduces the product_name common setting. ClickHouse/clickhouse-connect@d6bfb61

@cwegener cwegener added the #bug Bug report label Mar 7, 2023
@villebro
Copy link
Member

villebro commented Mar 7, 2023

@cwegener would you consider fixing this by opening a PR that bumps the required version of clickhouse-connect? FYI @genzgd

@cwegener
Copy link
Contributor Author

cwegener commented Mar 7, 2023

Sorry. Forgot to open the PR. But yes, what @genzgd did in #23296 is exactly what is need for installations that use the clickhouse extras requirement in a pip installation. (tbh. most installations probably install clickhouse-connect directly without using the extras requirement ...)

@eschutho
Copy link
Member

eschutho commented Mar 8, 2023

I merged #23296, and will close this PR with the hopes that it's fixed now.

@eschutho eschutho closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report data:connect:clickhouse Related to Clickhouse
Projects
None yet
Development

No branches or pull requests

4 participants