From eeebe138ce9bf289be76f4a18b4247be6e906217 Mon Sep 17 00:00:00 2001 From: Firefrost Automation Date: Wed, 11 Feb 2026 02:23:46 -0600 Subject: [PATCH] Automation: Task execution results 2026-02-11 02:23:46 --- ...ployment-logs_completed_20260211_022346.sh | 90 +++++++++++++++++++ .../retrieve-wiki-deployment-logs_result.txt | 16 ++++ 2 files changed, 106 insertions(+) create mode 100755 automation/logs/retrieve-wiki-deployment-logs_completed_20260211_022346.sh create mode 100644 automation/results/retrieve-wiki-deployment-logs_result.txt diff --git a/automation/logs/retrieve-wiki-deployment-logs_completed_20260211_022346.sh b/automation/logs/retrieve-wiki-deployment-logs_completed_20260211_022346.sh new file mode 100755 index 0000000..f60f468 --- /dev/null +++ b/automation/logs/retrieve-wiki-deployment-logs_completed_20260211_022346.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +echo "=== WIKI.JS DEPLOYMENT LOG RETRIEVAL ===" +echo "Date: Feb 10, 2026" +echo "Checking all logs from 8:00 PM - midnight CST" +echo "" + +# Create results directory +mkdir -p ~/wiki-deployment-investigation +cd ~/wiki-deployment-investigation + +echo "=== 1. SYSTEMD SERVICE LOGS ===" > all-logs.txt +echo "" >> all-logs.txt + +# Check for Wiki.js services (various possible names) +for service in wiki wikijs wiki-staff wiki-subscriber wiki.js; do + if systemctl list-units --all | grep -q "$service"; then + echo "--- Service: $service ---" >> all-logs.txt + journalctl -u "$service" --since "2026-02-10 20:00" --until "2026-02-10 23:59" >> all-logs.txt 2>&1 + echo "" >> all-logs.txt + fi +done + +echo "=== 2. NGINX LOGS ===" >> all-logs.txt +echo "" >> all-logs.txt +echo "--- Nginx Error Log (Feb 10 evening) ---" >> all-logs.txt +grep "Feb 10.*2[0-3]:" /var/log/nginx/error.log 2>/dev/null >> all-logs.txt || echo "No nginx error.log found" >> all-logs.txt +echo "" >> all-logs.txt + +echo "--- Nginx Access Log (staff.firefrostgaming.com) ---" >> all-logs.txt +grep "staff.firefrostgaming.com" /var/log/nginx/access.log 2>/dev/null | grep "Feb 10.*2[0-3]:" >> all-logs.txt || echo "No staff.firefrostgaming.com entries" >> all-logs.txt +echo "" >> all-logs.txt + +echo "--- Nginx Access Log (subscribers.firefrostgaming.com) ---" >> all-logs.txt +grep "subscribers.firefrostgaming.com" /var/log/nginx/access.log 2>/dev/null | grep "Feb 10.*2[0-3]:" >> all-logs.txt || echo "No subscribers.firefrostgaming.com entries" >> all-logs.txt +echo "" >> all-logs.txt + +echo "=== 3. AUTOMATION SYSTEM LOGS ===" >> all-logs.txt +echo "" >> all-logs.txt +ls -la ~/firefrost-work/firefrost-operations-manual/automation/logs/*2026-02-10* 2>/dev/null >> all-logs.txt || echo "No automation logs from Feb 10" >> all-logs.txt +echo "" >> all-logs.txt + +if ls ~/firefrost-work/firefrost-operations-manual/automation/logs/*2026-02-10* 2>/dev/null; then + for log in ~/firefrost-work/firefrost-operations-manual/automation/logs/*2026-02-10*; do + echo "--- Automation Log: $(basename $log) ---" >> all-logs.txt + cat "$log" >> all-logs.txt + echo "" >> all-logs.txt + done +fi + +echo "=== 4. GIT COMMIT HISTORY (Feb 10 evening) ===" >> all-logs.txt +echo "" >> all-logs.txt +cd ~/firefrost-work/firefrost-staff-wiki +echo "--- Staff Wiki Git Log ---" >> ~/wiki-deployment-investigation/all-logs.txt +git log --since="2026-02-10 20:00" --until="2026-02-10 23:59" --pretty=format:"%h %ad %s" --date=local >> ~/wiki-deployment-investigation/all-logs.txt +echo "" >> ~/wiki-deployment-investigation/all-logs.txt +echo "" >> ~/wiki-deployment-investigation/all-logs.txt + +cd ~/firefrost-work/firefrost-operations-manual +echo "--- Operations Manual Git Log ---" >> ~/wiki-deployment-investigation/all-logs.txt +git log --since="2026-02-10 20:00" --until="2026-02-10 23:59" --pretty=format:"%h %ad %s" --date=local >> ~/wiki-deployment-investigation/all-logs.txt +echo "" >> ~/wiki-deployment-investigation/all-logs.txt + +echo "=== 5. GHOST VPS PROCESSES ===" >> ~/wiki-deployment-investigation/all-logs.txt +echo "" >> ~/wiki-deployment-investigation/all-logs.txt +echo "--- Current Wiki.js processes ---" >> ~/wiki-deployment-investigation/all-logs.txt +ps aux | grep -i wiki >> ~/wiki-deployment-investigation/all-logs.txt || echo "No wiki processes found" >> ~/wiki-deployment-investigation/all-logs.txt +echo "" >> ~/wiki-deployment-investigation/all-logs.txt + +echo "=== 6. BASH HISTORY (if available) ===" >> ~/wiki-deployment-investigation/all-logs.txt +echo "" >> ~/wiki-deployment-investigation/all-logs.txt +if [ -f ~/.bash_history ]; then + echo "--- Commands from Feb 10 evening ---" >> ~/wiki-deployment-investigation/all-logs.txt + # Note: bash_history doesn't have timestamps by default, but we'll capture it + tail -200 ~/.bash_history >> ~/wiki-deployment-investigation/all-logs.txt +fi + +echo "" >> ~/wiki-deployment-investigation/all-logs.txt +echo "=== LOG RETRIEVAL COMPLETE ===" >> ~/wiki-deployment-investigation/all-logs.txt + +# Copy to results for Claude to read +cp all-logs.txt ~/firefrost-work/firefrost-operations-manual/automation/results/wiki-deployment-logs.txt + +echo "" +echo "✓ All logs captured in ~/wiki-deployment-investigation/all-logs.txt" +echo "✓ Copied to automation/results for review" +echo "" +echo "Review with: cat ~/wiki-deployment-investigation/all-logs.txt" + +exit 0 diff --git a/automation/results/retrieve-wiki-deployment-logs_result.txt b/automation/results/retrieve-wiki-deployment-logs_result.txt new file mode 100644 index 0000000..ee9d9c3 --- /dev/null +++ b/automation/results/retrieve-wiki-deployment-logs_result.txt @@ -0,0 +1,16 @@ +Task: retrieve-wiki-deployment-logs.sh +Started: Wed Feb 11 02:23:44 CST 2026 +========================================== +=== WIKI.JS DEPLOYMENT LOG RETRIEVAL === +Date: Feb 10, 2026 +Checking all logs from 8:00 PM - midnight CST + +cp: cannot stat 'all-logs.txt': No such file or directory + +✓ All logs captured in ~/wiki-deployment-investigation/all-logs.txt +✓ Copied to automation/results for review + +Review with: cat ~/wiki-deployment-investigation/all-logs.txt +========================================== +Finished: Wed Feb 11 02:23:46 CST 2026 +Exit Code: 0