Issue Summary
I am running into an issue upgrading a self-hosted redash server on AWS EC2 from v8 to v10.
I’ve followed the instructions in the upgrade guide, and the individual steps completed without errors,
but once I do a docker-compose up -d at the end, the server service keeps crashing and rebooting the workers constantly. There dont seem to be any useful errors to trouble shoot what is going on.
The database migration ran and the alembic_version in the database is currently: 89bc7873a3e0
which I believe is v10 Head.
These are the docker-compose logs for the server.
Attaching to redash_server_1
server_1 | [2021-11-30 00:50:29 +0000] [1] [INFO] Starting gunicorn 20.0.4
server_1 | [2021-11-30 00:50:29 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)
server_1 | [2021-11-30 00:50:29 +0000] [1] [INFO] Using worker: sync
server_1 | [2021-11-30 00:50:29 +0000] [9] [INFO] Booting worker with pid: 9
server_1 | [2021-11-30 00:50:29 +0000] [8] [INFO] Booting worker with pid: 8
server_1 | [2021-11-30 00:50:29 +0000] [10] [INFO] Booting worker with pid: 10
server_1 | [2021-11-30 00:50:29 +0000] [11] [INFO] Booting worker with pid: 11
server_1 | [2021-11-30 00:50:59 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:8)
server_1 | [2021-11-30 00:50:59 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:9)
server_1 | [2021-11-30 00:50:59 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:10)
server_1 | [2021-11-30 00:50:59 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:11)
server_1 | [2021-11-30 00:51:00 +0000] [16] [INFO] Booting worker with pid: 16
server_1 | [2021-11-30 00:51:00 +0000] [17] [INFO] Booting worker with pid: 17
server_1 | [2021-11-30 00:51:00 +0000] [18] [INFO] Booting worker with pid: 18
server_1 | [2021-11-30 00:51:00 +0000] [19] [INFO] Booting worker with pid: 19
This sequence just keeps repeating and the EC2 instance becomes unresponsive and needs to be restarted.
A summary of the issue and the browser/OS environment in which it occurs.
Technical details:
- Redash Version: v10.1.0
- Browser/OS: chrome/macos
- How did you install Redash: AWS Ec2 image for v8 upgraded via the upgrade process.
Docker-compose (updated for v10)
version: "2"
x-redash-service: &redash-service
image: redash/redash:10.0.0.b50363
depends_on:
- postgres
- redis
env_file: /opt/redash/env
restart: always
services:
server:
<<: *redash-service
command: server
ports:
- "5000:5000"
environment:
REDASH_WEB_WORKERS: 4
scheduler:
<<: *redash-service
command: scheduler
worker:
<<: *redash-service
command: worker
environment:
QUEUES: "periodic emails default"
WORKERS_COUNT: 1
scheduled_worker:
<<: *redash-service
command: worker
environment:
QUEUES: "scheduled_queries,schemas"
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
command: worker
environment:
QUEUES: "queries"
WORKERS_COUNT: 2
redis:
image: redis:5.0-alpine
restart: always
postgres:
image: postgres:9.6-alpine
env_file: /opt/redash/env
volumes:
- /opt/redash/postgres-data:/var/lib/postgresql/data
restart: always
ports:
- "5432:5432"
nginx:
image: redash/nginx:latest
ports:
- "80:80"
- "443:443"
depends_on:
- server
links:
- server:redash
volumes:
- /opt/redash/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- /opt/redash/nginx/certs:/etc/letsencrypt
- /opt/redash/nginx/certs-data:/data/letsencrypt
restart: always