This guide helps you resolve common issues when using the IIoT Data Quality Assessment Service.
- Service Connection Problems
- Data Loading Issues
- Import Failures
- Performance Issues
- Browser Compatibility
- Getting Help
Symptoms: Cannot access http://localhost:5173
Solutions:
-
Check if frontend service is running:
# Check if process is running lsof -ti tcp:5173 -
Restart frontend:
cd frontend npm run dev -
Check for port conflicts:
# Kill process on port 5173 if needed lsof -ti tcp:5173 | xargs kill -9
-
Verify Node.js is installed:
node --version # Should be 18+
Symptoms: API calls fail, 500 errors, or connection refused
Solutions:
-
Check if backend service is running:
docker-compose ps backend
-
Check backend logs:
docker-compose logs backend
-
Verify backend health:
curl http://localhost:8000/health
-
Restart backend service:
docker-compose restart backend
-
Check for port conflicts:
lsof -ti tcp:8000 | xargs kill -9
Symptoms: Database errors, connection timeouts
Solutions:
-
Check if TimescaleDB is running:
docker-compose ps timescaledb
-
Check database logs:
docker-compose logs timescaledb
-
Verify database connection:
docker-compose exec timescaledb pg_isready -U iiot_user -d iiot_dqa -
Check environment variables:
cat .env | grep DB_ -
Restart database:
docker-compose restart timescaledb
Symptoms: Dropdown is empty, no machine groups shown
Solutions:
- Import data first (see Data Import Guide)
- Verify data was imported successfully
- Check database for tables:
docker-compose exec timescaledb psql -U iiot_user -d iiot_dqa -c "\dt"
- Refresh the page
- Check backend API:
curl http://localhost:8000/tables
Symptoms: Selected table but no data appears
Solutions:
- Check backend logs for errors:
docker-compose logs backend | tail -50 - Verify table has data:
docker-compose exec timescaledb psql -U iiot_user -d iiot_dqa -c "SELECT COUNT(*) FROM your_table_name;"
- Check browser console for errors (F12)
- Verify API endpoint:
curl "http://localhost:8000/data?table=YOUR_TABLE&limit=10" - Refresh the page
- Try selecting table again
Symptoms: Expected sensors not visible
Solutions:
- Verify sensors were imported (check import logs)
- Check sensor tags match metadata
- Review data import process
- Verify sensor columns exist in data:
docker-compose exec timescaledb psql -U iiot_user -d iiot_dqa -c "\d your_table_name"
Symptoms: Files fail validation
Solutions:
-
Check CSV format:
- Ensure proper CSV encoding (UTF-8)
- Verify no extra commas or quotes
- Check column names match requirements
-
Verify required columns:
- Data file must have
timestampcolumn - Tags file must have all required columns
- See Data Import Guide for format
- Data file must have
-
Check file encoding:
file -i your_file.csv # Should show UTF-8 -
Review validation error messages
-
Fix issues and re-validate
Symptoms: Import job status shows "failed"
Solutions:
-
Check import job status:
curl "http://localhost:8000/import/status/JOB_ID" -
Check backend logs:
docker-compose logs backend | grep -i import -
Verify database connection:
docker-compose exec timescaledb pg_isready -U iiot_user -d iiot_dqa -
Check disk space:
df -h
-
Verify file sizes (not too large)
-
Try importing smaller subset first
Symptoms: Import takes very long time
Solutions:
- Large files take time - be patient
- Check database performance
- Monitor import progress
- Consider importing subset of sensors first
- Verify worker service is running:
docker-compose ps worker
Symptoms: Pages load slowly
Solutions:
- Check network connection
- Reduce date range in filters
- Select fewer sensors
- Check browser performance (close other tabs)
- Clear browser cache
- Check backend performance:
docker-compose stats
Symptoms: Charts take long to render
Solutions:
- Use date range filters to reduce data
- Select fewer sensors
- Use aggregated data source
- Check data volume
- Wait for charts to fully load
Symptoms: Browser or system becomes slow
Solutions:
- Close unnecessary browser tabs
- Reduce data range
- Select fewer sensors
- Restart browser
- Check system resources:
free -h top
Symptoms: Features don't work, layout broken
Solutions:
-
Use supported browsers:
- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)
-
Update browser to latest version
-
Clear browser cache
-
Disable browser extensions
-
Try incognito/private mode
Symptoms: Console shows errors, features broken
Solutions:
- Open browser console (F12)
- Check error messages
- Clear browser cache
- Disable browser extensions
- Try different browser
- Check browser console for specific errors
Backend Logs:
docker-compose logs backend
docker-compose logs backend --tail=100Frontend Logs:
- Open browser console (F12)
- Check Console tab for errors
- Check Network tab for failed requests
Database Logs:
docker-compose logs timescaledbCheck all services are running:
docker-compose psCheck service health:
# Backend health
curl http://localhost:8000/health
# Database health
docker-compose exec timescaledb pg_isready -U iiot_user -d iiot_dqa"Connection refused":
- Service not running
- Wrong port
- Firewall blocking
"404 Not Found":
- Wrong URL
- Service not started
- Route doesn't exist
"500 Internal Server Error":
- Backend error
- Check backend logs
- Database connection issue
"CORS error":
- Backend CORS configuration
- Check backend settings
- Verify API URL
Check environment variables:
cat .envVerify configuration:
- Database credentials correct
- OpenAI API key set (if using DQA Agent)
- Ports not in use
Restart all services:
docker-compose down
docker-compose up -dRebuild services (if needed):
docker-compose down
docker-compose up --build -d- Regular Backups: Backup data regularly
- Monitor Logs: Check logs periodically
- Update Services: Keep services updated
- Monitor Resources: Check disk space and memory
- Test After Changes: Verify after configuration changes
- Getting Started Guide - Initial setup
- Data Import Guide - Import troubleshooting
- FAQ - Common questions
For technical support, check the main README or project documentation.