Skip to content

error: couldn't scale gitlab-1 to 1: timed out waiting for "gitlab-1" to be synced

Have failed multiple times replicating 'idea-to-production' deployment onto a single node deployed onto Centos.

Have tried a Digital Ocean box (32 GB 12CPU) and Hetzner box (48GB 8CPU) running the following for setup:

yum -y update

tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF

yum install -y docker-engine

systemctl enable docker.service
systemctl start docker

mkdir /etc/systemd/system/docker.service.d
tee /etc/systemd/system/docker.service.d/docker.conf <<-'EOF'
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --insecure-registry 172.30.0.0/16
EOF

wget https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-linux-64bit.tar.gz

tar xf openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-linux-64bit.tar.gz

cp openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-linux-64bit/oc /usr/local/bin/

systemctl stop docker
systemctl daemon-reload
systemctl start docker
systemctl status docker

oc cluster up --public-hostname=openshift.xxx.pw

Create a new project named gitlab, copying over the template (https://gitlab.com/gitlab-org/omnibus-gitlab/raw/openshift-idea-to-production/docker/openshift/idea-2-prod-template.json), then changing the gitlab and mattermost urls.

Each time I get the error:

error: couldn't scale gitlab-1 to 1: timed out waiting for "gitlab-1" to be synced

Could someone provide a setup script which works together with the minimum requirements for the server?