runtime error
Exit code: 3. Reason: - INFO - POST /pdf/upload 2025-08-24 02:47:39,557 - app_module - INFO - DELETE /pdf/namespace 2025-08-24 02:47:39,557 - app_module - INFO - GET /pdf/documents 2025-08-24 02:47:39,557 - app_module - INFO - GET /pdf/health 2025-08-24 02:47:39,557 - app_module - INFO - DELETE /pdf/document 2025-08-24 02:47:39,557 - app_module - INFO - GET /ws/status 2025-08-24 02:47:39,557 - app_module - INFO - GET /ws/status/{user_id} INFO: Started server process [1] INFO: Waiting for application startup. 2025-08-24 02:47:39,558 - app_module - INFO - Starting application... 2025-08-24 02:47:39,563 - app.database.postgresql - ERROR - PostgreSQL connection failed: (psycopg2.OperationalError) could not translate host name "pg-25fd2fd6-maiphuocminhtai21032005-5879.l.aivencloud.com" to address: Name or service not known (Background on this error at: https://sqlalche.me/e/20/e3q8) 2025-08-24 02:47:39,628 - app.database.mongodb - INFO - MongoDB connection is working 2025-08-24 02:47:39,628 - app.database.pinecone - INFO - Initializing Pinecone connection to index testbot768... 2025-08-24 02:47:41,683 - app.database.pinecone - INFO - Pinecone connection established to index testbot768 2025-08-24 02:47:41,821 - app.database.pinecone - INFO - Pinecone connection is working. Total vectors: 843 2025-08-24 02:47:41,821 - app_module - ERROR - Failed to connect to databases: postgresql ERROR: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 677, in lifespan async with self.lifespan_context(app) as maybe_state: File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/app/app.py", line 71, in lifespan db_status = check_database_connections() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app.py", line 62, in check_database_connections sys.exit(1) SystemExit: 1 ERROR: Application startup failed. Exiting.
Container logs:
Fetching error logs...