添加存储库、用户或执行其他操作时在 gitlab 上获取 502

Getting 502 on gitlab when adding repositories, users or doing other actions

通常通过多次刷新(重新发送 POST)浏览器来解决。

# sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:     Debian 7.8
Current User:   git
Using RVM:  no
Ruby Version:   2.1.5p273
Gem Version:    2.2.2
Bundler Version:1.8.2
Rake Version:   10.3.2
Sidekiq Version:3.3.0

GitLab information
Version:    7.8.0
Revision:   44c69cb
Directory:  /home/git/gitlab
DB Adapter: postgresql
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    2.5.3
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git

服务器本身有 4GB 可用内存和多核 cpu。错误立即出现,因此它似乎不是内存或超时问题。

我在这里发布了错误:https://bugs.ruby-lang.org/issues/10872 但它因无效而被关闭。

我不知道 ruby 是如何工作的,所以不知道我在看什么或在找什么。

供将来参考:原来 GitLab 在 Debian 7 32 位 上没有 运行 - 我不能肯定地说,但怀疑它与版本有关在 Debian 的 7 存储库(通常较旧)中,因为我编译了大部分内容,并且使用 gem 它无论如何都获得了 GitLab 定义的版本。

很可能 GitLab(或它正在使用的 gems)当前无法在 32 位系统上运行。