Troubleshooting
Common issues and solutions when using Mosaic
Troubleshooting
Server Issues
Server won't start
Symptoms: Docker container exits immediately, or cargo run fails.
Solutions:
-
Database not reachable: Check that PostgreSQL is running and
DATABASE_URLis correctpsql $DATABASE_URL -c "SELECT 1" -
Port already in use: Change the
PORTenvironment variable or stop the conflicting processlsof -i :8080 # Check what's using port 8080 -
Missing pgvector extension: Ensure PostgreSQL has the
vectorextensionpsql -d mosaic -c "CREATE EXTENSION IF NOT EXISTS vector;" -
Permission denied on storage path: Ensure the
LOCAL_STORAGE_PATHdirectory is writablemkdir -p ./storage && chmod 755 ./storage
Docker Compose fails
# Rebuild and restart
docker compose down -v
docker compose up -d
# Check logs
docker compose logs mosaic-server
# Check PostgreSQL is healthy
docker compose logs postgresServer is slow
- Check server resources:
docker stats - AI API calls may add latency β check if
auto_diary_enabledor bot auto-reply is causing delays - Ensure PostgreSQL has enough memory for indexing
Mobile App Issues
Can't connect to server
- URL format: Use
http://your-server-ip:8080(includehttp://prefix) - Network: Ensure both devices are on the same network, or the server port is exposed
- Firewall: Check that your server's firewall allows the port
- HTPS: For production, configure HTTPS via a reverse proxy (Nginx/Caddy)
Sync fails
- Check internet connection
- Verify server is running and reachable
- Try reconnecting: go to Settings β Server β Reconnect
- Check server logs for sync errors:
docker compose logs mosaic-server | grep sync
App crashes on startup
- Clear app cache: Settings β Apps β Mosaic β Clear Cache
- Reinstall the APK
- Ensure your Android version is 8.0+
AI Features
AI tags/summaries not working
- AI not configured: Go to Admin Dashboard β AI Config and set up a provider
- API key invalid: Verify your OpenAI/Anthropic API key
- Rate limited: Check your AI provider's rate limits
- Feature disabled: Check admin settings β
auto_tag_enabledandauto_summary_enabledmust be on
Bot not replying
- Check that the bot has
auto_replyenabled in its settings - Ensure AI config "bot" provider is set up in admin dashboard
- Bot replies trigger on memo creation β make sure you're creating new memos
Database Issues
Migration failed
# Check current migration state
psql -d mosaic -c "SELECT * FROM _sqlx_migrations ORDER BY version;"
# Manually run a migration if needed
psql -d mosaic -f server/migrations/20260119083515_init_tables.sqlReset the database
# Drop and recreate
psql -c "DROP DATABASE mosaic;"
psql -c "CREATE DATABASE mosaic;"
psql -d mosaic -c "CREATE EXTENSION IF NOT EXISTS vector;"
# Then restart the server to re-run migrationsGetting Help
If you can't find a solution here:
- Open a GitHub Issue
- Check the server logs for error messages
- Include your server version and deployment method (Docker / bare metal)