2013-07-22 2 views
2

Мои пользователи испытывают странную вещь. Когда они добавляют свой новый ключ, он работает только на один день, чтобы нажать или клонировать репозиторий. Я просмотрел файл базы данных и authorized_keys и ключи. Я не могу найти ничего заметного в журналах. Это очень раздражает. Кто-нибудь знает, как его решить?gitlab 5.1 новый добавленный ключ ssh для нового пользователя работает только через день (push/clone)

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: [email protected]: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 

ответ

1

5,1 было известно, должны выдавать держать SSH authorize_keys в синхронизации с базой данных, как в issue 3968, немного другой вопрос.

Учитывая, что проблема не актуальна в последней версии 5.3 или 6.0pre, первое, что нужно было бы обновить и посмотреть, не исчезла ли эта проблема.

+0

Спасибо. Я попробую это. – Aitvaras

+0

Я использую gitlab 6.2 и имею ту же проблему. Ключи не попадают в файл authorized_keys. Однако я не ждал дня. (Http://stackoverflow.com/questions/19646780/gitlab-6-2-not-syncing-with-authorized-keys) –

Смежные вопросы