superset icon indicating copy to clipboard operation
superset copied to clipboard

Clickhouse connection issue

Open chuang39 opened this issue 6 years ago • 10 comments

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!

  • [X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [X] I have reproduced the issue with at least the latest released version of superset.
  • [X] 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.

chuang39 avatar May 03 '20 01:05 chuang39

I have used, clickhouse-sqlalchemy instead of sqlalchemy-clickhouse, seems to have a recent version, but i am finding some diferent problems for it(missing first 2 rows of result).I am trying to find a solution also.

rubenSastre avatar May 15 '20 11:05 rubenSastre

@rubenSastre @chuang39 hi,did you find any solution.i came across the issue,too,but different message:

INFO:werkzeug:218.4.91.131 - - [18/May/2020 08:05:46] "POST /superset/testconn HTTP/1.1" 400 - DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 42.159.158.64:8123 DEBUG:urllib3.connectionpool:http://42.159.158.64:8123 "POST / HTTP/1.1" 500 None Unexpected error Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name (version 20.4.1.2909)

ERROR:superset.views.core:Unexpected error Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name (version 20.4.1.2909)

Sam--Shan avatar May 18 '20 08:05 Sam--Shan

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

Sam--Shan avatar May 19 '20 01:05 Sam--Shan

I have another error:

image

mdianjun avatar Jul 09 '20 10:07 mdianjun

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Sep 07 '20 10:09 stale[bot]

same issue, can someone take a look?

dubin555 avatar Sep 10 '20 07:09 dubin555

I can take a look.

villebro avatar Sep 10 '20 08:09 villebro

pip install infi.clickhouse_orm==1.0.4 Thanks , it also work to me

victorcheng2333 avatar Sep 21 '20 10:09 victorcheng2333

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

work for me ,thx.

windylcx avatar Oct 09 '20 04:10 windylcx

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.

rogerlzp avatar Nov 26 '20 03:11 rogerlzp