Here is new error after docker-compose up command:
redash-master-postgres-1 | ERROR: relation "query_results" does not exist at character 13
redash-master-postgres-1 | STATEMENT: DELETE FROM query_results WHERE query_results.id IN (SELECT query_results.id
redash-master-postgres-1 | FROM query_results LEFT OUTER JOIN queries ON query_results.id = queries.latest_query_data_id
redash-master-postgres-1 | WHERE queries.id IS NULL AND query_results.retrieved_at < '2022-06-09T14:53:40.363540'::timestamp
redash-master-postgres-1 | LIMIT 100)
redash-master-worker-1 | [2022-06-16 14:53:40,399][PID:54][ERROR][rq.worker] sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "query_results" does not exist
redash-master-worker-1 | LINE 1: DELETE FROM query_results WHERE query_results.id IN (SELECT ...
redash-master-worker-1 | ^
redash-master-worker-1 |
redash-master-worker-1 | [SQL: DELETE FROM query_results WHERE query_results.id IN (SELECT query_results.id
redash-master-worker-1 | FROM query_results LEFT OUTER JOIN queries ON query_results.id = queries.latest_query_data_id
redash-master-worker-1 | WHERE queries.id IS NULL AND query_results.retrieved_at < %(retrieved_at_1)s
redash-master-worker-1 | LIMIT %(param_1)s)]
redash-master-worker-1 | [parameters: {'retrieved_at_1': datetime.datetime(2022, 6, 9, 14, 53, 40, 363540), 'param_1': 100}]
redash-master-worker-1 | (Background on this error at: http://sqlalche.me/e/f405)
redash-master-worker-1 | Traceback (most recent call last):
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context
redash-master-worker-1 | cursor, statement, parameters, context
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute
redash-master-worker-1 | cursor.execute(statement, parameters)
redash-master-worker-1 | psycopg2.errors.UndefinedTable: relation "query_results" does not exist
redash-master-worker-1 | LINE 1: DELETE FROM query_results WHERE query_results.id IN (SELECT ...
redash-master-worker-1 | ^
redash-master-worker-1 |
redash-master-worker-1 |
redash-master-worker-1 | The above exception was the direct cause of the following exception:
redash-master-worker-1 |
redash-master-worker-1 | Traceback (most recent call last):
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/rq/worker.py", line 934, in perform_job
redash-master-worker-1 | rv = job.perform()
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/rq/job.py", line 686, in perform
redash-master-worker-1 | self._result = self._execute()
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/rq/job.py", line 692, in _execute
redash-master-worker-1 | return self.func(*self.args, **self.kwargs)
redash-master-worker-1 | File "/app/redash/tasks/queries/maintenance.py", line 142, in cleanup_query_results
redash-master-worker-1 | ).delete(synchronize_session=False)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3727, in delete
redash-master-worker-1 | delete_op.exec_()
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 1693, in exec_
redash-master-worker-1 | self._do_exec()
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 1921, in _do_exec
redash-master-worker-1 | self._execute_stmt(delete_stmt)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 1698, in _execute_stmt
redash-master-worker-1 | self.result = self.query._execute_crud(stmt, self.mapper)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3375, in _execute_crud
redash-master-worker-1 | return conn.execute(stmt, self._params)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 988, in execute
redash-master-worker-1 | return meth(self, multiparams, params)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
redash-master-worker-1 | return connection._execute_clauseelement(self, multiparams, params)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
redash-master-worker-1 | distilled_params,
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context
redash-master-worker-1 | e, statement, parameters, cursor, context
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception
redash-master-worker-1 | util.raise_from_cause(sqlalchemy_exception, exc_info)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause
redash-master-worker-1 | reraise(type(exception), exception, tb=exc_tb, cause=cause)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 152, in reraise
redash-master-worker-1 | raise value.with_traceback(tb)
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context
redash-master-worker-1 | cursor, statement, parameters, context
redash-master-worker-1 | File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute
redash-master-worker-1 | cursor.execute(statement, parameters)
redash-master-worker-1 | sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "query_results" does not exist
redash-master-worker-1 | LINE 1: DELETE FROM query_results WHERE query_results.id IN (SELECT ...