Skip to content

[Bug] Database is uninitialized and superuser password is not specified. #2914

Closed
@JamesJiangL

Description

@JamesJiangL

Contact Information

No response

MaxKB Version

v1.10.4-lts

Problem Description

使用默认配置执行安装,pgsql起不来报错,需要在maxkb/templates/pgsql.env,追加"POSTGRES_HOST_AUTH_METHOD=trust"

Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".

   You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
   connections without a password. This is *not* recommended.

   See PostgreSQL documentation about "trust":

Steps to Reproduce

如上描述

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions