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

Redshift could not connect to the server #3162

Closed
toncek87 opened this issue Jul 19, 2017 · 5 comments
Closed

Redshift could not connect to the server #3162

toncek87 opened this issue Jul 19, 2017 · 5 comments

Comments

@toncek87
Copy link

I tried connect to my Redshift database. There are millions of rows. When query time is longer than
one minute, Superset response is "could not connect to the server". I checked Allow Run Async, but there is another message "Failed to start remote query on worker. Tell your administrator to verify the availability of the message queue." Could you help me with this issue?

@xrmx
Copy link
Contributor

xrmx commented Jul 19, 2017

You can start by reading the documentation https://superset.incubator.apache.org/installation.html#sql-lab

@toncek87
Copy link
Author

thanks, i missed it

@toncek87 toncek87 reopened this Jul 20, 2017
@toncek87
Copy link
Author

toncek87 commented Jul 20, 2017

i've installed Redis, run superset worker and run superset server..
SQLlab gives me "Failed to start remote query on worker. Tell your administrator to verify the availability of the message queue."

and console where worker run:

[2017-07-20 14:19:45,658: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
Traceback (most recent call last):
File "/home/rko/venv/lib/python3.4/site-packages/redis/connection.py", line 129, in _read_from_socket
raise socket.error(SERVER_CLOSED_CONNECTION_ERROR)
OSError: Connection closed by server.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/rko/venv/lib/python3.4/site-packages/celery/worker/consumer/consumer.py", line 318, in start
blueprint.start(self)
File "/home/rko/venv/lib/python3.4/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "/home/rko/venv/lib/python3.4/site-packages/celery/worker/consumer/consumer.py", line 594, in start
c.loop(*c.loop_args())
File "/home/rko/venv/lib/python3.4/site-packages/celery/worker/loops.py", line 88, in asynloop
next(loop)
File "/home/rko/venv/lib/python3.4/site-packages/kombu/async/hub.py", line 345, in create_loop
cb(*cbargs)
File "/home/rko/venv/lib/python3.4/site-packages/kombu/transport/redis.py", line 1039, in on_readable
self.cycle.on_readable(fileno)
File "/home/rko/venv/lib/python3.4/site-packages/kombu/transport/redis.py", line 337, in on_readable
chan.handlerstype
File "/home/rko/venv/lib/python3.4/site-packages/kombu/transport/redis.py", line 714, in _brpop_read
**options)
File "/home/rko/venv/lib/python3.4/site-packages/redis/client.py", line 585, in parse_response
response = connection.read_response()
File "/home/rko/venv/lib/python3.4/site-packages/redis/connection.py", line 577, in read_response
response = self._parser.read_response()
File "/home/rko/venv/lib/python3.4/site-packages/redis/connection.py", line 238, in read_response
response = self._buffer.readline()
File "/home/rko/venv/lib/python3.4/site-packages/redis/connection.py", line 168, in readline
self._read_from_socket()
File "/home/rko/venv/lib/python3.4/site-packages/redis/connection.py", line 143, in _read_from_socket
(e.args,))
redis.exceptions.ConnectionError: Error while reading from socket: ('Connection closed by server.',)

Where can be a problem? Thank you

@toncek87 toncek87 reopened this Jul 20, 2017
@xrmx
Copy link
Contributor

xrmx commented Jul 20, 2017

You have misconfigured celery, it's looking for an amqp broker while you said you want to use redis.

@xrmx
Copy link
Contributor

xrmx commented Jul 20, 2017

You have to add to add proper quoting to your code excerpts otherwise it's impossible to help you.

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

No branches or pull requests

2 participants