diff --git a/40-inventory/hosts.yml b/40-inventory/hosts.yml index ea51b67..4b7dde8 100644 --- a/40-inventory/hosts.yml +++ b/40-inventory/hosts.yml @@ -519,7 +519,24 @@ stale (May 12, gitignored by root .gitignore ''dist/''), replaced with dist from kit repo git.gnexus.space/root/gnexus-ui-kit HEAD e28f382; rebuild reproduced upstream-committed webclient/dist byte-for-byte (git clean); old dist backup /home/ubuntu/kit-dist-old-may2026-backup. - Follow-up: SYNAPSE_SOURCE_* integration off (optional env, empty defaults).' + Follow-up: SYNAPSE_SOURCE_* integration off (optional env, empty defaults). DB + BACKUPS (set up 2026-10-09 by rei, owner-requested): docker container postgres_db + (postgres:15, port 5432, restart always) hosts navidb (378MB, Navi''s DB, 135 + tables, pgvector) + mydatabase (7MB, default). Script /root/navi-db-backups/backup.sh + (root-only 700): pg_dump -U postgres navidb | gzip + pg_dumpall --globals-only + (roles navi/postgres needed for restore) -> /home/backups/navi-db/. Root crontab + daily 07:20 local Europe/Kyiv (= 04:20 UTC, same window as other backups). Retention + 10 days (find -mtime +10 -delete). Sanity: dump >= 10MB, contains CREATE TABLE, + globals non-empty; any failure -> exit 1, logged to backup.log. Verified manual + run 2026-10-09 14:13 local: EXIT=0, navidb-20261009-141326.sql.gz 211879867 bytes + + globals 581 bytes, dump tail ''PostgreSQL database dump complete''. GOTCHA: + do NOT add ''set -o pipefail'' globally to this script — ''zcat | grep -q'' sanity + check dies via SIGPIPE (exit 141) and a valid dump gets rejected; pg_dump exit + is checked via PIPESTATUS[0] instead. Restore sketch: docker exec postgres_db + psql -U postgres -c ''CREATE DATABASE navidb;'' then zcat navidb-.sql.gz | + docker exec -i postgres_db psql -U postgres -d navidb; roles first: zcat navidb-globals-.sql.gz + | docker exec -i postgres_db psql -U postgres. Disk: /home has 53G free (10-day + cycle ~2.1G).' owner: gmikcon purpose: Primary Navi agent instance (rei) + hive announce endpoint + local Ollama backend @@ -630,3 +647,63 @@ status: active type: vps user: ubuntu +- id: nextcloud + active_services: + - nextcloud + - ssh.service + addresses: + lan: + - 192.168.1.152 + docs: ../10-systems/hosts/nextcloud.md + environment: production + hardware_node: hp-proliant-dl380-g6 + last_reviewed: '2026-10-07' + name: nextcloud + notes: 'Nextcloud VM (libvirt domain ''nextcloud'' on bserv 192.168.1.130), 24 vCPU + / 32 GiB RAM, disk /mnt/main/vm_main/nextcloud. Upstream for cloud.gnexus.space + (TLS on internal-proxy-vps .226). Autostart enabled but does not recover OOM-killed + VMs. 2026-10-06 07:53 UTC: global OOM on bserv killed the qemu process (largest + allocation, ~28 GiB RSS); VM down ~31h until owner started it manually 2026-10-07 + 15:06 UTC. Standing risk: bserv memory tight (90/117 GiB used, swap full).' + owner: gmikcon + purpose: Nextcloud file cloud (cloud.gnexus.space) + source_of_truth: ssh-host-verified + status: active + type: vm + user: ubuntu +- id: jellyfin + active_services: + - jellyfin.service + - ssh.service + - hard-monitor.service + addresses: + lan: + - 192.168.1.153 + confidence: high + docs: ../10-systems/hosts/jellyfin.md + environment: home + last_reviewed: '2026-10-07' + listening_ports: + tcp: + - 22 + - 8096 + name: jellyfin + notes: 'Home LAN media server (Jellyfin :8096, native systemd service, no docker). + 16 GB RAM + 1.4 GB swap, swappiness 60. KNOWN ISSUE (diagnosed 2026-10-07 by rei, + read-only): daily OOM-kill cycle — ffmpeg spawned by Jellyfin grows to ~14.5-14.8 + GB RSS every evening (~20:48-21:12 UTC, kill time drifts later daily = suspected + slow leak), kernel OOM-killer kills it, jellyfin.service fails ''oom-kill'' and + systemd restarts it; swap fills to 100% then drains ~24h (daily swap_high/swap_recovered + pairs on panel id 39). Not cron/timers — trigger is Jellyfin activity (library + scan ~140 ffprobe + evening remux playback). Proposed fixes NOT applied (owner + approval required): systemd MemoryMax=4G drop-in, vm.swappiness 10, HW transcode/limits + in Jellyfin. GHard panel server id 39. Credentials: gnexus-creds secret ''jellyfin + (192.168.1.153) — SSH ubuntu'' (id 84a01b86-ec1d-41d1-927b-253f9b4c1770), SSH=sudo + same password.' + owner: gmikcon + purpose: Home media server (Jellyfin) + ram_gb: 16 + source_of_truth: ssh-host + status: active + type: server + user: ubuntu