docs: add counter reset root cause - removed old update_count.sh

This commit is contained in:
root
2026-02-14 07:23:18 -06:00
parent 59225f0d1b
commit 9769839a67

View File

@@ -130,3 +130,27 @@ Stored: February 14, 2026
## Relationship to YouTube
The SpeedyFoxAI.com website complements the YouTube channel @SpeedyFoxAi. It serves as a hub for video content, resources, and contact info, with embedded videos linking directly to the channel. Design and branding are consistent across both platforms.
---
## UPDATE - Feb 14, 07:21
### Counter Reset Issue - ROOT CAUSE FOUND
**Problem:** Count kept resetting to current nginx log lines (86, 89, etc.)
**Root Cause:** Old script `/root/html/update_count.sh` still existed and was running:
```bash
#!/bin/bash
COUNT=$(wc -l < /var/log/nginx/access.log 2>/dev/null || echo 0)
echo "$COUNT" > /root/html/count.txt
```
This script was periodically overwriting count.txt with nginx log line count, overriding the persistent counter.
**Fix Applied:**
- Removed `/root/html/update_count.sh`
- Restored count.txt to 288
- Persistent counter now working correctly
**Lesson:** Check for competing scripts before implementing fixes.