diff --git a/10-systems/hosts/gitbucket.md b/10-systems/hosts/gitbucket.md new file mode 100644 index 0000000..f63effc --- /dev/null +++ b/10-systems/hosts/gitbucket.md @@ -0,0 +1,65 @@ +--- +title: VM gitbucket (GitBucket + navi instance pilar) +type: host +ip: 192.168.1.156 +purpose: GitBucket git hosting + navi agent instance (pilar, profile navi_code) +owner: gmikcon +status: active +confidence: 100 +last_reviewed: 2026-09-19 +review_interval: 90d +source_of_truth: ssh-host-and-owner-confirmed +--- + +# VM gitbucket (GitBucket + navi instance pilar) + +## Overview + +KVM/QEMU VM on `hp-proliant-dl380-g6` (192.168.1.130). Primary role: GitBucket +git hosting (see [applications/gitbucket.md](../applications/gitbucket.md)). +Since 2026-09-19 the VM also hosts the navi-1 agent instance **pilar** +(profile `navi_code`), deployed by navi (rei) from the `deploy` branch. + +## Technical Details + +- **IP:** 192.168.1.156 +- **OS:** Ubuntu 18.04.6 LTS (Bionic Beaver), kernel 4.15.0-213-generic +- **Users:** `gitbucket` (service owner, home = /home/ubuntu), `navi` (navi instance, home = /home/navi), `ubuntu` (admin; SSH/sudo credentials — see gnexus-creds secret `bserv@192.168.1.130`) +- **Resources:** 4 vCPU, 8 GiB RAM, 100G raw disk `/mnt/main/vm_main/gitbucket` (p1 root 28G — 21% used; p5 data 71G — 6% used; observed 2026-09-19) +- **Hypervisor storage:** /mnt/main 2.5T, 730G free (69%) + +## Navi instance pilar (deployed 2026-09-19) + +- **Instance name:** pilar +- **Instance ID:** c6962c3e-… (full value in /home/navi/navi-1/instance.json) +- **Repo:** /home/navi/navi-1 (branch `deploy`, commit e276b1e) +- **Service:** navi.service (systemd, enabled, Restart=always) +- **Server port:** 8099 (0.0.0.0), health endpoint http://127.0.0.1:8099/health +- **Postgres:** docker container `navi-postgres` (pgvector/pgvector:pg16) on **127.0.0.1:5433** — port shifted from the default 5432 because GitBucket's system PostgreSQL 10 occupies 5432; DATABASE_URL in .env points to 5433 +- **Python:** standalone CPython 3.12.14 at /home/navi/navi-1/.python/ (system python 3.6 is too old) +- **Swarm:** .swarm-key copied from the hive host (rei, 192.168.1.168); HIVE_URL=http://192.168.1.168:8087; hive.announce_ok confirmed in journalctl; visible in `peer list` as `pilar — 192.168.1.156:8099 [online]` +- **Ollama backend:** OLLAMA_HOST=https://ollama.com, model glm-5.3-flash:cloud; Ollama Cloud credential configured in .env (value stored in gnexus-creds secret "Ollama Cloud API key (navi swarm)") +- **Webclient/auth:** NAVI_WEBCLIENT_ENABLED=false, NAVI_AUTH_ENABLED=false (default deploy shape) +- **Deploy notes:** + - docker-ce 24.0.2 + docker-compose-plugin v2.18.1 installed from download.docker.com (bionic repo); git/curl installed via apt + - asyncpg 0.29.0 has no wheel for glibc 2.27 and clang is absent — built from source with `CC=gcc CXX=g++` before re-running install.sh (script is idempotent) + - user `navi` has NOPASSWD sudoers (/etc/sudoers.d/navi) so install.sh's internal sudo works over non-interactive SSH; the `navi` user password matches the hypervisor bserv credential (gnexus-creds) +- **Known non-critical:** /health embed.ok=false (embed backend 401) — same as other swarm instances + +## Access + +- SSH: `ubuntu@192.168.1.156`, credentials in gnexus-creds secret `bserv@192.168.1.130`; root SSH denied +- No QEMU guest agent on this VM; disk-level inspection via read-only loop mount on the hypervisor (`losetup -f --show -r -P /mnt/main/vm_main/gitbucket`, then `mount -o ro,noload`) + +## Listening ports (TCP, verified 2026-09-19) + +- 22 — sshd +- 80 — GitBucket (java, gitbucket.war) +- 5432 — system PostgreSQL 10 (GitBucket DB, localhost only) +- 5433 — navi-postgres docker (localhost only) +- 8099 — navi-server (pilar) + +## Notes + +- GitBucket java process has been running since Aug 13 with ~2.4G RSS; VM has 8G RAM — navi instance coexists comfortably. +- Do not bind anything else to 5432/5433; both are taken. diff --git a/90-maintenance/pending-changes/20260919194456-8c1e159a.json b/90-maintenance/pending-changes/20260919194456-8c1e159a.json new file mode 100644 index 0000000..51825e7 --- /dev/null +++ b/90-maintenance/pending-changes/20260919194456-8c1e159a.json @@ -0,0 +1,19 @@ +{ + "id": "20260919194456-8c1e159a", + "kind": "doc", + "target": "10-systems/hosts/gitbucket.md", + "summary": "Create host doc for VM gitbucket: GitBucket + navi instance pilar (deployed 2026-09-19)", + "reason": "New navi instance pilar deployed on VM gitbucket (192.168.1.156) on 2026-09-19; host doc created per inventory creation workflow (docs field must point to an existing doc).", + "payload": { + "content": "---\ntitle: VM gitbucket (GitBucket + navi instance pilar)\ntype: host\nip: 192.168.1.156\npurpose: GitBucket git hosting + navi agent instance (pilar, profile navi_code)\nowner: gmikcon\nstatus: active\nconfidence: 100\nlast_reviewed: 2026-09-19\nreview_interval: 90d\nsource_of_truth: ssh-host-and-owner-confirmed\n---\n\n# VM gitbucket (GitBucket + navi instance pilar)\n\n## Overview\n\nKVM/QEMU VM on `hp-proliant-dl380-g6` (192.168.1.130). Primary role: GitBucket\ngit hosting (see [applications/gitbucket.md](../applications/gitbucket.md)).\nSince 2026-09-19 the VM also hosts the navi-1 agent instance **pilar**\n(profile `navi_code`), deployed by navi (rei) from the `deploy` branch.\n\n## Technical Details\n\n- **IP:** 192.168.1.156\n- **OS:** Ubuntu 18.04.6 LTS (Bionic Beaver), kernel 4.15.0-213-generic\n- **Users:** `gitbucket` (service owner, home = /home/ubuntu), `navi` (navi instance, home = /home/navi), `ubuntu` (admin; SSH/sudo credentials — see gnexus-creds secret `bserv@192.168.1.130`)\n- **Resources:** 4 vCPU, 8 GiB RAM, 100G raw disk `/mnt/main/vm_main/gitbucket` (p1 root 28G — 21% used; p5 data 71G — 6% used; observed 2026-09-19)\n- **Hypervisor storage:** /mnt/main 2.5T, 730G free (69%)\n\n## Navi instance pilar (deployed 2026-09-19)\n\n- **Instance name:** pilar\n- **Instance ID:** c6962c3e-… (full value in /home/navi/navi-1/instance.json)\n- **Repo:** /home/navi/navi-1 (branch `deploy`, commit e276b1e)\n- **Service:** navi.service (systemd, enabled, Restart=always)\n- **Server port:** 8099 (0.0.0.0), health endpoint http://127.0.0.1:8099/health\n- **Postgres:** docker container `navi-postgres` (pgvector/pgvector:pg16) on **127.0.0.1:5433** — port shifted from the default 5432 because GitBucket's system PostgreSQL 10 occupies 5432; DATABASE_URL in .env points to 5433\n- **Python:** standalone CPython 3.12.14 at /home/navi/navi-1/.python/ (system python 3.6 is too old)\n- **Swarm:** .swarm-key copied from the hive host (rei, 192.168.1.168); HIVE_URL=http://192.168.1.168:8087; hive.announce_ok confirmed in journalctl; visible in `peer list` as `pilar — 192.168.1.156:8099 [online]`\n- **Ollama backend:** OLLAMA_HOST=https://ollama.com, model glm-5.3-flash:cloud; Ollama Cloud credential configured in .env (value stored in gnexus-creds secret \"Ollama Cloud API key (navi swarm)\")\n- **Webclient/auth:** NAVI_WEBCLIENT_ENABLED=false, NAVI_AUTH_ENABLED=false (default deploy shape)\n- **Deploy notes:**\n - docker-ce 24.0.2 + docker-compose-plugin v2.18.1 installed from download.docker.com (bionic repo); git/curl installed via apt\n - asyncpg 0.29.0 has no wheel for glibc 2.27 and clang is absent — built from source with `CC=gcc CXX=g++` before re-running install.sh (script is idempotent)\n - user `navi` has NOPASSWD sudoers (/etc/sudoers.d/navi) so install.sh's internal sudo works over non-interactive SSH; the `navi` user password matches the hypervisor bserv credential (gnexus-creds)\n- **Known non-critical:** /health embed.ok=false (embed backend 401) — same as other swarm instances\n\n## Access\n\n- SSH: `ubuntu@192.168.1.156`, credentials in gnexus-creds secret `bserv@192.168.1.130`; root SSH denied\n- No QEMU guest agent on this VM; disk-level inspection via read-only loop mount on the hypervisor (`losetup -f --show -r -P /mnt/main/vm_main/gitbucket`, then `mount -o ro,noload`)\n\n## Listening ports (TCP, verified 2026-09-19)\n\n- 22 — sshd\n- 80 — GitBucket (java, gitbucket.war)\n- 5432 — system PostgreSQL 10 (GitBucket DB, localhost only)\n- 5433 — navi-postgres docker (localhost only)\n- 8099 — navi-server (pilar)\n\n## Notes\n\n- GitBucket java process has been running since Aug 13 with ~2.4G RSS; VM has 8G RAM — navi instance coexists comfortably.\n- Do not bind anything else to 5432/5433; both are taken." + }, + "status": "applied", + "created_at": "2026-09-19T19:44:56Z", + "updated_at": "2026-09-19T19:44:57Z", + "applied_at": "2026-09-19T19:44:57Z", + "validation": { + "status": "ok", + "issue_count": 0, + "issues": [] + } +}