🔧 Matpriskollen Troubleshooting Guide

System OK
Minor Issues
System Down

🚀 Quick System Test

Test all components at once:

Common Issues & Solutions

🚫 Connection Refused / Server Not Responding
Cannot reach http://139.59.210.35
HIGH

Symptoms: Status page won't load, API URLs return "connection refused" or timeout

🔧 Solutions to try:
  1. Wait 2-3 minutes and try again (temporary network issue)
  2. Check your internet connection by visiting other websites
  3. Try accessing from a different device or network
  4. Clear your browser cache and try again
Test connection:

🎯 What this means: The entire server is down or unreachable. No price data collection is possible.

⏰ Scheduler Not Running
"is_running": false in scheduler status
HIGH

Symptoms: Scheduler API shows "is_running": false, no new scrapes happening

Test: http://139.59.210.35/matpriskollen/api/scheduler/status
🔧 What to check:
  1. Look for "is_running": true in the response
  2. Check if "last_run" has a recent timestamp
  3. Verify "next_run" shows a future Monday at 08:00
  4. Check "failed_runs" count - should be 0 or low
Test scheduler:

🎯 What this means: Automatic price scraping has stopped. Manual intervention needed.

📅 Data Too Old
Last scrape more than 7 days ago
MEDIUM

Symptoms: Last successful scrape timestamp is more than a week old

🔧 Understanding the schedule:
  1. System runs every Monday at 08:00 Stockholm time
  2. If today is Tuesday-Sunday, last run should be recent Monday
  3. Data older than 7 days indicates missed scraping sessions
  4. Check if there were system errors or maintenance
Check data freshness:

🎯 What this means: Price data may be outdated. Recent price changes not reflected.

📊 No Store Data
API returns empty results or zero stores
HIGH

Symptoms: Chains API returns empty array, store count shows as 0

Test: http://139.59.210.35/matpriskollen/api/chains
🔧 What to expect:
  1. Should show 12+ grocery chains (ICA, Coop, Lidl, etc.)
  2. Total stores should be 2,000+ across all chains
  3. Each chain should have a positive store_count
  4. Response should be a JSON array, not empty or error
Test store data:

🎯 What this means: Database may be corrupted or empty. No store information available.

🐌 Slow Response Times
APIs take >5 seconds to respond
LOW

Symptoms: Status page loads slowly, API calls timeout occasionally

🔧 Troubleshooting steps:
  1. Test your internet speed on other websites
  2. Try refreshing the page or retesting
  3. Check if the issue persists across different devices
  4. Wait a few minutes and try again (server may be busy)
Test response speed:

🎯 What this means: System is working but performing slowly. May affect user experience.

🛡️ Prevention Tips

🚨 Emergency Contact

If the system is completely down or you've found a critical issue:

Include in your report: