セットアップ: Gitlab CE Gitlab 7.8.4 Git-shell: 2.5.4 Gitlab API: v3 Ruby: 2.1.5p273 Rails: 4.1.1
これは、プッシュしようとしているのと同じユーザー (ユーザーは管理者) が所有するプライベート リポジトリでのテストです。環境チェックはエラーなしでクリーンです。HTTPS を試しても SSH を試しても同じエラーです。アップグレード前は SSH が機能していました。
エラー:
git push -u origin master
/usr/local/lib/ruby/2.1.0/json/common.rb:155:in `parse': 757: unexpected token at 'false' (JSON::ParserError)
from /usr/local/lib/ruby/2.1.0/json/common.rb:155:in `parse'
from /home/git/gitlab-shell/lib/gitlab_access_status.rb:13:in `create_from_json'
from /home/git/gitlab-shell/lib/gitlab_net.rb:34:in `check_access'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:25:in `exec'
from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
同様の問題: https://gitlab.com/gitlab-org/gitlab-ce/issues/838
HTTPS および SSH 経由で適切にアクセスできるように見えますが、サーバー上の何か (おそらく git-shell を使用) が正しくありません。
これまでに行ったこと:
sudo -u git -H bundle exec rake gitlab:shell:setup RAILS_ENV=production
「AllowUsers git」が sshd_config にあることを確認しました
ssh-keygen -A
ssh-keygen: generating new host keys: ED25519
git-shell の別のバージョンを 2.2.0 に戻してみました。
# ssh git@gitlab.domain.com
PTY allocation request failed on channel 0
Welcome to GitLab, Anonymous!
Connection to gitlab.domain.com closed.