Skip to content
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

Postgres not started due to permissions #40

Closed
alekseysotnikov opened this issue Jul 23, 2020 · 2 comments
Closed

Postgres not started due to permissions #40

alekseysotnikov opened this issue Jul 23, 2020 · 2 comments

Comments

@alekseysotnikov
Copy link

alekseysotnikov commented Jul 23, 2020

When am starting EmbeddedPostgres is fails with a strange error. Does anybody know how to fix it?

The files belonging to this database system will be owned by user “xxxx”.
This user must also own the server process.
initdb: invalid locale settings; check LANG and LC_* environment variables

and stack-strace

java.lang.IllegalStateException: Process [target/postgres-working-dir/PG-73dc0043fe7bdb624d5e8726bc457b7e/bin/initdb, -A, trust, -U, postgres, -D, target/postgres-data-dir, -E, UTF-8] failed
                                 
       com.opentable.db.postgres.embedded.EmbeddedPostgres.system  EmbeddedPostgres.java:  602
       com.opentable.db.postgres.embedded.EmbeddedPostgres.initdb  EmbeddedPostgres.java:  221
       com.opentable.db.postgres.embedded.EmbeddedPostgres.<init>  EmbeddedPostgres.java:  142
com.opentable.db.postgres.embedded.EmbeddedPostgres$Builder.start  EmbeddedPostgres.java:  554
                              
@alekseysotnikov alekseysotnikov changed the title Postgres not started due to permitions Postgres not started due to permissions Jul 23, 2020
@tomix26
Copy link
Collaborator

tomix26 commented Jul 24, 2020

I think there is a solution to your problem: #11 (comment)

@tomix26
Copy link
Collaborator

tomix26 commented Sep 11, 2020

No response, closing the issue.

@tomix26 tomix26 closed this as completed Sep 11, 2020
sleberknight added a commit to kiwiproject/kiwi-test that referenced this issue Feb 28, 2021
Since we originally implemented these and had problems running the
tests on macOS, things seem to have gotten fixed. So this commit simply
removes the EnabledOnOs annotation that restricted to Linux. I don't
really care about Windows, and doubt anyone is using this there anyway.

See:

zonkyio/embedded-postgres#32
zonkyio/embedded-postgres#40

Also see:

zonkyio/embedded-postgres#11
zonkyio/embedded-postgres#11 (comment)

for the original solution regarding the LC_CTYPE and LC_ALL environment
variables.

Closes #80
Closes #152
sleberknight added a commit to kiwiproject/kiwi-test that referenced this issue Feb 28, 2021
Since we originally implemented these and had problems running the
tests on macOS, things seem to have gotten fixed. So this commit simply
removes the EnabledOnOs annotation that restricted to Linux. I don't
really care about Windows, and doubt anyone is using this there anyway.

See:

zonkyio/embedded-postgres#32
zonkyio/embedded-postgres#40

Also see:

zonkyio/embedded-postgres#11
zonkyio/embedded-postgres#11 (comment)

for the original solution regarding the LC_CTYPE and LC_ALL environment
variables.

Closes #80
Closes #152
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