neuhalfen.name

A random collection of posts

First Aid When Gitlab HTTP 500 / Refuses to Create Repositories

Permalink

GitLab is a GitHub like git-repository manager, and more. It supports “repository management”, issue tracking, wiki, groups, and even LDAP authentication . Git is managed by gitolite .
Sometimes creating/moving repositores goes wrong and repositories are no longer available for push/pull or are not moved in gitolite (e.g. the ui shows the new location, SSH the old or both). As of 4.2 GitLab brings some helpers for this.

Check status
su - gitlab
# assuming gitlab is in ~gitlab/gitlab installed. This is the default
cd ~gitlab/gitlab
bundle exec rake gitlab:check RAILS_ENV=production

Also check the help page in the GitLab installation.

Fix problems
su - gitlab
# assuming gitlab is in ~gitlab/gitlab installed. This is the default
cd ~gitlab/gitlab
bundle exec rake gitlab:cleanup:config RAILS_ENV=production
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production

Comments