さくらのVPSに apache + wordpressをインストールしてブログを公開しているが、さらに gitlab を入れて使おうとしてみた。
gitlab-ce をインストールして、gitlab-ctl reconfigure すると、gitlab_sysctl でエラーが発生してしまう。
Common installation problems | GitLab に似た問題が登録されているが、解決方法がわからなかった。
CentOS7+Apacheサーバに GitLab + Mattermost をインストールする – Qiita にまでたどり着けない。(自分の場合は CentOS6だが)
Running handlers:
There was an error running gitlab-ctl reconfigure:
gitlab_sysctl[net.core.somaxconn] (gitlab::unicorn line 37) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[load sysctl conf net.core.somaxconn] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/gitlab_sysctl.rb line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
---- Begin output of sysctl -e --system ----
STDOUT: usage: sysctl [-n] [-e] variable ...
sysctl [-n] [-e] [-q] -w variable=value ...
sysctl [-n] [-e] -a
sysctl [-n] [-e] [-q] -p <file> (default /etc/sysctl.conf)
sysctl [-n] [-e] -A
STDERR: error: Unknown parameter "--system"
---- End output of sysctl -e --system ----
Ran sysctl -e --system returned 255
Running handlers complete
Chef Client failed. 84 resources updated in 01 minutes 43 seconds
追記 2019年8月15日
/etc/sysctl.conf に書くことでオプションを変更できることがわかったので、エラーを出していた conf net.core.somaxconn の値を128から1024に変更することで、とりあえず gitlab-ctl は成功させることができた。
apache との共存はこれから。