Skip to content

Commit

Permalink
docs: standalone psql pg_hba.conf error help
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan committed Dec 8, 2024
1 parent e99edc4 commit c7475a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/docs/administration/postgres-standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ When installing a new version of pgvecto.rs, you will need to manually update th
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>;`.

[vectors-install]: https://docs.pgvecto.rs/getting-started/installation.html

#### no `pg_hba.conf` entry

Postgres' `pg_hba.conf` (e.g. `/var/lib/postgres/data/pg_hba.conf`) must allow collections from immich server. Otherwise, Immich will forward the psql client error:

> ERROR [ExceptionHandler] no pg_hba.conf entry for host "172.29.79.169", user "...", database "...", no encryption
For example, to (insecurely) allow any IP like `172.29.79.*` add the line to `pg_hba.conf`
```
host all all 172.29.79.0/24 trust
```

0 comments on commit c7475a7

Please sign in to comment.