From 025be7b67bc89e788bddb4a77720000f215219ae Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 21 Jan 2026 15:11:37 +0000 Subject: [PATCH] issue: update 820a - selective archive migration complete --- 820a-relay-ngit-dev-migration.md | 36 ++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/820a-relay-ngit-dev-migration.md b/820a-relay-ngit-dev-migration.md index 9384df9..93c180c 100644 --- a/820a-relay-ngit-dev-migration.md +++ b/820a-relay-ngit-dev-migration.md @@ -707,21 +707,39 @@ docker start ngit-relay 3. If fixing directly: Implement database population on startup 4. Either way: Create issue for RepoSyncIndex bug -### 2026-01-21 [Session 18:00] - Migrating to Selective Archive Service 🔄 -- Started: Migration from archive-all to selective relay.ngit.dev archive +### 2026-01-21 [Session 18:00] - Migrating to Selective Archive Service ✅ +- Completed: Migration from archive-all to selective relay.ngit.dev archive - Context: grasp-audit package updated with `archiveGraspServices` option -- Configuration changes made: +- **Configuration changes made:** - Removed: `ngit-grasp-archive-all.nix` (archived all relays) - Added: `ngit-grasp-relay-ngit-dev.nix` (archives only relay.ngit.dev) + - Updated: `services/default.nix` to import new service file - New data directory: `/persistent/grasp/relay-ngit-dev` (was `/persistent/grasp/sync-archive`) - New domain: `archive-relay-ngit-dev.internal` (was `archive.internal`) - Selective archiving: `archiveGraspServices = [ "relay.ngit.dev" ]` -- Plan: - 1. Stop old archive-all service - 2. Delete old archive-all data directory - 3. Deploy new selective archive configuration - 4. Verify new service starts and archives relay.ngit.dev -- Next: Execute migration steps using subagents +- **Migration steps executed:** + 1. ✅ Stopped old archive-all service + 2. ✅ Deleted old archive-all data directory (freed 5.8GB) + 3. ✅ Updated NixOS configuration and deployed + 4. ✅ Created data directory manually (workaround for namespace issue) + 5. ✅ Verified new service started successfully +- **Verification results:** + - Service status: ✅ Running (active since 16:09:47 CET) + - Archive mode: ✅ Confirmed (`archive_all=false`, read_only=true) + - Syncing from: ✅ `wss://relay.ngit.dev` + - Data archived: ✅ 779MB (and growing) + - Git fetches: ✅ Active (fetching repos from relay.ngit.dev) + - Service domain: ✅ `archive-relay-ngit-dev.internal` + - Port: ✅ 7443 (localhost only) +- **Disk space:** + - Before: 26GB used, 21GB available + - After cleanup: 20GB used, 27GB available (5.8GB freed) + - Current: 20.8GB used, 26.2GB available (779MB new data) +- **Issues encountered:** + - Mount namespace error on first deployment (data directory didn't exist) + - Resolution: Created directory manually, service started successfully + - Note: This is a known issue (b454) - module should create directories in ExecStartPre +- **Migration status:** ✅ **COMPLETE** - Selective archive service operational ### 2026-01-20 [Session 14:30] - Naughty List Blocker Identified - Completed: Extensive state validation and root cause analysis