Not install gitlab
I added the variables that are required in the readme.md file as required and tried to run, but the gitlab installation was not successful:
Variables in .env:
- GITLAB_HOSTNAME
- GITLAB_ROOT_PASSWORD
- POSTGRES_PASSWORD
- POSTGRES_USER
In the logs (Maybe this help):
Initialized empty Git repository in /home/git/src/gitaly/.git/
From https://gitlab.com/gitlab-org/gitaly
* tag v12.8.5 -> FETCH_HEAD
HEAD is now at e111ee8 Update VERSION to 12.8.5
patching file ./config.toml.example
mkdir -p _build/src/gitlab.com/gitlab-org
cd _build/src/gitlab.com/gitlab-org && rm -f gitaly && \
ln -sf ../../../.. gitaly
touch _build/.ok
(cd _build && go mod init _build)
go: creating new go.mod: module _build
cd _build && go build -o /home/git/src/gitaly/_build/makegen /home/git/src/gitaly/_support/makegen.go
# command-line-arguments
loadinternal: cannot find runtime/cgo
cd _build && ./makegen > Makefile
fatal: No names found, cannot describe anything.
2020/03/10 01:42:31 error obtaining version from git: git describe: exit status 128
2020/03/10 01:42:31 Attempting to get the version from file
cd _build && make install
make[1]: Entering directory '/home/git/src/gitaly/_build'
cd /home/git/src/gitaly/ruby && bundle config # for debugging
cd bin && install gitaly gitaly-debug gitaly-hooks gitaly-ssh gitaly-wrapper praefect /usr/local/bin/
make[1]: Leaving directory '/home/git/src/gitaly/_build'
Missing Rails.application.secrets.secret_key_base for production environment. The secret will be generated and stored in config/secrets.yml.
Missing Rails.application.secrets.otp_key_base for production environment. The secret will be generated and stored in config/secrets.yml.
Missing Rails.application.secrets.db_key_base for production environment. The secret will be generated and stored in config/secrets.yml.
Missing Rails.application.secrets.openid_connect_signing_key for production environment. The secret will be generated and stored in config/secrets.yml.
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/zh_TW
yarn install v1.16.0
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "ts-jest@24.0.0" is incompatible with requested version "ts-jest@^23.10.5"
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
I also think it's worth pointing out that I initially installed to the rasberry pi 4, but it lacked RAM (for node), so I replaced in
overlay/usr/local/bin/setup.sh
-export NODE_OPTIONS="--max_old_space_size=2200"
+export NODE_OPTIONS="--max_old_space_size=4096"
The installation did not go much higher as the errors described above occurred. Also tried to replace the ruby version in the dockerfile from 2.6-alpine to 2.7-alpine (currently 2-alpine)
After that I tried to install it on my laptop, it has no problems with RAM, but the errors mentioned above still happened