无法通过gitlab-shell创建存储库

时间:2016-07-11 11:50:59

标签: gitlab

我刚刚通过CentOS 7上的omnibus软件包安装了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

我不知道发生了什么...... 你有什么主意吗 ?我已经在论坛中检查了每个相关主题,我没有看到任何解决方案。

谢谢!

致以最诚挚的问候,

1 个答案:

答案 0 :(得分:0)

我知道它不是最好的解决方案,但我只是通过以前的GitLab备份恢复:

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

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

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

相关问题