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 that the host port you mapped for the app is free (
80in the example compose, or3000if you mapped it directly):sudo lsof -i :80PostgreSQL listens on
5432inside the Docker network and only needs a free host port if you publish it. The development compose files deliberately map it to6543(6543:5432) to avoid clashing with a PostgreSQL already running on your machine. -
Verify your Docker and Docker Compose installation:
docker --version
docker compose version -
Check container logs for errors (the app is a single container):
docker compose logs app
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 compose exec postgres psql -U postgres -d beekeeper
Login Issues
Can't Create Admin Account
If you're having trouble with the initial admin account:
- Verify that the
ADMIN_EMAILandADMIN_PASSWORDenvironment variables are set correctly - Check the app logs for the seeding step (it runs on every startup):
docker compose logs app | grep -i admin - Try restarting the app container:
docker compose restart app
Login Authentication Failures
Hive-Pal uses Better Auth for sign-in. If you can't log in with valid credentials:
- Check that you're using the correct email/password combination.
- Verify
BETTER_AUTH_SECRETis set and stable — changing it invalidates all existing sessions. - Verify
BETTER_AUTH_URLandFRONTEND_URLmatch the public URL you're accessing. A mismatch causes session cookies to be rejected. - For cross-subdomain setups, set
COOKIE_DOMAIN(e.g..example.com). - Clear your browser cookies and cache, then try again.
- Check the app logs for authentication errors:
docker compose logs app | grep -i auth
Magic Links or Password Resets Not Arriving
Magic-link sign-in and password resets require a configured mail provider:
- Confirm SMTP or Resend variables are set (see Configuration → Email).
- Check the app logs for mail-send errors.
- Verify
FROM_EMAILis an address your provider is allowed to send from.
Passkeys Not Working
- Ensure you're on HTTPS (WebAuthn requires a secure context, except on
localhost). - Set
PASSKEY_RP_IDto your domain (it defaults tolocalhost).
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 beekeeper -c "SELECT pg_size_pretty(pg_database_size('beekeeper'));"
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 beekeeper > beekeeper_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 beekeeper
# 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