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 [2018/03/26 08:53] – 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 ===== | ||
Line 69: | 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 | ||
- | * '' | ||
- | * '' | ||
- | |||
- | Make backup without repository | ||
- | <code bash> | ||
- | For possible rake tasks to skip see into file ''/ | ||
- | For now it cane be: '' | ||
- | |||
- | |||
- | ==== Automating backups ==== | ||
- | crontab -e | ||
- | <code bash>0 2 * * * / | ||
- | |||
- | ==== What is in backup ==== | ||
- | Backup file e.g.: '' | ||
- | < | ||
- | |-- artifacts.tar.gz | ||
- | |-- backup_information.yml | ||
- | |-- builds.tar.gz | ||
- | |-- db | ||
- | | `-- database.sql.gz | ||
- | |-- lfs.tar.gz | ||
- | |-- repositories | ||
- | | |-- group1 | ||
- | | | ||
- | | | ||
- | | |-- group2 | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | `-- user1 | ||
- | | |-- buildroot.bundle | ||
- | | |-- linux-stable.bundle | ||
- | | |-- linux.bundle | ||
- | | |-- uboot.bundle | ||
- | `-- uploads.tar.gz | ||
- | </ | ||
- | Where .bundle filesa re simple tar archives of bare git repos. | ||
- | |||
- | ===== 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 185: | 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 = ' | ||
Line 192: | Line 214: | ||
</ | </ | ||
- | ===== 500 error webhooks | + | ==== 500 error webhooks ==== |
After pressing Test --> Push events, gitlab shows 500 ERROR page. | After pressing Test --> Push events, gitlab shows 500 ERROR page. | ||
Line 215: | Line 237: | ||
gitlab-rake check | 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:// | ||
+ | |||
+ | |||