Skip to content

Conversation

@dragarcia
Copy link
Contributor

The following error pops up in the recent Dockerbuild:

#8 3698.5 perl: warning: Setting locale failed.
#8 3698.5 perl: warning: Please check that your locale settings:
#8 3698.5 	LANGUAGE = (unset),
#8 3698.5 	LC_ALL = (unset),
#8 3698.5 	LANG = "en_US.utf8"
#8 3698.5     are supported and installed on your system.
#8 3698.5 perl: warning: Falling back to the standard locale ("C").

which then prevents the PG image from going up properly:

supabase-db        | bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
supabase-db        | The files belonging to this database system will be owned by user "postgres".
supabase-db        | This user must also own the server process.
supabase-db        | 
supabase-db        | initdb: error: invalid locale settings; check LANG and LC_* environment variables
supabase-db exited with code 1

Proposed fix is taken from this stack overflow question.

@dragarcia dragarcia merged commit 34135d4 into develop Mar 29, 2022
@dragarcia dragarcia deleted the fix/docker_locale branch March 29, 2022 19:55
hf pushed a commit that referenced this pull request Jan 23, 2023
damonrand pushed a commit to cepro/postgres that referenced this pull request Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants