mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 23:18:24 +00:00
issue: update 820a - selective archive migration complete
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user