Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Init Db Failing in Docker Container with AlmaLinux:9 #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bcentner opened this issue May 8, 2025 · 1 comment
Closed

Init Db Failing in Docker Container with AlmaLinux:9 #151

bcentner opened this issue May 8, 2025 · 1 comment

Comments

@bcentner
Copy link

bcentner commented May 8, 2025

I struggled with the Process [/tmp/embedded-pg/PG-XYZ/bin/initdb, ...] failed over the last week and figured out a solution that I can't find documented anywhere. I wanted to post here to save others some time!

My unit tests were passing locally, but failing during CICD in Docker container using AlmaLinux:9. None of the suggestions in the Readme resolved my issue. I was using a non-root user, the temporary directory had correct permissions, and there was no issue with the binaries.

Upon lots of investigating, I found that the flavor of AlmaLinux:9 I was pulling was not defaulting to the correct locales. It looks like this is resolved in some flavors of AlmaLinux:9.5

Adding glibc-langpack-en to my system installs completely resolved my issue.
RUN dnf install -y glibc-langpack-en

You may also need to use .setLocaleConfig() when building your EmbeddedPostgres instance

@bcentner
Copy link
Author

bcentner commented May 8, 2025

Goal of this issue is to provide help to others hitting the same roadblock. Marking as closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants