Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psql: SSL SYSCALL error at docker image #352

Open
cutecutecat opened this issue Jul 29, 2024 · 1 comment
Open

psql: SSL SYSCALL error at docker image #352

cutecutecat opened this issue Jul 29, 2024 · 1 comment

Comments

@cutecutecat
Copy link
Contributor

cutecutecat commented Jul 29, 2024

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.

FROM python:3.11-buster as builder-image

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:

  • psql 11 and 13 have the same error
  • psql 14, 15, 16 are ok

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@cutecutecat @alwayslove2013 and others