ssh - gitlab 5.1 为新用户新添加的 ssh key 仅在一天后工作(推送/克隆)

标签 ssh git-push gitlab

我的用户遇到了奇怪的事情。当他们添加新 key 时,推送或克隆存储库只需另一天。我查看了数据库和 authorized_keys 文件,并且 key 在那里。我在日志中也找不到任何可见的东西。这很烦人。有人知道如何解决吗?

Gitlab 版本 5.1.0

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking Gitlab Shell ...

GitLab Shell version? ... OK (1.3.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ...
Studentas Test / amen6 ... ok

Checking Gitlab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... no
  Try fixing it:
  Redownload the init script
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  Please fix the error above and rerun the checks.
Projects have satellites? ...
Studentas Test / amen6 ... yes
Redis version >= 2.0.0? ... yes

Checking GitLab ... Finished

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

System information
System:     Ubuntu 12.04
Current User:   git
Using RVM:  no
Ruby Version:   1.9.3p392
Gem Version:    1.8.23
Bundler Version:1.3.5
Rake Version:   10.0.4

GitLab information
Version:    5.1.0
Revision:   a06d9a4
Directory:  /home/git/gitlab
DB Adapter: postgresql
URL:        https://host.lt
HTTP Clone URL: https://host.lt/some-project.git
SSH Clone URL:  git@host.lt:some-project.git
Using LDAP: yes
Using Omniauth: no

GitLab Shell
Version:    1.3.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git
My users experience strange thing. When they add their new key, it works only another day to push or clone a repository. I looked into database and authorized_keys file and keys are there. 
Gitlab version 5.1.0

最佳答案

已知 5.1 必须保持 ssh authorize_keys 与数据库同步,如 issue 3968 ,略有不同的问题。

考虑到这个问题似乎与最新的 5.3 或 6.0pre 版本无关,首先要升级并查看该问题是否仍然存在。

关于ssh - gitlab 5.1 为新用户新添加的 ssh key 仅在一天后工作(推送/克隆),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17781229/

相关文章:

git - 如何仅将我最新的提交与 git 同步?

gitlab - gitlab 部署 key 是只读的吗?

python-3.x - 在 GitLab 中创建一个 pyqt 构建

git - 避免在 git push 到远程时出现密码短语提示

hadoop - Hadoop:无密码SSH错误

java - 如何获取字符串中的 jsch shell 命令输出

git - 从本地存储库克隆,然后推回更改

git - 为什么是 "git push helloworld +master:master"而不是 "git push helloworld"?

gitlab - 如何增加本地 Gitlab 的最大工件大小