You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2020. It is now read-only.
It looks like the container is using root user, which is a known limitation of Postgres server (please refer the respective section of a readme file for more info).
If you can start your process under unprivileged user, you should be fine.
same issue here, does not run inside a docker container (tested alpine and debian)
failed with:
[main] WARN ru.yandex.qatools.embed.postgresql.PostgresProcess - Possibly failed to run initdb:
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will own the server process.
[main] ERROR ru.yandex.qatools.embed.postgresql.PostgresProcess - Failed to read PID file (File '/tmp/postgresql-embed-5bc587a2-1a99-4269-bad7-da8cc1c73cc5/db-content-67cb119f-81d4-472e-b517-2d9d7c6a8902/postmaster.pid' does not exist)
Postgres have been started as a part of unit tests on a CI server
Any ideas how to work around the issue?
I am having difficulties with running the embedded version of postgres from within my test suit.
Here is the error I am getting:
This is how I instantiate the database:
And the environment variable in the gitlab ci config file is set to:
Does anyone have experience with running postgres in gitlab container and would like to shed some light on the issue?
Many thanks!
The text was updated successfully, but these errors were encountered: