| … | … | @@ -0,0 +1,133 @@ |
| 1 | # Wirecore Deployment on Tabertron |
| 2 | |
| 3 | **Date**: 2026-01-18 |
| 4 | **Status**: Running in production |
| 5 | |
| 6 | --- |
| 7 | |
| 8 | ## Current Status |
| 9 | |
| 10 | ✅ **Wirecore running**: PID 539745 |
| 11 | ✅ **Port**: 3000 |
| 12 | ✅ **Node version**: v22.20.0 |
| 13 | ✅ **Storage**: `./wirecore-web-storage/` |
| 14 | ✅ **Public access**: https://7rnx.net/wirecore/ |
| 15 | ✅ **Git repo**: git://tabertron.local/wirecore.git |
| 16 | |
| 17 | --- |
| 18 | |
| 19 | ## Location |
| 20 | |
| 21 | ``` |
| 22 | /storage/projects/code/hypercore-kb/hyper-fleeky/repos/wirecore/ |
| 23 | ``` |
| 24 | |
| 25 | --- |
| 26 | |
| 27 | ## Starting Wirecore |
| 28 | |
| 29 | ```bash |
| 30 | cd /storage/projects/code/hypercore-kb/hyper-fleeky/repos/wirecore |
| 31 | |
| 32 | # Start server (Node v22.20.0 required for ES modules) |
| 33 | ~/.nvm/versions/node/v22.20.0/bin/node server.js > /tmp/wirecore.log 2>&1 & |
| 34 | |
| 35 | # Check status |
| 36 | tail -f /tmp/wirecore.log |
| 37 | |
| 38 | # Verify running |
| 39 | ps aux | grep "node server.js" |
| 40 | ``` |
| 41 | |
| 42 | --- |
| 43 | |
| 44 | ## Stopping Wirecore |
| 45 | |
| 46 | ```bash |
| 47 | # Find PID |
| 48 | ps aux | grep "node server.js" | grep -v grep |
| 49 | |
| 50 | # Stop gracefully |
| 51 | kill <PID> |
| 52 | |
| 53 | # Force stop if needed |
| 54 | pkill -9 -f "node server.js" |
| 55 | ``` |
| 56 | |
| 57 | --- |
| 58 | |
| 59 | ## Troubleshooting |
| 60 | |
| 61 | ### Lock File Error |
| 62 | |
| 63 | ``` |
| 64 | Error: ELOCKED: File is locked |
| 65 | ``` |
| 66 | |
| 67 | **Solution**: |
| 68 | ```bash |
| 69 | # Ensure no node processes running |
| 70 | ps aux | grep "node server.js" |
| 71 | |
| 72 | # Remove lock file |
| 73 | rm -f wirecore-web-storage/feeds/primary-key |
| 74 | |
| 75 | # Restart |
| 76 | ~/.nvm/versions/node/v22.20.0/bin/node server.js > /tmp/wirecore.log 2>&1 & |
| 77 | ``` |
| 78 | |
| 79 | ### Wrong Node Version |
| 80 | |
| 81 | Wirecore requires Node v22+ for ES modules. |
| 82 | |
| 83 | ```bash |
| 84 | # Check version |
| 85 | node --version |
| 86 | |
| 87 | # Use correct version |
| 88 | ~/.nvm/versions/node/v22.20.0/bin/node server.js |
| 89 | ``` |
| 90 | |
| 91 | --- |
| 92 | |
| 93 | ## Accessing Wirecore |
| 94 | |
| 95 | **Local**: |
| 96 | - http://localhost:3000 |
| 97 | |
| 98 | **Public** (via hyperident-gateway → 7rnx.net): |
| 99 | - https://7rnx.net/wirecore/ |
| 100 | |
| 101 | --- |
| 102 | |
| 103 | ## Updates |
| 104 | |
| 105 | ### Pull Latest Code |
| 106 | |
| 107 | ```bash |
| 108 | cd /storage/projects/code/hypercore-kb/hyper-fleeky/repos/wirecore |
| 109 | git pull origin master |
| 110 | ``` |
| 111 | |
| 112 | ### Restart After Updates |
| 113 | |
| 114 | ```bash |
| 115 | pkill -f "node server.js" |
| 116 | sleep 2 |
| 117 | ~/.nvm/versions/node/v22.20.0/bin/node server.js > /tmp/wirecore.log 2>&1 & |
| 118 | ``` |
| 119 | |
| 120 | --- |
| 121 | |
| 122 | ## Hyperident Gateway Connection |
| 123 | |
| 124 | Wirecore on tabertron (10.22.0.1:3000) is accessible via: |
| 125 | - Apache reverse proxy on 7rnx.net |
| 126 | - Proxied through hyperident-gateway P2P network |
| 127 | - Public URL: https://7rnx.net/wirecore/ |
| 128 | |
| 129 | See: `/storage/projects/code/server-info-kb/7rnx.net/APACHE_PROXY_SETUP.md` |
| 130 | |
| 131 | --- |
| 132 | |
| 133 | Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |