Files
buryan-infra/docs/architecture/RUNBOOKS.md
T
architect bb54eaaeea
lint / hygiene (push) Failing after 17s
lint / hygiene (pull_request) Failing after 23s
standard / check (pull_request) Successful in 9s
[ARCH] Jellyfin API auth: Authorization MediaBrowser header
2026-11-26 23:11:09 +03:00

2.5 KiB

Tier0/1 Runbooks — Stage 0 draft

Статус: draft for operations; не выполнять production-команды без approval. Все команды read-only, кроме явно помеченных.

Authentik

  • health: curl -fsS http://192.168.1.114:9000/-/health/live/
  • logs: pct exec 114 -- docker logs --tail 100 authentik-server
  • incidents: проверить postgres/redis контейнеры; не рестартовать всё.
  • rollback: только после snapshot/backup.

Gitea

  • health: curl -fsS http://192.168.1.140:3000/api/v1/version
  • logs: pct exec 140 -- docker logs --tail 100 gitea
  • DB: gitea_db на CT151.
  • Resolved 2026-11-26: restore failure was a false positive. Temporary DB was created as SQL_ASCII; gitea_db is UTF8. UTF8 restore succeeded: 117 tables, 5 repositories. Always create restore DB with TEMPLATE template0 ENCODING 'UTF8'. Issue #202 closed.

PostgreSQL CT151

  • health: pg_isready -h 192.168.1.151 -p 5432
  • connections: select count(*) from pg_stat_activity;
  • backup: /mnt/archive/backups/db, /mnt/backups/postgresql.
  • restore: isolated DB; never overwrite production.
  • HA: backlog after RAM; no failover claim.

NATS

  • health: curl -fsS http://192.168.1.115:8222/varz
  • JetStream: curl -fsS http://192.168.1.115:8222/jsz
  • current: enabled, 0 streams/consumers.
  • restart: only with approval; check streams first.

Audit 360

  • health: curl -fsS http://127.0.0.1:9160/health
  • UI: http://192.168.1.10:9161/ (SSO).
  • backup: systemctl start audit360-backup.service
  • restore: current dump has 14 tables; test in temp DB.
  • tracker: audit.sprint_items, API /api/audit.

Hub Core

  • health: curl -fsS http://127.0.0.1:9120/status
  • logs: journalctl -u hub-core
  • no shell/DB access for agents outside Tool Gateway.

Jellyfin

  • health: curl -fsS http://192.168.1.103:8096/
  • API auth: Authorization: MediaBrowser Token="<key>"
  • X-Emby-Token/api_key may return 401; do not treat as invalid key.
  • native playback remains if Hub/LLM down.
  • do not rescan if media mount missing.

Seerr

  • health: curl -fsS http://192.168.1.121:5055/api/v1/status
  • image: ghcr.io/seerr-team/seerr:latest
  • no Jellyseerr migration without ADR.

Prism

  • health: curl -fsS http://127.0.0.1:8095/api/health
  • not the central UI; Work product.

Matrix

  • health: curl -fsS http://192.168.1.155:8008/_matrix/client/versions
  • preserve native clients if Hub down.

n8n

  • endpoint: TBD in Stage 0; do not assume 5678.
  • DB backup required.