Appearance
Troubleshooting
This guide covers common issues you might encounter while developing with Jubiloop and their solutions.
Common Issues
Husky Hook Issues
If git hooks aren't running when you commit:
bash
# Re-install Husky hooks
pnpm run prepare
# Ensure pre-commit hook is executable
chmod +x .husky/pre-commitIf you need to bypass hooks for a specific commit:
bash
git commit -m "Your message" --no-verifyPort Conflicts
Jubiloop uses several ports for different services. If you encounter port conflicts:
Default Ports
- Frontend (React): 3000
- Backend (AdonisJS): 3333
- Marketing (Next.js): 3001
- PostgreSQL: 5433
- Redis: 6379
- Caddy: 80, 443
Check What's Using Ports
bash
# Check specific ports
lsof -i :3000 # Frontend
lsof -i :3333 # Backend
lsof -i :3001 # Marketing
lsof -i :5433 # PostgreSQL
lsof -i :6379 # RedisSolutions
Stop conflicting services:
bash# Kill process using a port (replace PID with actual process ID) kill -9 <PID>Change port numbers in configuration files:
- Frontend:
apps/webapp/package.jsonorvite.config.js - Backend:
apps/server/.env - Marketing:
apps/marketing/package.json - Infrastructure:
infra/local_dev/docker-compose.yml
- Frontend:
Node Version Issues
Jubiloop requires Node.js v24 or later.
bash
# Check current version
node --version
# Using nvm to switch versions
nvm install 22
nvm use 22
# Set default version
nvm alias default 22Turborepo Cache Issues
If you experience unexpected build behavior or stale outputs:
bash
# Clear Turborepo cache
pnpm exec turbo clean
# Force rebuild without cache
pnpm exec turbo build --forceDocker Container Issues
Database Connection Failures
bash
# Check if containers are running
cd infra/local_dev
docker compose ps
# Restart specific services
docker compose restart postgres redis
# View logs for errors
docker compose logs postgres
docker compose logs redis
docker compose logs caddyReset All Data (Warning: This will delete all local data)
bash
cd infra/local_dev
docker compose down -v
docker compose up -d
# Re-run migrations after reset
cd ../..
pnpm run migration:runSeeding Fails
bash
# Run seeds with verbose output
cd apps/server
node ace db:seed --debugGetting Help
If you're still experiencing issues:
- Check logs for detailed error messages
- Search existing issues in the project repository
- Create a new issue with:
- Description of the problem
- Steps to reproduce
- Error messages/logs
- Your environment (OS, Node version, etc.)
Useful Commands Summary
bash
# Infrastructure
cd infra/local_dev
docker compose up -d # Start all services
docker compose logs -f # View all logs
docker compose restart <service> # Restart specific service
docker compose down -v # Stop and remove everything
# Development
pnpm run dev # Start all apps
pnpm exec turbo clean # Clear build cache
pnpm run test # Run all tests
pnpm run migration:run # Run database migrations
# Debugging
lsof -i :<port> # Check port usage
node --version # Check Node version
docker --version # Check Docker versionPrevious: Local Development Setup