Posts

Showing posts with the label GitLab

Synology GitLab Backup and Restore

Image
GitLab has built-in backup and restore capability, but it is not immediately apparent how to use backup and restore on the Synology NAS installation of GitLab.  The following instructions may also be applicable for other Docker based GitLab installations. This post will explain how to protect your data in the GitLab repository.  This is protecting against a catastrophic RAID failure, and also accidentally corrupting/destroying the repository.  Please ensure you have backups stored off-site, and ideally multiple versions of the backup data. With any backup/restore procedures it is important that you are able to test/validate the ability to recover your data before you need to do so. TIP: Check out my quick fix if you get the dreaded GitLab 502 error .

Synology GitLab error 502

Image
How to fix the GitLab 502 error Occasionally when starting GitLab, I get a 502 error ("Whoops, GitLab is taking too much time to respond").  It appears to happen when my Synology NAS has restarted after a power outage. Checking the Docker GitLab log, I can seen continual messages about trying to restart the "unicorn" process.  This also causes high CPU usage. 2017-03-27 00:35:08,892 INFO spawned: 'unicorn' with pid 27723 2017-03-27 00:35:09,896 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2017-03-27 00:35:14,277 INFO exited: unicorn (exit status 1; not expected) ...