[Bug] Docker database pgvector connectivity issue on Lobchat files section #4135
Replies: 6 comments 5 replies
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Hey @BILAL324, I'm here to assist you with any bugs, questions, or contributions you have. Let's squash those bugs together! 🤖 I found a similar closed issue that might help you resolve the Docker database pgvector connectivity issue. The issue was related to the configuration of the To resolve the issue, follow these steps:
Additionally, ensure that the For a more streamlined setup, you can use the provided services:
postgresql:
image: pgvector/pgvector:pg16
container_name: lobe-postgres
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_DB=lobe'
- 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
restart: always
minio:
image: minio/minio
container_name: lobe-minio
ports:
- '9000:9000'
- '9001:9001'
volumes:
- './s3_data:/etc/minio/data'
environment:
- 'MINIO_ROOT_USER=YOUR_MINIO_USER'
- 'MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD'
- 'MINIO_DOMAIN=lobe-s3-api.example.com'
- 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.example.com'
restart: always
command: >
server /etc/minio/data --address ":9000" --console-address ":9001"
logto:
image: svhd/logto
container_name: lobe-logto
ports:
- '3001:3001'
- '3002:3002'
depends_on:
postgresql:
condition: service_healthy
environment:
- 'TRUST_PROXY_HEADER=1'
- 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/logto'
- 'ENDPOINT=https://lobe-auth-api.example.com'
- 'ADMIN_ENDPOINT=https://lobe-auth-ui.example.com'
entrypoint: ['sh', '-c', 'npm run cli db seed -- --swe && npm start']
lobe:
image: lobehub/lobe-chat-database
container_name: lobe-database
ports:
- '3210:3210'
depends_on:
- postgresql
- minio
- logto
env_file:
- .env
restart: always
volumes:
data:
driver: local
s3_data:
driver: local Ensure that the environment variables in the For more detailed instructions, refer to the LobeChat Server Database Deployment Guide [6]. |
Beta Was this translation helpful? Give feedback.
-
I think it's not the lobe-chat-database image's issue. It's impossible to list image in the LobeChat frontend. You should check the connection at the container level. Please check your docker image log, I think it's an issue with your db like missing the pgvector plugin |
Beta Was this translation helpful? Give feedback.
-
following as I got same exact issue too |
Beta Was this translation helpful? Give feedback.
-
I try following all the steps and cant get pass the authintication. please note that I am running on local PC. any tip on this? |
Beta Was this translation helpful? Give feedback.
-
If you run on local, there is a script to run our application easily without any configuration. bash <(curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/HEAD/docker-compose/local/setup.sh) -f -l en_US |
Beta Was this translation helpful? Give feedback.
-
📦 Environment
Docker
📌 Version
latest
💻 Operating System
Ubuntu
🌐 Browser
Chrome
🐛 Bug Description
the Postgresql database pgvector should list the database or if empty should show that
but it just keep sending get request and get the response of permission denied
I checked in the docker container of the application the database is accessible properly
as you can see in img but showing error on frontend
📷 Recurrence Steps
i thing there is an issue in the image file so build that igain with the connectivity and all other testings and then push it
🚦 Expected Behavior
the Postgresql database should list the database or if empty should show that
but it just keep sending get request and get the response of permission denied
even in the docke container of the application the database is accessible properly
📝 Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions