gitlab没有创建回购

时间:2014-07-10 13:49:09

标签: git gitlab

我有一个版本6.9.0的gitlab安装。昨天我注意到,我不能再创建存储库了。

当我再说一遍时,它意味着它几天前肯定有效。

它显示了实验室中的新项目,但是当我尝试推送它时,它拒绝它。然后我登录到服务器并看到,只创建了文件project.wiki.git而不是project.git。

我不知道,我改变了什么,但是对这类问题的所有修复并没有解决我的问题:

  1. 存储库文件拥有所有者git
  2. 显然没有使用gem安装,因为所有看起来像bundle exec rake的命令都会产生错误:Could not locate Gemfile
  3. 我阅读了以下stackoverflow问题:

    1. GitLab does not create new repository
    2. Gitlab refuses to create remote repositories
    3. Can't push to new gitlab install
    4. 修改 以下是请求的日志文件 添加新项目后的production.log:

      Read fragment views/events/71-20140530224306379035000/4f2e3b7fc4c490233af266ce79f73477 (0.2ms)
      Read fragment views/events/70-20140530224303047586000/4f2e3b7fc4c490233af266ce79f73477 (0.2ms)
      Read fragment views/events/60-20140606091003103806000/4f2e3b7fc4c490233af266ce79f73477 (0.1ms)
      Read fragment views/events/59-20140530163859919256000/4f2e3b7fc4c490233af266ce79f73477 (0.1ms)
      Read fragment views/events/44-20140530155332492395000/4f2e3b7fc4c490233af266ce79f73477 (0.1ms)
      Completed 200 OK in 134ms (Views: 69.9ms | ActiveRecord: 10.7ms)
      Started GET "/projects/new" for 31.16.129.243 at 2014-07-12 01:41:49 +0200
      Processing by ProjectsController#new as HTML
      Completed 200 OK in 95ms (Views: 82.3ms | ActiveRecord: 7.0ms)
      Started POST "/projects" for 31.16.129.243 at 2014-07-12 01:41:56 +0200
      Processing by ProjectsController#create as JS
        Parameters: {"utf8"=>"✓", "project"=>{"name"=>"test", "namespace_id"=>"1", "path"=>"", "import_url"=>"", "description"=>"", "visibility_level"=>"0"}, "commit"=>"Create project"}
      Completed 200 OK in 886ms (Views: 34.8ms | ActiveRecord: 133.9ms)
      Started GET "/gitAdmin/test" for 31.16.129.243 at 2014-07-12 01:41:57 +0200
      Processing by ProjectsController#show as HTML
        Parameters: {"id"=>"gitAdmin/test"}
      Completed 200 OK in 61ms (Views: 25.4ms | ActiveRecord: 8.4ms)
      Started GET "/gitAdmin/test?limit=20&offset=0" for 31.16.129.243 at 2014-07-12 01:41:58 +0200
      Processing by ProjectsController#show as JSON
        Parameters: {"limit"=>"20", "offset"=>"0", "id"=>"gitAdmin/test"}
      Read fragment views/events/149-20140711234156987342000/4f2e3b7fc4c490233af266ce79f73477 (0.3ms)
      Write fragment views/events/149-20140711234156987342000/4f2e3b7fc4c490233af266ce79f73477 (0.3ms)
      Completed 200 OK in 48ms (Views: 0.3ms | ActiveRecord: 8.7ms)
      
      Sent mail to email@dr.ess (42.2ms)
      

      EDIT2:好的,我终于走上正轨,也许有人可以提供帮助: 当我运行gitlab-ctl reconfigure时,我得到以下错误:

      ================================================================================
      Error executing action `create` on resource 'user[git]'
      ================================================================================
      
      
      Mixlib::ShellOut::ShellCommandFailed
      ------------------------------------
      Expected process to exit with [0], but received '8'
      ---- Begin output of ["usermod", "-d", "/var/opt/gitlab", "git"] ----
      STDOUT: 
      STDERR: usermod: user git is currently used by process 1356
      ---- End output of ["usermod", "-d", "/var/opt/gitlab", "git"] ----
      Ran ["usermod", "-d", "/var/opt/gitlab", "git"] returned 8
      
      
      Resource Declaration:
      ---------------------
      # In /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb
      
       27: user gitlab_username do
       28:   shell node['gitlab']['user']['shell']
       29:   home gitlab_home
       30:   gid gitlab_group
       31: end
       32: 
      
      
      
      Compiled Resource:
      ------------------
      # Declared in /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb:27:in `from_file'
      
      user("git") do
        action :create
        supports {:manage_home=>false, :non_unique=>false}
        retries 0
        retry_delay 2
        guard_interpreter :default
        username "git"
        gid 1004
        home "/var/opt/gitlab"
        shell "/bin/sh"
        cookbook_name :gitlab
        recipe_name "users"
      end
      
      
      
      
      Running handlers:
      [2014-07-13T00:24:50+02:00] ERROR: Running exception handlers
      Running handlers complete
      
      [2014-07-13T00:24:50+02:00] ERROR: Exception handlers complete
      [2014-07-13T00:24:50+02:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
      Chef Client failed. 0 resources updated in 7.231850297 seconds
      [2014-07-13T00:24:50+02:00] ERROR: user[git] (gitlab::users line 27) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
      ---- Begin output of ["usermod", "-d", "/var/opt/gitlab", "git"] ----
      STDOUT: 
      STDERR: usermod: user git is currently used by process 1356
      ---- End output of ["usermod", "-d", "/var/opt/gitlab", "git"] ----
      Ran ["usermod", "-d", "/var/opt/gitlab", "git"] returned 8
      [2014-07-13T00:24:50+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
      

      我希望你能提供帮助,我真的需要gitlab。

1 个答案:

答案 0 :(得分:1)

对于每个人来说都是同样的问题:

我终于明白了: 我无法记住的原因是我改变了我的git用户的Home Path。将其设置为默认目录/var/opt/gitlab后,一切正常。