Fixing Gitlab Problems
Ever since I first installed gitlab I have had a few problems with it. The first is user account creation. I don’t want other people making accounts on my server, so naturally I uncheck the enable account creation in settings. This of course results in a 500 error as soon as I hit apply. This actually applies to most settings. Not all would give a 500 error but none of them would apply successfully. This was an issue with gitlab that I won’t pretend to understand but this fixed it. Essentially, put
settings = ApplicationSetting.last
settings.update_column(:runners_registration_token_encrypted, nil)
into your gitlab-rails console and restart gitlab and it fixes it.
The next problem was the Web IDE not loading. Upon closer inspection, it was
getting a 404 error upon loading some data. A little more digging found
this. The relevant
lines here are AllowEncodedSlashes NoDecode
and ProxyPass / https://backend/ nocanon
.
Once I put those in my Apache virtualhost and restarted, it worked right away.
Oh I also updated to the latest version since I hadn’t updated it since I first installed it a year and a half ago. Oops.