INCIDENT REPORT
Ticket ID
SUP-0002
Title
Elasticsearch service name mismatch after upgrade
Severity
High
Environment
- Ubuntu 24.04 LTS
- Mastodon
- Docker Compose
- Elasticsearch
- Sidekiq
Issue
Sidekiq failed to connect to Elasticsearch after upgrading Mastodon.
Symptoms
- Temporary failure in name resolution
- Sidekiq unable to connect to Elasticsearch
- Search functionality unavailable
Impact
- Web UI affected
- API unavailable
- Federation temporarily interrupted
- Downtime: approximately 60–90 minutes
Investigation
- Checked running Docker containers
- Confirmed console container status
- Compared docker-compose.yml with the latest release
- Reviewed Elasticsearch configuration
- Compared ES_HOST with container names
Root Cause
The Elasticsearch container name had changed during the upgrade, but ES_HOST still referenced the previous service name.
Resolution
- Backed up existing docker-compose.yml
- Applied the latest compose configuration
- Updated ES_HOST from
elasticsearchtoes - Recreated containers
- Verified Sidekiq connection to Elasticsearch
Verification
- Elasticsearch reachable
- Sidekiq connected successfully
- Search functionality restored
- Federation resumed
Lessons Learned
- Configuration changes between releases should always be reviewed.
- Service names referenced in environment variables must match Docker Compose services.
Prevention
- Compare compose files before upgrades.
- Back up configuration files before modification.
- Validate service names after major upgrades.