Skip to content

fix: unable to create database on postgresql 12 and 13 #43

@alehostert

Description

@alehostert

Static Badge Static Badge

We're unable to create a database on PostgreSQL, versions 12 and 13.

Changing the authentication method to md5 on pg_hba.conf fixes the issue:

- local   all             postgres                                peer
+ local   all             postgres                                md5

Steps to reproduce

os db create --db-type postgresql --db-name test
2025-11-28T19:33:26Z ERR CreateDatabaseError err="{\"stdErr\":\"psql: error: connection to server on socket \\\"/var/run/postgresql/.s.PGSQL.5432\\\" failed: FATAL:  password authentication failed for user \\\"postgres\\\"\\npassword retrieved from file \\\"/root/.pgpass\\\"\\n\",\"exitCode\":2}"
{
  "status": "infraError",
  "body": "CreateDatabaseInfraError"
}

Metadata

Metadata

Assignees

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