meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git:gitlab [2016/04/27 13:31] – [gitlab] niziak | git:gitlab [2021/12/10 10:45] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| Download location: [[https:// | Download location: [[https:// | ||
| Line 5: | Line 5: | ||
| Configure Gitlab' | Configure Gitlab' | ||
| - | <code bash> | ||
| - | gitlab-ctl stop | ||
| - | gitlab-ctl start | ||
| - | </ | ||
| Get installed version info | Get installed version info | ||
| <code bash> | <code bash> | ||
| - | <code bash> | + | See logs: |
| + | <code bash> | ||
| + | gitlab-ctl tail # all logs | ||
| + | |||
| + | tail -f / | ||
| + | </ | ||
| <code bash> | <code bash> | ||
| <code bash> | <code bash> | ||
| + | <code bash> | ||
| + | gitlab-rails console | ||
| + | </ | ||
| + | |||
| + | Restart services without downtime | ||
| + | <code bash> | ||
| + | sudo gitlab-ctl hup unicorn | ||
| + | sudo gitlab-ctl hup puma | ||
| + | sudo gitlab-ctl restart sidekiq | ||
| + | sudo gitlab-ctl hup nginx | ||
| + | </ | ||
| + | |||
| + | ===== Start / stop / enable / disable ===== | ||
| + | |||
| + | <code bash> | ||
| + | gitlab-ctl stop | ||
| + | gitlab-ctl start | ||
| + | |||
| + | systemctl disable gitlab-runsvdir.service | ||
| + | systemctl enable gitlab-runsvdir.service | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| ===== Configuration ===== | ===== Configuration ===== | ||
| - | <file | / | + | < |
| # will be started on :80 port | # will be started on :80 port | ||
| external_url " | external_url " | ||
| + | external_port " | ||
| # will be started on :443 port | # will be started on :443 port | ||
| Line 41: | Line 68: | ||
| </ | </ | ||
| - | < | + | <file ruby | / |
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | |||
| + | # If your SMTP server does not like the default 'From: gitlab@localhost' | ||
| + | # can change the ' | ||
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | gitlab_rails[' | ||
| + | </ | ||
| + | |||
| + | < | ||
| ===== Uninstall ===== | ===== Uninstall ===== | ||
| Line 52: | Line 95: | ||
| </ | </ | ||
| - | ===== Making backup ===== | ||
| - | * block gitlab access (but leave maintenance web page) | ||
| - | * gitlab-ctl deploy-page up | ||
| - | * sudo gitlab-ctl stop unicorn | ||
| - | * sudo gitlab-ctl stop sidekiq | ||
| - | * Store configuration file manually (/ | ||
| - | * Trigger backup creation | ||
| - | * '' | ||
| - | |||
| - | * Start gitlab | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | ==== Automating backups ==== | ||
| - | crontab -e | ||
| - | <code bash>0 0 * * * / | ||
| - | |||
| - | |||
| - | ===== Restoring backup ===== | ||
| - | * install exactly the same version from backup comes | ||
| - | * to wrap '' | ||
| - | * install default gitlab package and make sure it is running | ||
| - | * use /etc/gitlab from backup | ||
| - | * run '' | ||
| - | * stop gitlab | ||
| - | * '' | ||
| - | * '' | ||
| - | * Restore backup | ||
| - | * '' | ||
| - | * OR '' | ||
| - | * Start GitLab | ||
| - | * '' | ||
| - | * Check GitLab | ||
| - | * '' | ||
| Line 136: | Line 145: | ||
| * [[gitlab# | * [[gitlab# | ||
| + | ===== Issues ===== | ||
| - | ===== FQDN issue ===== | + | ==== undefined method `tree' for #< |
| + | |||
| + | After update '' | ||
| + | Problem browsing repo files when TAG is selected. | ||
| + | <code bash> | ||
| + | tail -f / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | NoMethodError (undefined method `tree' for #< | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | app/ | ||
| + | app/ | ||
| + | app/ | ||
| + | app/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | app/ | ||
| + | app/ | ||
| + | app/ | ||
| + | app/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | app/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | app/ | ||
| + | lib/ | ||
| + | app/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | config/ | ||
| + | lib/ | ||
| + | lib/ | ||
| + | </ | ||
| + | ==== / | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | ==== FQDN issue ==== | ||
| ERROR: External URL must include a FQDN | ERROR: External URL must include a FQDN | ||
| <file | external_url = ' | <file | external_url = ' | ||
| external_url = ' | external_url = ' | ||
| </ | </ | ||
| + | |||
| + | ==== 500 error webhooks ==== | ||
| + | |||
| + | After pressing Test --> Push events, gitlab shows 500 ERROR page. | ||
| + | < | ||
| + | # gitlab-ctl tail | ||
| + | |||
| + | ==> / | ||
| + | |||
| + | URI:: | ||
| + | lib/ | ||
| + | app/ | ||
| + | app/ | ||
| + | app/ | ||
| + | app/ | ||
| + | </ | ||
| + | <code bash> | ||
| + | |||
| + | New security settigns was added. To allow remote network operations you should enable it in admin settings: | ||
| + | Outbound requests --> Allow requests to the local network from hooks and services | ||
| + | |||
| + | |||
| + | gitlab-rake check | ||
| + | </ | ||
| + | |||
| + | ==== [WARNING] Executing 4:Deadline Exceeded ==== | ||
| + | |||
| + | During backup: | ||
| + | < | ||
| + | ... | ||
| + | * project/ | ||
| + | Ignoring error on project/ | ||
| + | [DONE] | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | Fixed [[https:// | ||
| + | |||
| + | //The issue originally refers to the HasLocalBranches RPC which operates under the 'fast timeout' | ||
| + | |||
| + | Introduced already in version 12.4.0 [[https:// | ||
| + | |||
| + | |||