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

Test Connection /w Trino Data Source provides no useful error information #6073

Closed
ilsaloving opened this issue May 31, 2023 · 3 comments
Closed
Labels

Comments

@ilsaloving
Copy link

Issue Summary

I am trying to set up a Trino connection in redash and the connection is failing with zero useful information regarding why.

Steps to Reproduce

  1. Set up a test Trino instance
  2. Configure a Redash DS for that instance

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

I expect it to work. If it doesn't work, I expect a useful message regarding why it doesn't work.
Instead, I get None: Max retries exceeded with url: /v1/statement (Caused by None)

Even when I start the cluster /w logging set to debug, all I get in the logs are:

[2023-05-31 17:35:31,021][PID:11][DEBUG][metrics] table=users query=select duration=4.07
[2023-05-31 17:35:31,027][PID:11][DEBUG][metrics] table=groups query=select duration=1.69
[2023-05-31 17:35:31,032][PID:11][DEBUG][metrics] table=data_sources query=select duration=1.85
[2023-05-31 17:35:33,087][PID:11][INFO][metrics] method=POST path=/api/data_sources/3/test endpoint=datasourcetestresource status=200 content_type=application/json content_length=95 duration=2061.48 query_count=4 query_duration=10.85

Technical details:

  • Redash Version: 10.1.0.b50633
  • Browser/OS: irrelevant
  • How did you install Redash: docker_compose
@konnectr konnectr added the Bug label Jul 21, 2023
@masayuki038
Copy link
Collaborator

Reproduced that. Sure.
image

@masayuki038
Copy link
Collaborator

Now, we can see more error information - "Failed to establish a new connection: [Errno -2] Name or service not known".
image

I think that we can close this issue since it is enough to know the cause of errors.

@ilsaloving @konnectr What do you think?

@justinclift
Copy link
Member

@ilsaloving Our latest development source code - and the redash/redash:preview docker image on Docker Hub now show more information when it fails, as per the screenshot by @masayuki038 above.

I'll close this issue for now, but feel free to re-open it if you still have Trino problems with our more recent stuff. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants