- GitLab troubleshooting Linux cheat sheet
gitlab-ctl
commandsgitlab-ctl tail
= Tail all logs at once.gitlab-ctl status
= Show status of each service.- NOTE: Sometimes GitLab requires both a restart and a reconfigure for configuration changes to apply!
gitlab-ctl restart && gitlab-ctl reconfigure
- NOTE:
after_script:
blocks ignore nonzero exit codes! - Long lines:
- Join long lines with
my_job: script: - apt-get -qq install curl git unzip
- Join long lines with
\n
(a new line).my_job: script: - | if ! curl -Lks --retry 5 https://icanhazip.com; then echo "Unable to reach internet!" exit 1 fi
- Join long lines with
- Read upgrade notes
- Post notification to users
- Snapshot GitLab server
- Snapshot GitLab database
- Remove version lock
dnf versionlock list dnf versionlock delete gitlab-ee
- View available packages
dnf --showduplicates list gitlab-ee | less
- Upgrade package
dnf install gitlab-ee-16.11.10-ee.0.el7
- Add version lock
dnf versionlock list dnf versionlock add gitlab-ee