Skip to content

Could not start PostgreSQL server #808

Open

Description

@ApoorvaMittal98

Hi,
I am unable to figure out how to fix this, i had enterprise db installed and i went ahead and deleted everything and terminated all commands in the activity monitor.

Image

Activity

  1. jakob commented on Mar 10, 2025

    @jakob
    Member

    PostgreSQL by default creates two files in /tmp while it is running:

    • socket file: /tmp/.s.PGSQL.5432
    • lock file: /tmp/.s.PGSQL.5432.lock

    You can check if these files are there with this command:

    ls -l /tmp/.s.PGSQL.5432*

    If you had EnterpriseDB installed, and force quit the server, these files might still be left. Since EnterpriseDB runs the server with a different system user, these files probably belong to a user named postgres and Postgres.app can't delete them.

    If you are sure that EnterpriseDB is not running anymore, you can delete these files with sudo rm:

    sudo rm /tmp/.s.PGSQL.5432*

    Restart your computer after deleting the files, and then run the ls command from above to make sure they are still gone. If they reappear after a restart, you still have a PostgreSQL server running somewhere.

    Hope this helps!

  2. ntvviktor commented on Apr 29, 2025

    @ntvviktor

    It works when I delete on these socket files. Do you @jakob mind to elaborate more about this, like how to know that I'm currently using an enterprise database:

    If you had EnterpriseDB installed, and force quit the server, these files might still be left. Since EnterpriseDB runs the server with a different system user, these files probably belong to a user named postgres and Postgres.app can't delete them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions