Skip to content

Not compatible with PostgreSQL 17.4? #76

Closed
@driehle

Description

@driehle

I am using the PostgreSQL image from https://github.com/expaso/hassos-addon-timescaledb and recently, I have upgraded it to the latest version, which comes with PostgreSQL 17.4. I am aware that the version I am using is not the one by alexbelgium, which you recommend in the docs. Since the upgrade, the Teslamate add-on fails to start with the following error message:

Image

I did a bit of research and found out that this likely is from an incompatibility between the psql command included in this add-on and the command included in my PostgreSQL image (i.e. the server version). Here is a somehow related post from Stackoverflow.

There is one \list call in the start-up script which seems to cause this issue:

if [[ -n $(PGPASSWORD="$DATABASE_PASS" psql -h "$DATABASE_HOST" -p "$DATABASE_PORT" -U "$DATABASE_USER" postgres -Atqc "\list \"$DATABASE_NAME\"") ]]; then

Running the same command in my PostgreSQL container works fine and delives the expected output:

Image

Running the same command from the Teslamate add-on causes the same error message as in the logs:

Image

Now, it seems as this add-on image still comes with PostgreSQL client 15.10 and the \list command of that one seems to be incompatible with a PostgreSQL server 17.4. While we could simply say the Teslamate add-on is not compatible with newer PostgreSQL versions, I am suprised as the Teslamate docs explicitly mention PostgreSQL v17+ as a requirement.

So, if this add-on comes with Teslamate 1.32.0 (since 1.4.0), and Teslamate itself requires PostgreSQL 17 since 1.31.0 (although it is somehow a soft requirement according to release notes), why does this add-on still come with a bundled PostgreSQL 15 client?

What do you suggest? Are there plans to upgrade this add-on to PostgreSQL 17 as suggested to be used by Teslamate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions