docs: add server runtime audit #1
Reference in New Issue
Block a user
Delete Branch "jann/m2dev-server:claude/server-runtime-audit"
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?
Ground-truth snapshot of what the VPS is actually running, versus what the existing
docs/debian-runtime.mdsays it should be running. Source is a read-only recon session today (2026-04-14).Main findings
db(PID 1788997, port 9000) is alive. None ofgame_auth,channel1_core1..3,channel99_core1are running — and more importantly their binaries are not present inshare/bin/on the VPS at all. Deploy pipeline that drops per-instance binaries intochannels/<ch>/<core>/<instance>has not been run.metin-db.serviceis currently flapping (deactivating (stop-sigterm)in systemctl). Two fresh 97 MB core dumps inchannels/db/from 13:24 and 13:25 today.syserr.logfull ofCPeerBase::Recv() Connection reset by peereven though nothing should be connecting.channels/db/VERSION.txtreportsdb revision: b2b037f-dirty— build was from a dirty tree.dbbinds0.0.0.0:9000, not127.0.0.1. Should probably be locked down to loopback unless Contabo firewall rules already block it.share/conf/db.txt/game.txtcontainbootstrap/change-meplaceholders; real values come from/etc/metin/metin.env(root:root 600). Which env var names the source actually reads is still unverified.metin-serverumbrella →metin-db→metin-db-ready(wait-port helper) →metin-auth+metin-game@*. The oldstart.py/stop.pyin the repo are FreeBSD-legacy, not wired in.What the PR adds
docs/server-runtime.md— full engineer-to-engineer writeup: processes, systemd units, config files, DB, logging, ports, data layout, disk usage, "how to restart channel1_core2 cleanly", and an open-questions list.docs/server-topology.md— ASCII diagram of the intended architecture plus a table of every process, its unit, ports, role and config file.Notes
docs/debian-runtime.md/docs/database-bootstrap.md/docs/config-and-secrets.mdrather than duplicating them.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.