处理方法:


1、I just backed up redis (by copying /var/opt/gitlab/redis/dump.rdb).
2、I deleted all keys inside:
3、a) Login to redis by /opt/gitlab/embedded/bin/redis-cli -s /var/opt/gitlab/redis/redis.socket
     b) FLUSHALL

Retry - dont worry - first of all I found a rake::attack key inside. But after another retry it worked.

处理方法2:
修改配置 /etc/gitlab/gitlab.rb

gitlab_rails['rack_attack_git_basic_auth'] = {
  'enabled' => true,
  'ip_whitelist' => ["192.168.123.123", "192.168.123.124"],
  'maxretry' => 10,
  'findtime' => 60,
  'bantime' => 600
}

重新配置gitlab

sudo gitlab-ctl reconfigure

参考博文:Bug 403 Forbidden for complete GitLab Instance