Issue Summary
A have used redash/redash docker image and created a pod in kubernetes and two other pods for redis and postgres. after adding two sources all the connections to data sources failes with 500 status
here is the log of rq healthcheck command:
Traceback (most recent call last):
File “manage.py”, line 9, in
manager()
File “/usr/local/lib/python3.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask/cli.py”, line 586, in main
return super(FlaskGroup, self).main(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask/cli.py”, line 426, in decorator
return __ctx.invoke(f, *args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/app/redash/cli/rq.py”, line 100, in healthcheck
“worker_healthcheck”, “worker”, None, [(WorkerHealthcheck, {})]
File “/usr/local/lib/python3.7/site-packages/supervisor_checks/check_runner.py”, line 62, in init
self._rpc_client = childutils.getRPCInterface(self._environment)
File “/usr/local/lib/python3.7/site-packages/supervisor/childutils.py”, line 21, in getRPCInterface
return xmlrpclib.ServerProxy(‘http://127.0.0.1’, getRPCTransport(env))
File “/usr/local/lib/python3.7/site-packages/supervisor/childutils.py”, line 15, in getRPCTransport
return SupervisorTransport(u, p, env[‘SUPERVISOR_SERVER_URL’])
File “/usr/local/lib/python3.7/os.py”, line 681, in getitem
raise KeyError(key) from None
KeyError: ‘SUPERVISOR_SERVER_URL’
what is supervisor server url?
and here is the log of test connection:
[2021-10-20 09:08:26 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:11)
[2021-10-20 09:08:26,843][PID:11][INFO][metrics] method=POST path=/api/data_sources/1/test endpoint=datasourcetestresource status=500 content_type=? content_length=-1 duration=30468.55 query_count=4 query_duration=17.50
[2021-10-20 09:08:26 +0000] [11] [INFO] Worker exiting (pid: 11)
[2021-10-20 09:08:27 +0000] [359] [INFO] Booting worker with pid: 359
Technical details:
- Redash Version: 10.0.0
- Browser/OS: linux
- How did you install Redash: from docker image in kubernetes cluster