Skip to content

Fix live outage: migrate DB from Aiven trial to TiDB Cloud + pom cleanup - #10

Merged
bhoomishekapure merged 2 commits into
mainfrom
fix/db-host-tidb-migration
Jul 11, 2026
Merged

Fix live outage: migrate DB from Aiven trial to TiDB Cloud + pom cleanup#10
bhoomishekapure merged 2 commits into
mainfrom
fix/db-host-tidb-migration

Conversation

@Jenak26

@Jenak26 Jenak26 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Why

The live backend on Render was crash-looping (Exited with status 1). Root cause: the Aiven MySQL service was deleted when its 30-day free trial lapsed — its DNS host no longer resolves, so Spring Boot fails at boot with UnknownHostException / Communications link failure during Flyway init.

What changed

  • DEPLOYMENT.md + README.md — migrate the DB host from Aiven → TiDB Cloud Serverless (MySQL 8-wire compatible, free forever, auto-resumes from idle instead of being deleted). Documents the trial trap so it can't recur.
  • backend/pom.xml — drop hardcoded Testcontainers 1.20.1; inherit the Spring Boot BOM version (1.21.4) so the three testcontainers modules stay consistent.

Verification

Live backend is back up after repointing Render's SPRING_DATASOURCE_* env vars at TiDB:

GET /api/health -> {"status":"UP","service":"cryptovault"} (HTTP 200)

No application code changed; schema rebuilt cleanly via Flyway V1–V6 on the fresh DB.

Jenak26 added 2 commits July 11, 2026 11:54
Aiven's free MySQL is a 30-day trial; when it lapsed the service (and its
DNS host) was deleted, so the Render backend crash-looped on boot with
UnknownHostException / 'Communications link failure' -> exit status 1.
Switch DEPLOYMENT.md and README to TiDB Cloud Serverless (MySQL 8-wire
compatible, free forever, auto-resumes from idle) and document the trap.
Drop the hardcoded 1.20.1 on the three org.testcontainers deps so they
inherit the parent-managed version (1.21.4), keeping the testcontainers
modules consistent and clearing the 'overrides managed version' warnings.
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cryptovault Ready Ready Preview, Comment Jul 11, 2026 6:26am

@bhoomishekapure
bhoomishekapure merged commit d49a7a7 into main Jul 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants