# postgress error

**URL:** <https://forum.greenbone.net/t/postgress-error/19768>\
**Category:** How To\
**Created:** [November 27, 2024, 3:49pm UTC](https://forum.greenbone.net/t/postgress-error/19768 "2024-11-27T15:49:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahivapepelui](https://forum.greenbone.net/letter_avatar/ahivapepelui/32/6_449c533f586939b6e5f246632a46421f.png) [@ahivapepelui](https://forum.greenbone.net/u/ahivapepelui)\
**Post date:** [November 27, 2024, 3:49pm UTC](https://forum.greenbone.net/t/postgress-error/19768/1 "2024-11-27T15:49:59Z")

</div>

how do i tell openvas to use postgres17? or how do change ports 5432 and 5433 between them? thanks

```auto
sudo gvm-check-setup
[sudo] password for efontana: 
gvm-check-setup 23.11.0
  Test completeness and readiness of GVM-23.11.0
Step 1: Checking OpenVAS (Scanner)... 
        OK: OpenVAS Scanner is present in version 23.9.0.
        OK: Notus Scanner is present in version 22.6.4.
        OK: Server CA Certificate is present as /var/lib/gvm/CA/servercert.pem.
Checking permissions of /var/lib/openvas/gnupg/*
        OK: _gvm owns all files in /var/lib/openvas/gnupg
        OK: redis-server is present.
        OK: scanner (db_address setting) is configured properly using the redis-server socket: /var/run/redis-openvas/redis-server.sock
        OK: the mqtt_server_uri is defined in /etc/openvas/openvas.conf
        OK: _gvm owns all files in /var/lib/openvas/plugins
        OK: NVT collection in /var/lib/openvas/plugins contains 92737 NVTs.
        OK: The notus directory /var/lib/notus/products contains 472 NVTs.
Checking that the obsolete redis database has been removed
        OK: No old Redis DB
        OK: ospd-openvas service is active.
        OK: ospd-OpenVAS is present in version 22.7.1.
Step 2: Checking GVMD Manager ... 
        OK: GVM Manager (gvmd) is present in version 23.10.0.
Step 3: Checking Certificates ... 
        OK: GVM client certificate is valid and present as /var/lib/gvm/CA/clientcert.pem.
        OK: Your GVM certificate infrastructure passed validation.
Step 4: Checking data ... 
        OK: SCAP data found in /var/lib/gvm/scap-data.
        OK: CERT data found in /var/lib/gvm/cert-data.
Step 5: Checking Postgresql DB and user ... 
        ERROR: The default postgresql version is not the one used for gvmd compilation: (16, need 17).
        FIX: Please use pg_upgradecluster to upgrade your postgresql installation

 ERROR: Your GVM-23.11.0 installation is not yet complete!

Please follow the instructions marked with FIX above and run this
script again.

```

```auto
pg_lsclusters                                                                                                                 
Ver Cluster Port Status Owner Data directory Log file
16 main 5432 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log
17 main 5433 online postgres /var/lib/postgresql/17/main /var/log/postgresql/postgresql-17-main.log

```

---

<div class="post-metadata">

**Author:** ![Lukas](https://forum.greenbone.net/user_avatar/forum.greenbone.net/lukas/32/17_2.png) [@Lukas](https://forum.greenbone.net/u/Lukas)\
**Post date:** [November 27, 2024, 3:53pm UTC](https://forum.greenbone.net/t/postgress-error/19768/2 "2024-11-27T15:53:07Z")

</div>

> [@ahivapepelui](#):
>
> ```auto
> Test completeness and readiness of GVM-23.11.0
> Step 1: Checking OpenVAS (Scanner)... 
> OK: OpenVAS Scanner is present in version 23.9.0.
> OK: Notus Scanner is present in version 22.6.4.
> 
> ```

It seems you are mixing version. Please update all components to the same release.

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:29am UTC](https://forum.greenbone.net/t/postgress-error/19768/3 "2025-04-07T10:29:21Z")

</div>

Closed on April 7, 2025, 10:29am UTC


