2016-07-11 54 views
0

我只是通过综合性的软件包安装Gitlab在CentOS 7失败通过gitlab壳创建库

当我尝试创建一个Web界面,我得到了下面的错误一个新项目:

The form contains the following error: 

Failed to create repository via gitlab-shell 

在日志:

gitlab护栏

Processing by ProjectsController#create as HTML 
    Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "project"=>{"namespace_id"=>"1", "path"=>"Extrapack-MonFatec", "import_url"=>"[FILTERED]", "description"=>"", "visibility_level"=>"0"}} 
Unable to save project. Error: Failed to create repository 
Completed 200 OK in 1049ms (Views: 157.3ms | ActiveRecord: 21.0ms) 

gitlab壳

I, [2016-07-11T13:40:42.549484 #31319] INFO -- : Adding project root/Extrapack-MonFatec.git at </var/opt/gitlab/git-data/repositories/root/Extrapack-MonFatec.git>. 

gitlab:检查

Checking GitLab Shell ... 

GitLab Shell version >= 3.0.0 ? ... OK (3.0.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 /opt/gitlab/embedded/service/gitlab-shell/bin/check 
Check GitLab API access: OK 
Check directories and files: 
    /var/opt/gitlab/git-data/repositories: OK 
    /var/opt/gitlab/.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? ... skipped (omnibus-gitlab has no init script) 
Init script up-to-date? ... skipped (omnibus-gitlab has no init script) 
projects have namespace: ... can't check, you have no projects 
Redis version >= 2.8.0? ... yes 
Ruby version >= 2.1.0 ? ... yes (2.1.8) 
Your git bin path is "/opt/gitlab/embedded/bin/git" 
Git version >= 2.7.3 ? ... yes (2.7.4) 
Active users: 1 

Checking GitLab ... Finished 

我不知道发生了什么事...... 你有什么想法?我已经检查了论坛中的所有相关主题,但没有看到任何解决方案。

谢谢!

最好的问候,

回答

0

我知道这是不是最好的解决办法,但我只是从以前的GitLab备份通过还原:

bundle exec rake gitlab:backup:restore RAILS_ENV=production BACKUP=timestamp_of_your_backup

这样做恢复任何设置我搞砸了,并允许我通过网络界面创建一个项目。

我在RHEL 7.3上运行GitLab 2.9(从源代码安装)。