-
Notifications
You must be signed in to change notification settings - Fork 53
Can't init database inside a jenkins pipeline build #81
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
Comments
Hi, @fabballe, I'm sorry for the late response. The embedded postgres should be launched under the same user as the build is running (just inheriting it from the parent process), there is currently no option to change that directly from the library. And If you are running the build as root user, that is probably the cause of the problem. Because PostgreSQL has a restriction that the process must be run as non-root user, otherwise the initialization of the database fails. I'm not an expert in kubernetes, but in general, you need to create a non-root user inside the pod and use it to run the build. |
Probably adding |
Hi, |
@fabballe Could you please tell my which solution do you use for now? |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
First of all , thanks for your amazing lib 👍
Nevertheless I have an issue while I try to integrate it.
Locally I achieve to launch my test but when I try to launch it through my Jenkins CI (pipeline branch). I got an issue during the init phase:
it seems there is an issue during user match:
initdb: could not look up effective user ID 65534: user does not exist
.As I am inside a temporary kubernetes pod inside my jenkins I work with a root user.
Locally everything seems to work
Is there a way to choose the user to use to launch the embedded postgres ? Do you have any hint to fix this ?
My dependencies if it can help
Thanks for you reply
The text was updated successfully, but these errors were encountered: