V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ysicing
V2EX  ›  GitLab

安装完 GitLab 无法新建项目

  •  
  •   ysicing · 2017-04-14 00:01:58 +08:00 · 5653 次点击
    这是一个创建于 2791 天前的主题,其中的信息可能已经有所发展或是发生改变。

    新建项目提示:

    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 条回复    2017-04-14 08:24:33 +08:00
    livelazily
        1
    livelazily  
       2017-04-14 08:24:33 +08:00
    建议直接安装 gitlab omnibus package 或者用 docker 版, 自己手动安装的话很容易配置错误
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1474 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:25 · PVG 01:25 · LAX 09:25 · JFK 12:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.