# Pg\_ctl: could not start server

**URL:** <https://aiida.discourse.group/t/pg-ctl-could-not-start-server/253>\
**Category:** New to AiiDA\
**Created:** [February 8, 2024, 7:40pm UTC](https://aiida.discourse.group/t/pg-ctl-could-not-start-server/253 "2024-02-08T19:40:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sphuber](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/sphuber/32/6_2.png) [@sphuber](https://aiida.discourse.group/u/sphuber)\
**Post date:** [February 9, 2024, 8:34am UTC](https://aiida.discourse.group/t/pg-ctl-could-not-start-server/253/2 "2024-02-09T08:34:21Z")

</div>

Please check the answer in this thread: [Cannot connect to database - #4 by jgarridoa](https://aiida.discourse.group/t/cannot-connect-to-database/240/4)

It seems like port 5432 is already in use on your system (probably another instance of PostgreSQL is already running). Change the port when launching your server, and then make sure to update the value in your `config.json`. You find the configuration folder in which you find that file by running `verdi profile list`.

---

_[View the full topic](https://aiida.discourse.group/t/pg-ctl-could-not-start-server/253)._
