revert: PR #117 healthcheck (HOTFIX — prod down) #119
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#119
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "revert/frontend-healthcheck-hotfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🚨 HOTFIX — Prod down after PR #117
Symptoms: Both
https://gendsgn.ruиhttps://obsidian.gendsgn.ruотвечаютFailed to connect 443(curl 7). Deploy run #25881565825 finished with failure.Root cause
PR #117 добавил
caddy.depends_on: { backend: service_healthy, frontend: service_healthy }. Frontend healthcheck командаwget --quiet --tries=1 --spider http://localhost:3000/не прошла вnode:20-alpinestandalone Next.js runner — вероятно/route отдаёт 404 (нет default route), либо start_period 30s + 5×5s = 55s не хватило для cold start standalone bundle.Caddy с
condition: service_healthyНЕ стартовал → reverse proxy не отвечает → все домены через Caddy недоступны, включая obsidian.gendsgn.ru (CouchDB через тот же Caddy +gendesign_sharednetwork).Fix
Полный
git revertкоммитаbade2f7(PR #117). Восстанавливает:depends_on: [backend, frontend](bare list — стартует когда containers running, не healthy)service_started(was:service_healthy)rosreestr2coord>=4.0.0(was:>=5.0.0; lock сейчас 5.3.3, downgrade-allowed)Forward fix (отдельный PR)
После hotfix-merge нужно правильно сделать healthcheck:
docker exec frontend-container wget --spider http://localhost:3000/site-finder— должен вернуть 200 а не 404start_periodдо 60-90s для standalone Next.jscondition: service_startedдля frontend — слишком хрупкое строить proxy на frontend health; backend health достаточноTest plan
compose up -drestores Caddy →curl https://obsidian.gendsgn.rureturns 200curl https://gendsgn.rureturns 200docker compose psshows(running)(без healthcheck — running это OK)Priority
URGENT — prod down. Merge immediately to restore service.
Reverts:
bade2f7/ #117Bot review — URGENT HOTFIX ✅
Чистый
git revertPR #117 — без посторонних изменений. CI зелёный (backend + frontend SUCCESS). Root cause описан верно:wget --spider http://localhost:3000/на Next.js standalone возвращает 404 (нет route на/), healthcheck никогда не пройдётcaddy.depends_on: service_healthyкаскадно валит весь reverse proxy → obsidian.gendsgn.ru тоже мёртв (общая сетьgendesign_shared)Mea culpa за PR #117 — я аппрувнул на предположении что
wget --spider /корректен для alpine/busybox, не проверив реальный response от Next.js standalone на root path. На forward-fix буду требоватьdocker exec wget --spider <real-route>в test plan перед аппрувом.approve merge