[2021-08-11 14:17:29,216[PID:11[ERROR[redash.app Exception on /api/jobs/e04f43a0-cf8d-4349-b7b4-c8d2f5e3ac5f [GET
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1949, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1935, in dispatch_request
return self.view_functions[rule.endpoint
File “/usr/local/lib/python3.7/site-packages/flask_restful/init.py”, line 458, in wrapper
resp = resource(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask_login/utils.py”, line 261, in decorated_view
return func(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask/views.py”, line 89, in view
return self.dispatch_request(*args, **kwargs)
File “/app/redash/handlers/base.py”, line 33, in dispatch_request
return super(BaseResource, self).dispatch_request(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask_restful/init.py”, line 573, in dispatch_request
resp = meth(*args, **kwargs)
File “/app/redash/handlers/query_results.py”, line 462, in get
job = Job.fetch(job_id)
File “/usr/local/lib/python3.7/site-packages/rq/job.py”, line 299, in fetch
job.refresh()
File “/usr/local/lib/python3.7/site-packages/rq/job.py”, line 518, in refresh
raise NoSuchJobError(‘No such job: {0}’.format(self.key))
rq.exceptions.NoSuchJobError: No such job: b’rq:job:e04f43a0-cf8d-4349-b7b4-c8d2f5e3ac5f’
[2021-08-11 14:17:29,218[PID:11[INFO[metrics method=GET path=/api/jobs/e04f43a0-cf8d-4349-b7b4-c8d2f5e3ac5f endpoint=job status=500 content_type=application/json content_length=36 duration=2.26 query_count=2 query_duration=4.99
Initially I created separate standalone Redis instance and separate PostgreSQL instance to work with this Redash setup.
Migration from standalone docker deployment to kubernetes deployment was made via database dump.
So users, groups and databases were migrated looks like more-less properly…
The current installation is configured to use 2 redash servers for redundancy. Does it make sense to shrink redash-servers and keep only one?
[2021-08-11 19:18:04,791[PID:10[ERROR[redash.app Exception on /api/jobs/b7e816d8-f112-4518-bd1a-492d6a72cf6c [GET
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1949, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python3.7/site-packages/flask/app.py”, line 1935, in dispatch_request
return self.view_functions[rule.endpoint
File “/usr/local/lib/python3.7/site-packages/flask_restful/init.py”, line 458, in wrapper
resp = resource(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask_login/utils.py”, line 261, in decorated_view
return func(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask/views.py”, line 89, in view
return self.dispatch_request(*args, **kwargs)
File “/app/redash/handlers/base.py”, line 33, in dispatch_request
return super(BaseResource, self).dispatch_request(*args, **kwargs)
File “/usr/local/lib/python3.7/site-packages/flask_restful/init.py”, line 573, in dispatch_request
resp = meth(*args, **kwargs)
File “/app/redash/handlers/query_results.py”, line 462, in get
job = Job.fetch(job_id)
File “/usr/local/lib/python3.7/site-packages/rq/job.py”, line 299, in fetch
job.refresh()
File “/usr/local/lib/python3.7/site-packages/rq/job.py”, line 518, in refresh
raise NoSuchJobError(‘No such job: {0}’.format(self.key))
rq.exceptions.NoSuchJobError: No such job: b’rq:job:b7e816d8-f112-4518-bd1a-492d6a72cf6c’
[2021-08-11 19:18:04,792[PID:10[INFO[metrics method=GET path=/api/jobs/b7e816d8-f112-4518-bd1a-492d6a72cf6c endpoint=job status=500 content_type=application/json content_length=36 duration=2.02 query_count=2 query_duration=3.62
Yes ,we had 2 redis nodes in cluster, SSL enabled.
REDASH_REDIS_URL set as rediss://user:pass@redishost:6379/0 format
and deployed with
–set externalRedis=${REDASH_REDIS_URL}
I removed secondary node and left only primary node. Then rebooted this Redis node and Redash as well
Still getting the same behaviour
If you use multiple redis’s you will definitely have jobs get lost. I’m not a K8S user but your problem is almost certainly that Redash is looking for a specific job number in a queue that doesn’t contain it.