2016-07-11 42 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(從源代碼安裝)。