Hi! I’m currently upgrading our gitlab server from 15.4.6 to 15.11.3 but I’ve been encountering some errors.
I’ve already upgraded my postgresql from 12.12 to 13.8 using gitlab-ctl pg-upgrade -V 13 successfully without errors.
I am currently following this upgrade path: Upgrade Path
But when i try to do sudo yum install -y gitlab-ce-15.11.3-ce.0.el7.x86_64
I am able to upgrade it successfully but seeing this error:
ERROR: Running exception handlers
There was an error running gitlab-ctl reconfigure:
execute[reload all sysctl conf] (package::sysctl line 18) 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
ERROR: Exception handlers complete
Infra Phase failed. 72 resources updated in 02 minutes 54 seconds
[2024-04-04T00:07:28+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2024-04-04T00:07:28+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-04-04T00:07:28+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2024-04-04T00:07:28+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-04-04T00:07:28+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[reload all sysctl conf] (package::sysctl line 18) 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
===
There was an error running gitlab-ctl reconfigure. Please check the output above for more
details.
===
warning: %posttrans(gitlab-ce-15.11.3-ce.0.el7.x86_64) scriptlet failed, exit status 1
When i do “gitlab-ctl reconfigure” it goes through successfully as well though and when i do “gitlab-ctl restart”
gitlab-ctl restart response:
ok: run: alertmanager: (pid 15043) 1s
ok: run: gitaly: (pid 15068) 0s
ok: run: gitlab-exporter: (pid 15087) 1s
ok: run: gitlab-kas: (pid 15161) 0s
ok: run: gitlab-pages: (pid 15171) 0s
ok: run: gitlab-workhorse: (pid 15181) 1s
ok: run: grafana: (pid 15197) 0s
ok: run: logrotate: (pid 15210) 1s
ok: run: nginx: (pid 15216) 0s
ok: run: node-exporter: (pid 15230) 1s
ok: run: postgres-exporter: (pid 15236) 0s
ok: run: postgresql: (pid 15251) 0s
ok: run: prometheus: (pid 15260) 1s
ok: run: puma: (pid 15279) 0s
ok: run: redis: (pid 15296) 1s
ok: run: redis-exporter: (pid 15303) 0s
ok: run: registry: (pid 15317) 0s
ok: run: sidekiq: (pid 15327) 1s
gitlab-psql --version
psql (PostgreSQL) 13.8
OS: Amazon Linux AMI 2016.09