Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 3.99 KB

fleet-runbook.md

File metadata and controls

72 lines (55 loc) · 3.99 KB
title Meisdata Fleet – Runbook (1 page)
tags meisdata, solid, runbook, ops

Fleet Runbook

Goal: keep four Solid servers boringly stable. Fill <…> once, then use it as the single reference. Assets: see fleet-inventory.md.

1. Quick reference

Server Software Host Process name Data path Tier
solidweb.org NSS 46.163.118.221 <pm2 name> <path> community
solidweb.me CSS 46.163.118.221 <pm2 name> <path> community
teamid.live Pivot 92.205.21.120 <pm2 name> <path> production (Tafel)
solidweb.app JSS 92.205.60.157 <pm2 name> <path> production

Contacts: admin me@evering.eu · support: GitLab groups and Matrix (see inventory) · hosting: Host Europe support <hotline / ticket URL>.

2. Routine

When Check
Daily (2 min) Uptime Kuma green for all four, Netdata shows no disk > 80 % or memory pressure
Weekly apt list --upgradable, apply security updates, certbot certificates (expiry > 30 days), read PM2/Nginx error logs
Monthly Restore test of one backup into a temp folder, check disk growth per server, check release notes of NSS / CSS / Pivot / JSS / mashlib
Quarterly Review domain expiry dates, contracts and costs, the access list, and this runbook

3. Incident: a server is down or broken

  1. Confirm: open the site from a second network. Check Uptime Kuma.
  2. Look: ssh <host> then
    • pm2 status · pm2 logs <name> --lines 100
    • systemctl status nginx · nginx -t
    • df -h · free -m · journalctl -p err -n 50
  3. Fix in this order:
    1. Disk full → free logs/temp files; never delete pod data.
    2. App crashed → pm2 restart <name>; if it loops, read the log, then roll back (§5).
    3. Nginx → nginx -t && systemctl reload nginx.
    4. TLS expired → certbot renew then systemctl reload nginx.
    5. Machine unreachable → hosting panel or Host Europe support.
  4. Communicate: one line to users (Matrix / site banner / status page): what is affected, since when, next update time.
  5. Write down: time, cause, fix, prevention (5 lines, in the incident log).

4. Backup and restore

  • What: pod data path, server config, Nginx config, systemd/PM2 files, cert/DNS-hook config. Not the OS.
  • Where: encrypted restic repository at a different provider than the hosting (<repo URL>), password in the password manager.
  • Check: restic snapshots (latest snapshot < 24 h old).
  • Restore test (monthly): restic restore latest --target /tmp/restore-test --include <pod-path> then compare a few files and delete the temp folder.
  • Full restore: new Debian 13 VM → install the stack per the server's how-to → restic restore data and config → start → check login and one read/write → switch DNS.

5. Change / upgrade procedure

  1. Read the release notes. Announce planned downtime if > 5 min.
  2. Snapshot the VM (if available) and run a fresh backup.
  3. Upgrade the least critical server first, then the others (never two production servers on the same day).
  4. After the change: login test, create + read a test resource, check pm2 logs for errors for 10 minutes.
  5. Rollback: reinstall the previous version (note it before upgrading: <version>), or restore the VM snapshot / backup.
  6. Record version, date and result in the changelog.

6. Security basics

  • SSH by key only, no root login, fail2ban or CrowdSec active.
  • Security updates automatic; kernel/Node updates by hand (§5).
  • Secrets only in the password manager, never in repos (public repos: Zahlen_Finanzamt, ai-input, ai-output-archive must be checked).
  • Abuse report or suspected breach: take the affected pod offline, preserve logs, change credentials, tell affected users; ask a data-protection advisor when personal data may be involved.

7. Planned work

Rebuild solidweb.org and solidweb.me on Debian 13 (Debian 10 has had no security updates since June 2024), then teamid.live to Debian 13 in H2 2027.