Troubleshooting
This guide addresses common issues you might encounter while using Hive-Pal.
Installation Issues
Docker Container Won't Start
If your Docker containers fail to start:
-
Check if the required ports (80, 3001, 5432) are available:
sudo lsof -i :80
sudo lsof -i :3001
sudo lsof -i :5432 -
Verify your Docker and Docker Compose installation:
docker --version
docker-compose --version -
Check container logs for errors:
docker-compose logs backend
docker-compose logs frontend
docker-compose logs postgres
Database Connection Errors
If the backend can't connect to the database:
- Ensure your
DATABASE_URLenvironment variable is correctly formatted - Check if the PostgreSQL container is running:
docker-compose ps - Try to connect to the database manually to verify credentials:
docker exec -it postgres psql -U postgres -d hivepal
Login Issues
Can't Create Admin Account
If you're having trouble with the initial admin account:
- Verify that the
ADMIN_USERNAMEandADMIN_PASSWORDenvironment variables are set correctly - Check the backend logs for any error messages:
docker-compose logs backend - Try restarting the backend container:
docker-compose restart backend
Login Authentication Failures
If you can't log in with valid credentials:
- Check that you're using the correct username/password combination
- Verify the
JWT_SECRETenvironment variable is set correctly - Clear your browser cookies and cache
- Check the backend logs for authentication errors:
docker-compose logs backend | grep auth
Performance Issues
Slow Page Loading
If the application is running slowly:
- Check your server's resources (CPU, memory, disk space)
- Consider allocating more resources to Docker if available
- Check for excessive database growth:
docker exec -it postgres psql -U postgres -d hivepal -c "SELECT pg_size_pretty(pg_database_size('hivepal'));"
Mobile Device Issues
For problems on mobile devices:
- Ensure you're using a modern mobile browser (Chrome, Safari, Firefox)
- Check if your device has a stable internet connection
- Try clearing the browser cache and cookies
Data Issues
Missing Hives or Inspections
If data appears to be missing:
- Check if you're viewing the correct apiary
- Verify filters are not excluding the data you're looking for
- Check if another user may have modified the data
Can't Add or Edit Records
If you can't create or modify records:
- Ensure you're logged in with an account that has appropriate permissions
- Check if the form has validation errors (look for red error messages)
- Verify the backend logs for any error messages:
docker-compose logs backend
Backup and Recovery
Creating a Database Backup
To back up your Hive-Pal data:
docker exec -t postgres pg_dump -U postgres -d hivepal > hivepal_backup_$(date +%Y%m%d).sql
Restoring from Backup
To restore from a backup:
# Stop the containers
docker-compose down
# Start just the database
docker-compose up -d postgres
# Wait for PostgreSQL to start
sleep 10
# Restore the database
cat your_backup_file.sql | docker exec -i postgres psql -U postgres -d hivepal
# Start the remaining services
docker-compose up -d
Getting Additional Help
If you continue experiencing issues:
- Check the GitHub repository for known issues
- Submit a detailed bug report including:
- Steps to reproduce the issue
- Expected behavior
- Actual behavior
- Docker and environment information
- Relevant logs