Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
omnibus-gitlab
omnibus-gitlab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 856
    • Issues 856
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 76
    • Merge Requests 76
  • Requirements
    • Requirements
    • List
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Issues
  • #361

Closed
Open
Opened Nov 26, 2014 by Zoltán Adamek (Scorchio)@djscorchio

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?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/omnibus-gitlab#361