Check I2C is enabled:
sudo raspi-config
# Navigate to: Interface Options → I2C → EnableTest sensor connections:
i2cdetect -y 1Review logs:
- Web: Admin → System Commands → View Logs
- CLI:
sudo tail -f /var/log/syslog | grep -i hive
Run collection manually:
sudo /home/HiveControl/scripts/system/currconditions.shCheck Apache:
sudo systemctl status apache2
sudo systemctl restart apache2Check PHP:
php -vCheck file permissions:
sudo chown -R www-data:www-data /home/HiveControl/wwwReview error logs:
sudo tail -f /var/log/apache2/error.logCheck database exists:
ls -la /home/HiveControl/data/hive-data.dbFix permissions:
sudo chown www-data:www-data /home/HiveControl/data/hive-data.db
sudo chmod 664 /home/HiveControl/data/hive-data.dbTest database:
sqlite3 /home/HiveControl/data/hive-data.db "SELECT * FROM hiveconfig;"Check for corruption:
sqlite3 /home/HiveControl/data/hive-data.db "PRAGMA integrity_check;"Check cron is running:
sudo systemctl status cronVerify crontab entry:
crontab -l | grep currconditionsCheck script permissions:
chmod +x /home/HiveControl/scripts/system/currconditions.shCheck for pause status:
- Web: Admin → System Commands → Resume
Check PHP errors:
sudo tail -f /var/log/apache2/error.logCommon causes:
- Missing
includefiles - PHP syntax errors
- Malformed HTML structure
- Missing closing tags
Fix:
- Check all
include()paths are correct - Validate HTML structure
- Review PHP error log
Reset password:
# Using web interface (recommended)
# Navigate to /admin/changepassword.php
# Using command line
sudo htpasswd /home/HiveControl/www/.htpasswd adminCheck .htpasswd exists:
ls -la /home/HiveControl/www/.htpasswdClear browser cookies:
- Chrome: Settings → Privacy → Clear browsing data
- Firefox: Preferences → Privacy → Clear Data
Check session directory:
ls -la /var/lib/php/sessions
sudo chmod 1733 /var/lib/php/sessionsVerify security-init.php is included:
Check that pages include: include($_SERVER["DOCUMENT_ROOT"] . "/include/security-init.php");
Check database size:
du -h /home/HiveControl/data/hive-data.dbOptimize database:
sqlite3 /home/HiveControl/data/hive-data.db "VACUUM;"Clear old data:
- Web: Admin → System Commands → Clear All Data
Check running processes:
top
# Look for currconditions.sh or sensor scriptsCheck cron frequency:
crontab -l
# Default is */5 (every 5 minutes)- Check this guide
- Review system logs (web interface or CLI)
- Search GitHub Issues
- Post new issue with:
- HiveControl version
- Raspberry Pi model
- OS version
- Sensors being used
- Error messages
- Steps to reproduce
For detailed documentation, see: