- Created docs/00-meta/ for documentation meta files (11 files) - Created docs/archive/reports/ for reports (5 files) - Created docs/archive/issues/ for issue tracking (2 files) - Created docs/bridge/contracts/ for Solidity contracts (3 files) - Created docs/04-configuration/metamask/ for Metamask configs (3 files) - Created docs/scripts/ for documentation scripts (2 files) - Root directory now contains only 3 essential files (89.3% reduction) All recommended actions from docs directory review complete.
2.4 KiB
2.4 KiB
Fix: rsync Not Found During Deployment
Issue: Deployment fails with rsync: command not found on target VMIDs
Status: ✅ FIXED
Problem
The deployment script was failing because rsync was not installed on the target VMIDs (2400, 2401, 2402).
Error:
bash: line 1: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12)
Solution
Updated scripts/deploy-to-vmid.sh to automatically install required dependencies before copying files:
- Install
rsync- Required for file copying - Install
curl- Required for Node.js installation - Install Node.js - If not already installed
- Install
npm- If not already installed
What Changed
File: scripts/deploy-to-vmid.sh
Added dependency installation step:
# Install required dependencies on remote (rsync, nodejs, npm)
echo "Installing required dependencies on VMID $VMID..."
ssh $SSH_KEY -o StrictHostKeyChecking=no "root@$VMIP" "
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq
apt-get install -y -qq rsync curl >/dev/null 2>&1 || true
# Check if Node.js is installed, if not install it
if ! command -v node >/dev/null 2>&1; then
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - >/dev/null 2>&1
apt-get install -y -qq nodejs >/dev/null 2>&1
fi
# Ensure npm is available
if ! command -v npm >/dev/null 2>&1; then
apt-get install -y -qq npm >/dev/null 2>&1
fi
"
Also updated npm installation to support pnpm:
# Use npm or pnpm if available
if command -v pnpm >/dev/null 2>&1; then
pnpm install --production
else
npm install --production
fi
Deploy Now
The deployment script now automatically installs dependencies. Run:
cd /home/intlc/projects/proxmox/rpc-translator-138
./scripts/deploy-smart-interception.sh
Or deploy to a specific VMID:
./scripts/deploy-to-vmid.sh 2402 192.168.11.242
What Gets Installed
On each target VMID, the script now automatically installs:
- ✅ rsync - For file synchronization
- ✅ curl - For downloading Node.js installer
- ✅ Node.js 20.x - If not already installed
- ✅ npm - If not already installed
All installations are done silently (-qq flag) to keep output clean.
Status: ✅ Fixed - Ready to deploy!