Installing gems starts PostgreSQL. Why?
Overview
User on Discord couldn't install GDK on MacOS. Quote from the #contribute channel.
Currently the gitlab-development-kit folder seems fine, gdk commands can be run but when we run gdk install gitlab_repo={repo address} it fails saying:
--------------------------------------------------------------------------------
Installing gitlab-org/gitaly Ruby gems
--------------------------------------------------------------------------------
ok: run: /Users/home/Documents/git-folder/gitlab-development-kit/services/postgresql: (pid 45488) 1295s, normally down
ok: run: /Users/home/Documents/git-folder/gitlab-development-kit/services/redis: (pid 45487) 1295s, normally down
ERROR: psql: error: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/Users/home/Documents/git-folder/gitlab-development-kit/postgresql/.s.PGSQL.5432"?
postgres not ready
make[1]: * [postgresql-seed-praefect] Error 1
make: * [gitaly-update-timed] Error 2
❌️ ERROR: Failed to install.
Starting PostgreSQL to install gems seems wrong to me. But on Gitpod I see the same behavior.
--------------------------------------------------------------------------------
Installing gitlab-org/gitaly Ruby gems
--------------------------------------------------------------------------------
ok: run: /workspace/gitlab-development-kit/services/postgresql: (pid 33508) 0s, normally down
ok: run: /workspace/gitlab-development-kit/services/redis: (pid 33509) 0s, normally down
praefect sql-migrate: all migrations are up
Why it happens?
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate (optional)
Proposal (optional)
Environment (optional)
- Operating system name:
<!-- output of `uname -a` command --> - Architecture:
<!-- output of `arch` command --> - The contents of your
gdk.yml(if any) - Ruby version:
<!-- output of `ruby --version` command --> - GDK version:
<!-- output of `git rev-parse --short HEAD` command -->