CentOS 6.5: sysctl issue
Hi --
We're trying to get GitLab running on CentOS 6.5 running on an OpenVZ VPS. When running gitlab-ctl reconfigure, I got:
* execute[sysctl] action run
================================================================================
Error executing action `run` on resource 'execute[sysctl]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '255'
---- Begin output of /sbin/sysctl -p /etc/sysctl.conf ----
STDOUT: net.ipv4.ip_forward = 0
net.ipv4.tcp_syncookies = 1
kernel.shmmax = 17179869184
kernel.shmall = 4194304
STDERR: error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
---- End output of /sbin/sysctl -p /etc/sysctl.conf ----
Ran /sbin/sysctl -p /etc/sysctl.conf returned 255
Based on http://serverfault.com/questions/477718/sysctl-p-etc-sysctl-conf-returns-error, I've modified /opt/gitlab/embedded/cookbooks/gitlab/recipes/postgresql.rb
around line 77 to have
# hope this works...
execute "sysctl" do
command "/sbin/sysctl -e -p /etc/sysctl.conf"
action :nothing
end
(Notice the added switch for sysctl.)
After doing this, reconfigure run fine. Could you please check whether this is correct?