Skip to content

Latest commit

 

History

History
61 lines (55 loc) · 1.64 KB

gitlab.md

File metadata and controls

61 lines (55 loc) · 1.64 KB

Troubleshooting

  • GitLab troubleshooting Linux cheat sheet
  • gitlab-ctl commands
    • gitlab-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 (a space).
      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

Upgrades

  1. Read upgrade notes
  2. Post notification to users
  3. Snapshot GitLab server
  4. Snapshot GitLab database
  5. Remove version lock
    dnf versionlock list
    dnf versionlock delete gitlab-ee
    
  6. View available packages
    dnf --showduplicates list gitlab-ee | less
    
  7. Upgrade package
    dnf install gitlab-ee-16.11.10-ee.0.el7
    
  8. Add version lock
    dnf versionlock list
    dnf versionlock add gitlab-ee