letta-ai / letta

Letta (formerly MemGPT) is a framework for creating LLM services with memory.
https://letta.com
Apache License 2.0
12.88k stars 1.41k forks source link

Docker Compose startup issues: nginx configuration and database initialization #2056

Closed sethanderson1 closed 4 days ago

sethanderson1 commented 4 days ago

Describe the bug Docker compose startup fails due to two issues:

  1. Nginx container fails due to duplicate port 8283 listener configuration
  2. Letta server fails to connect to database due to timing issues in container startup sequence

Please describe your setup

Screenshots Error logs showing both issues:

letta_nginx-1   | 2024/11/18 02:23:20 [emerg] 1#1: a duplicate listen 0.0.0.0:8283 in /etc/nginx/nginx.conf:9
letta_server-1  | pg8000.exceptions.InterfaceError: Can't create a connection to host pgvector_db and port 5432

Additional context The issues occur on fresh clone when running docker compose up. The nginx container fails immediately due to configuration error, and even after fixing that, the Letta server fails to connect to the database because it attempts connection before the database is ready to accept connections.

Letta Config Not applicable - issue occurs before config is loaded, during Docker compose startup.