Skip to content

no usable system locales were found - Alpine postgres #1311

Open
@bharanitharanm

Description

@bharanitharanm

Getting this error during postgres startup,

sh: locale: not found
2025-01-30 10:33:25.556 UTC [36] WARNING:  no usable system locales were found

I dont see any issues beacuse of this. Databases are created with en-US ICU locale,

Image

Need to understand if there is anything needs to be configure to avoid this error. Also are there any impact because of this error?

Currently I'm using, postgres:16.6-alpine3.20

I tried setting this environment variable, still it is not resolved,

POSTGRES_INITDB_ARGS: --locale-provider=icu --icu-locale=en-US

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