postgres icon indicating copy to clipboard operation
postgres copied to clipboard

no usable system locales were found - Alpine postgres

Open bharanitharanm opened this issue 10 months ago • 1 comments

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

bharanitharanm avatar Jan 30 '25 11:01 bharanitharanm

See https://github.com/docker-library/postgres/issues/337

LaurentGoderre avatar Jan 30 '25 14:01 LaurentGoderre