zilliztech / VectorDBBench

A Benchmark Tool for VectorDB
MIT License
540 stars 138 forks source link

psql: SSL SYSCALL error at docker image #352

Open cutecutecat opened 2 months ago

cutecutecat commented 2 months ago

The error is psql: SSL SYSCALL error: Success

This happens when we use psql or psycopg->libpq5 to connect to a encrypted sslmode=require PostgreSQL 16 endpoint, for PGVecto.rs.

pgvector is not tested, but it might have the same error, as this is the issue of PostgreSQL and libpq5.

https://github.com/zilliztech/VectorDBBench/blob/c45876cef17dee92b3f4d1711b4130aa6ecabe39/Dockerfile#L1

OS version link Status
buster[picked] 11.22 https://packages.debian.org/buster/libpq5 Error
bullseye 13.15 https://packages.debian.org/bullseye/libpq5 Error
bookworm 15.7 https://packages.debian.org/bookworm/libpq5 Success

After my tests on local machine:

So it might be helpful if the Dockerfile could be upgraded to:

FROM python:3.11-bookworm as builder-image

FROM python:3.11-slim-bookworm
alwayslove2013 commented 2 months ago

@cutecutecat Great catch! It would be greatly appreciated if you could consider submitting a pull request with the necessary changes.