question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clickhouse connection issue

See original GitHub issue

After “pip install superset-clickhouse”, I couldn’t add the clickhosue in superset as below. Screen Shot 2020-05-02 at 6 08 14 PM

The port change can make effect. If I don’t use 8123, it reports error since it is http connectin. However, no matter what I set for other fields like user, password. It will always gave error in server log as below.

`DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8123 DEBUG:urllib3.connectionpool:http://localhost:8123 “POST / HTTP/1.1” 401 None Unexpected error Code: 194, e.displayText() = DB::Exception: Password required for user default (version 19.17.5.18 (official build))

ERROR:superset.views.core:Unexpected error Code: 194, e.displayText() = DB::Exception: Password required for user default (version 19.17.5.18 (official build))

INFO:werkzeug:127.0.0.1 - - [03/May/2020 01:08:00] “POST /superset/testconn HTTP/1.1” 400 -`

Any idea? Thanks!

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

  • Go to Sources -> Databases
  • Click on ‘+’ button
  • fill Database and URI
  • press Test Connection

Environment

(please complete the following information):

  • superset version:0.30.1 or 0.36.0 for apache-superset
  • python version: 3.6.9
  • sqlalchemy-clickhouse version: 0.1.5.post0

Checklist

Make sure these boxes are checked 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

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Sam--Shancommented, May 19, 2020

I tried re install infi.clickhouse_orm and it works. pip uninstall infi.clickhouse_orm pip install infi.clickhouse_orm==1.0.4

0reactions
rogerlzpcommented, Nov 26, 2020

cool, it works for me. For local install, you can use the infi.clickhouse_orm-1.0.4-py2-none-any.whl file directly, if you are using python2; However, you have to download infi.clickhouse_orm-1.0.4.tar.gz, and using “python3 setup.py install” command to install it when you are using Python3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | ClickHouse Docs
Check the IP Access List, if you are attempting to connect from outside the allowed list then your connection will fail. Self-managed ClickHouse...
Read more >
Can not connect to my ClickHouse server
Ensure that the clickhouse-server is running · Ensure you use the proper port ip / interface? · For secure connection: · Check for...
Read more >
Why I am not able to connect to ClickHouse? - ChistaDATA
So we have a standard, yet simple approach to troubleshooting ClickHouse connection issues, This blog is about how we help our customers in...
Read more >
Issues · ClickHouse/clickhouse-connect - GitHub
Issues list ; Multiple hosts in connection string · #74 opened on Nov 17 ; http cannot support large data select request ·...
Read more >
(Hack to get Auth to work) ERROR: default: Authentication ...
Issue : When using Sqlalchemy(Python/Pandas Dataframe) to connect to Clickhouse DB, below error occurs when attempting to authenticate ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found