Troubleshooting
This guide covers common issues you might encounter when setting up or running Maybern locally.Backend Issues
uv is using the wrong Python version
uv is using the wrong Python version
Symptoms: uv creates a virtual environment with the wrong Python version, or you see version mismatch errors.Solution:
-
Check what Python versions are available:
-
Verify Pyenv has the correct version active:
-
Pin uv to use the correct Python version:
-
Remove the existing virtual environment and reinstall:
Database connection refused
Database connection refused
Symptoms:
connection refused errors when starting the server or running migrations.Solution:-
Check if PostgreSQL is running:
-
Start PostgreSQL if it’s not running:
-
Verify the database exists:
-
If the database doesn’t exist, create it:
Missing environment variables
Missing environment variables
Symptoms: Server fails to start with errors about missing configuration.Solution:
-
Check if your
.envfile exists: -
If missing, create it from the template:
- Contact your onboarding partner for additional required variables (Stytch keys, AWS credentials, etc.).
Import errors or module not found
Import errors or module not found
Symptoms: Python import errors when starting the server.Solution:
-
Ensure the virtual environment is activated:
-
Verify you’re in the
backend/directory. -
Reinstall dependencies:
Celery Issues
Celery worker fails to start (pycurl error)
Celery worker fails to start (pycurl error)
Symptoms: Error messages related to
pycurl when starting Celery.Solution:Reinstall pycurl with the correct OpenSSL configuration:Celery changes not being picked up
Celery changes not being picked up
Symptoms: Code changes don’t seem to affect Celery task behavior.Solution:Celery workers don’t always shut down cleanly. Kill all Python processes and restart:Then restart your server and workers:
Redis connection error
Redis connection error
Symptoms: Celery can’t connect to Redis.Solution:
-
Check if Redis is running:
-
Start Redis if needed:
-
Verify Redis is accessible:
You should see
PONG.
Debugging Celery tasks
Debugging Celery tasks
To debug a Celery task:
-
Install telnet:
-
Add a breakpoint in your task:
-
Ensure async execution is enabled:
-
Watch the Celery logs for the debugger port:
-
Connect with telnet:
Frontend Issues
Node version mismatch
Node version mismatch
Symptoms: Errors about unsupported Node features or version incompatibility.Solution:
-
Check your Node version:
-
Switch to the project’s Node version:
-
If the version isn’t installed:
pnpm install fails
pnpm install fails
Symptoms: Dependency installation errors.Solution:
-
Clear the pnpm cache:
-
Remove node_modules and reinstall:
-
Ensure you’re using the correct pnpm version:
HTTPS certificate errors
HTTPS certificate errors
Symptoms: Browser shows certificate warnings when accessing
https://app.maybern.test:3000.Solution:-
Reinstall the mkcert CA:
- Restart your browser.
- If using Firefox, you may need to manually trust the certificate in browser settings.
API client type errors
API client type errors
Symptoms: TypeScript errors related to API types being out of sync.Solution:Regenerate the API clients:This regenerates the TypeScript types from the backend OpenAPI schema.
General Issues
Port already in use
Port already in use
Symptoms: Server fails to start because the port is already bound.Solution:Find and kill the process using the port:
Git hooks failing
Git hooks failing
Symptoms: Pre-commit hooks fail when committing.Solution:
-
Run the linters manually to see specific errors:
-
Auto-fix what’s possible:
Getting Help
If you’re still stuck:- Check the
#engineeringSlack channel for similar issues - Search existing GitHub issues
- Ask your onboarding partner
- Create a new GitHub issue with:
- Error messages (full stack trace)
- Steps to reproduce
- Your environment (OS, versions)