Installation Issues
pounce: command not found
Thepounce CLI is installed as a Python script. Ensure your Python scripts directory is on your PATH:
# Check where pip installs scripts
python -m site --user-base
# The scripts directory is usually:
# macOS/Linux: ~/.local/bin
# Windows: %APPDATA%\Python\PythonXY\Scripts
requires Python >= 3.14
Pounce requires Python 3.14 or later. Check your version:
python --version
For free-threading support, you need a Python 3.14t build.
Startup Issues
Could not import module
Ensure the module is importable from your current directory:
# Verify the module can be imported
python -c "import myapp"
# Common fix: run from the project root
cd /path/to/project
pounce myapp:app
ssl_certfile and ssl_keyfile must both be set
Both TLS options must be provided together:
# Wrong
pounce myapp:app --ssl-certfile cert.pem
# Correct
pounce myapp:app --ssl-certfile cert.pem --ssl-keyfile key.pem
Runtime Issues
Workers crashing in a loop
The supervisor limits restarts to 5 per 60-second window. If workers are crashing repeatedly:
- Check logs for the crash reason (
--log-level debug) - Run in single-worker mode to isolate the issue (
--workers 1) - Common causes: unhandled exceptions in ASGI app, segfaults in C extensions
High memory usage
If you're on a GIL build, workers are processes — each with its own memory copy. Switch to Python 3.14t for thread-based workers with shared memory, or reduce the worker count.
Request timeouts
Increaserequest_timeoutfor slow endpoints:
pounce myapp:app --request-timeout 60
Connection refused
Check that the host and port are correct and not blocked by a firewall:
pounce myapp:app --host 0.0.0.0 --port 8000
127.0.0.1 (default) only accepts local connections. Use 0.0.0.0to accept connections from all interfaces.
Performance Issues
Slow responses
- Enable Server-Timing to identify bottlenecks:
--server-timing - Check if compression is helping or hurting:
--no-compression - Profile your ASGI application (the server overhead is minimal)
Not using all CPU cores
Ensure--workers 0is set for auto-detection, or set an explicit count matching your CPU cores.
See Also
- Error Reference — Complete error hierarchy
- FAQ — Frequently asked questions
- ServerConfig — Configuration validation