gdk install - go 1.14 fails to install under Vagrant
From @kumbayo at #849 (comment 313786983):
I experienced a problem somewhat related to this. (Not sure if this warrants a separate issue)
I have tried to set up GitLab using the GDK inside a Vagrant/Docker (following the manual).
This setup currently fails when using go 1.14.
runtime: mlock of signal stack failed: 12
runtime: increase the mlock limit (ulimit -l) or
runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
fatal error: mlock failed
For more details about this error, see Go LinuxKernelSignalVectorBug
The Vagrantfile currently installs the latest go version from ppa:longsleep/golang-backports which at this time is 1.14.
Maybe it is possible to explicit install 1.13 to avoid this problem?
Or choose another solutions suggested by the Go developers.
I could not get the other suggestions to work :-(
My current workaround:
sudo apt install golang-1.13
cd /usr/bin/
sudo ln -s ../lib/go-1.13/bin/go go
Details:
- OS:
Ubuntu Focal Fossa 20.04 - Kernel:
5.4.0-18-generic(latest available)
Erroring command:
vagrant@74d5ed2e1242:~/gitlab-development-kit$ gdk install
(in /vagrant)
...
runtime: mlock of signal stack failed: 12
runtime: increase the mlock limit (ulimit -l) or
runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
fatal error: mlock failed
runtime stack:
runtime.throw(0xa3b461, 0xc)
/usr/lib/go-1.14/src/runtime/panic.go:1112 +0x72
runtime.mlockGsignal(0xc000383b00)
/usr/lib/go-1.14/src/runtime/os_linux_x86.go:72 +0x107
runtime.mpreinit(0xc0000f1500)
/usr/lib/go-1.14/src/runtime/os_linux.go:341 +0x78
...
make[1]: *** [gitlab-zip-cat] Error 2
Makefile:365: recipe for target 'gitlab-workhorse/gitlab-workhorse' failed
make: *** [gitlab-workhorse/gitlab-workhorse] Error 2
vagrant@74d5ed2e1242:~/gitlab-development-kit$ uname -a
Linux 74d5ed2e1242 5.4.0-14-generic #17-Ubuntu SMP Thu Feb 6 22:47:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
vagrant@74d5ed2e1242:~/gitlab-development-kit$
Edited by Ash McKenzie