Skip to content

Commit 581acaf

Browse files
committed
docs: standalone psql pg_hba.conf error help
1 parent e99edc4 commit 581acaf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/docs/administration/postgres-standalone.md

+11
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,14 @@ When installing a new version of pgvecto.rs, you will need to manually update th
6767
If you get the error `driverError: error: permission denied for view pg_vector_index_stat`, you can fix this by connecting to the Immich database and running `GRANT SELECT ON TABLE pg_vector_index_stat TO <immichdbusername>;`.
6868

6969
[vectors-install]: https://docs.pgvecto.rs/getting-started/installation.html
70+
71+
#### no `pg_hba.conf` entry
72+
73+
Postgres' `pg_hba.conf` (e.g. `/var/lib/postgres/data/pg_hba.conf`) must allow connections from immich server. Otherwise, Immich will forward the psql client error:
74+
75+
> ERROR [ExceptionHandler] no pg_hba.conf entry for host "172.29.79.169", user "...", database "...", no encryption
76+
77+
For example, to (insecurely) allow any IP in the `172.29.79.*` range, add a line to `pg_hba.conf` like
78+
```
79+
host all all 172.29.79.0/24 trust
80+
```

0 commit comments

Comments
 (0)