新建项目提示:
The form contains the following error:
Failed to create repository via gitlab-shell
#sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Ubuntu 14.04
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.5.2
Bundler Version:1.14.6
Rake Version: 10.5.0
Sidekiq Version:4.1.2
GitLab information
Version: 8.9.5
Revision: fatal: Not a git repository (or any of the parent directories): .git
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://80.grac6cc1.demo.xunda-bj.goodrain.net
HTTP Clone URL: http://80.grac6cc1.demo.xunda-bj.goodrain.net/some-group/some-project.git
SSH Clone URL: [email protected]:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 3.2.0
Repositories: /data/repositories
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking GitLab Shell ...
GitLab Shell version >= 3.0.0 ? ... OK (3.2.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
hooks directories in repos are links: ... can't check, you have no projects
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/home/git/.ssh/authorized_keys: OK
Send ping to redis server: gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ... can't check, you have no projects
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.3)
Your git bin path is "/usr/bin/git"
Git version >= 2.7.3 ? ... yes (2.11.0)
Active users: 1
我看了 git-shell.log 权限也都正确。
1
livelazily 2017-04-14 08:24:33 +08:00
建议直接安装 gitlab omnibus package 或者用 docker 版, 自己手动安装的话很容易配置错误
|