[SOLVED] Running GitLab in LXC

mircsicz

Renowned Member
Sep 1, 2015
62
4
73
near Frankfurt
Hi all,

I've installed gitlab using their packages, following their docs.

Prob is I can't get it configured, running "sudo gitlab-ctl reconfigure"

leads to:
HlxfX4.jpg


Code:
Running handlers:
There was an error running gitlab-ctl reconfigure:

sysctl[net.core.somaxconn] (gitlab::unicorn line 30) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[load sysctl conf net.core.somaxconn] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/sysctl.rb line 60) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
---- Begin output of cat /etc/sysctl.conf /etc/sysctl.d/*.conf  | sysctl -e -p - ----
STDOUT:
STDERR: sysctl: setting key "kernel.sem": Read-only file system
sysctl: setting key "kernel.shmall": Read-only file system
sysctl: setting key "kernel.shmmax": Read-only file system
---- End output of cat /etc/sysctl.conf /etc/sysctl.d/*.conf  | sysctl -e -p - ----
Ran cat /etc/sysctl.conf /etc/sysctl.d/*.conf  | sysctl -e -p - returned 255

Running handlers complete
Chef Client failed. 79 resources updated in 01 minutes 13 seconds

I've read that Thread, also seen on Github and added this to my LXCID.conf:
Code:
lxc.mount.auto: sys:rw
but it doesn't seem to have any effect...


My intention is to migrate a running CT into LXC (by restoring my backup) to save resources for an upcoming migration to a new cluster...

Really hoping one of you has a hint for me ;-)
 
THX for banging my head into the solution o_O

after adding:

Code:
kernel.shmall = 4194304
kernel.sem = 250 32000 32 262
net.core.somaxconn = 1024
kernel.shmmax = 17179869184

to /etc/sysctl.conf on the ProxMox Host and running:

Code:
sudo cat /etc/sysctl.conf /etc/sysctl.d/*.conf | sysctl -e -p

it works now as expected! :D
 
I just uncommented/edited this line in /etc/gitlab/gitlab.rb
Code:
package['modify_kernel_parameters'] = false
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!