test-repo/logs/webapp-monitor-20260218.log
Matt Bruce eb919244a0 Fix cron auto-restart script - add Homebrew PATH
- Added /opt/homebrew/bin to PATH for npm access
- Use full path to npm (/opt/homebrew/bin/npm) for reliability
- Script tested and working
2026-02-18 20:49:52 -06:00

78 lines
5.0 KiB
Plaintext

[2026-02-18 16:11:21] === Starting Web App Monitor Check ===
[2026-02-18 16:11:41] === Starting Web App Monitor Check ===
[2026-02-18 16:11:41] Checking port 3000 (gantt-board)...
[2026-02-18 16:11:41] ✓ Port 3000 (gantt-board) is responding HTTP 200
[2026-02-18 16:11:41] Checking port 3003 (blog-backup)...
[2026-02-18 16:11:41] ✓ Port 3003 (blog-backup) is responding HTTP 200
[2026-02-18 16:11:41] Checking port 3005 (heartbeat-monitor)...
[2026-02-18 16:11:41] ✓ Port 3005 (heartbeat-monitor) is responding HTTP 200
[2026-02-18 16:11:41] All apps are healthy. No restart needed.
[2026-02-18 16:11:41] === Monitor Check Complete ===
[2026-02-18 16:16:29] === Starting Web App Monitor Check ===
[2026-02-18 16:16:29] Checking port 3000 (gantt-board)...
[2026-02-18 16:16:29] ✓ Port 3000 (gantt-board) is responding HTTP 200
[2026-02-18 16:16:29] Checking port 3003 (blog-backup)...
[2026-02-18 16:16:29] ✓ Port 3003 (blog-backup) is responding HTTP 200
[2026-02-18 16:16:29] Checking port 3005 (heartbeat-monitor)...
[2026-02-18 16:16:29] ✓ Port 3005 (heartbeat-monitor) is responding HTTP 200
[2026-02-18 16:16:29] All apps are healthy. No restart needed.
[2026-02-18 16:16:29] === Monitor Check Complete ===
[2026-02-18 16:26:28] === Starting Web App Monitor Check ===
[2026-02-18 16:26:28] Checking port 3000 (gantt-board)...
[2026-02-18 16:26:29] ✓ Port 3000 (gantt-board) is responding HTTP 200
[2026-02-18 16:26:29] Checking port 3003 (blog-backup)...
[2026-02-18 16:26:29] ✓ Port 3003 (blog-backup) is responding HTTP 200
[2026-02-18 16:26:29] Checking port 3005 (heartbeat-monitor)...
[2026-02-18 16:26:29] ✗ Port 3005 (heartbeat-monitor) is DOWN or not responding
[2026-02-18 16:26:29] Found 1 app(s) needing restart
[2026-02-18 16:26:29] Restarting heartbeat-monitor on port 3005...
[2026-02-18 16:26:29] Killing processes on port 3005...
[2026-02-18 16:26:29] Waiting 2 seconds...
[2026-02-18 16:26:31] Starting npm run dev -- --port 3005...
[2026-02-18 16:26:31] heartbeat-monitor restarted in background
[2026-02-18 16:26:31] Waiting 5 seconds for apps to initialize...
[2026-02-18 16:26:36] === Verification Check ===
[2026-02-18 16:26:36] ✓ Port 3000 (gantt-board) - HTTP 200 OK
[2026-02-18 16:26:36] ✓ Port 3003 (blog-backup) - HTTP 200 OK
[2026-02-18 16:26:36] ✗ Port 3005 (heartbeat-monitor) - STILL DOWN
[2026-02-18 16:26:36] === WARNING: Some apps may still be down ===
[2026-02-18 16:26:36] Monitor check complete. Log: /Users/mattbruce/.openclaw/workspace/logs/webapp-monitor-20260218.log
[2026-02-18 16:29:16] === Starting Web App Monitor Check ===
[2026-02-18 16:29:16] Checking port 3000 (gantt-board)...
[2026-02-18 16:29:16] ✓ Port 3000 (gantt-board) is responding HTTP 200
[2026-02-18 16:29:16] Checking port 3003 (blog-backup)...
[2026-02-18 16:29:16] ✓ Port 3003 (blog-backup) is responding HTTP 200
[2026-02-18 16:29:16] Checking port 3005 (heartbeat-monitor)...
[2026-02-18 16:29:16] ✗ Port 3005 (heartbeat-monitor) is DOWN or not responding
[2026-02-18 16:29:16] Found 1 app(s) needing restart
[2026-02-18 16:29:16] Restarting heartbeat-monitor on port 3005...
[2026-02-18 16:29:16] Killing processes on port 3005...
[2026-02-18 16:29:17] Waiting 2 seconds...
[2026-02-18 16:29:19] Starting npm run dev -- --port 3005...
[2026-02-18 16:29:19] heartbeat-monitor restarted in background
[2026-02-18 16:29:19] Waiting 5 seconds for apps to initialize...
[2026-02-18 16:29:24] === Verification Check ===
[2026-02-18 16:29:24] ✓ Port 3000 (gantt-board) - HTTP 200 OK
[2026-02-18 16:29:24] ✓ Port 3003 (blog-backup) - HTTP 200 OK
[2026-02-18 16:29:24] ✗ Port 3005 (heartbeat-monitor) - STILL DOWN
[2026-02-18 16:29:24] === WARNING: Some apps may still be down ===
[2026-02-18 16:29:24] Monitor check complete. Log: /Users/mattbruce/.openclaw/workspace/logs/webapp-monitor-20260218.log
[2026-02-18 16:36:29] === Starting Web App Monitor Check ===
[2026-02-18 16:36:29] Checking port 3000 (gantt-board)...
[2026-02-18 16:36:29] ✓ Port 3000 (gantt-board) is responding HTTP 200
[2026-02-18 16:36:29] Checking port 3003 (blog-backup)...
[2026-02-18 16:36:29] ✓ Port 3003 (blog-backup) is responding HTTP 200
[2026-02-18 16:36:29] Checking port 3005 (heartbeat-monitor)...
[2026-02-18 16:36:29] ✓ Port 3005 (heartbeat-monitor) is responding HTTP 200
[2026-02-18 16:36:29] All apps are healthy. No restart needed.
[2026-02-18 16:36:29] === Monitor Check Complete ===
[2026-02-18 16:46:29] === Starting Web App Monitor Check ===
[2026-02-18 16:46:29] Checking port 3000 (gantt-board)...
[2026-02-18 16:46:29] ✓ Port 3000 (gantt-board) is responding HTTP 200
[2026-02-18 16:46:29] Checking port 3003 (blog-backup)...
[2026-02-18 16:46:29] ✓ Port 3003 (blog-backup) is responding HTTP 200
[2026-02-18 16:46:29] Checking port 3005 (heartbeat-monitor)...
[2026-02-18 16:46:29] ✓ Port 3005 (heartbeat-monitor) is responding HTTP 200
[2026-02-18 16:46:29] All apps are healthy. No restart needed.
[2026-02-18 16:46:29] === Monitor Check Complete ===