gtiLab 搭建过程遇到的问题

1)tag只显示tag数,不显示具体tag

remote: /home/git/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.8.0.pre/lib/bundler/shared_helpers.rb:85: warning: Insecure world writable dir /home/git/ruby/lib/ruby/gems/2.1.0 in PATH, mode 040777
remote: /home/git/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.8.0.pre/lib/bundler/shared_helpers.rb:85: warning: Insecure world writable dir /home/git/ruby/lib/ruby/gems/2.1.0 in PATH, mode 040777
remote: /home/git/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.8.0.pre/lib/bundler/shared_helpers.rb:85: warning: Insecure world writable dir /home/git/ruby/lib/ruby/gems/2.1.0 in PATH, mode 040777
remote: GitLab: An unexpected error occurred (redis-cli returned 1).
问题原因:gitlib-shell 配置问题(注释掉socket
redis:
bin: /opt/bitnami/redis/bin/redis-cli
host: 127.0.0.1
port: 6379
# socket: /tmp/redis.socket # Only define this if you want to use sockets
namespace: resque:gitlab
 
2)网页无法浏览代码
Completed 500 Internal Server Error in 40ms

ActionView::Template::Error ('nil' is not an ActiveModel-compatible object. It must implement :to_partial_path.):
    17:
    18: %ul.blob-commit-info.bs-callout.bs-callout-info.hidden-xs
    19:   - blob_commit = @repository.last_commit_for_path(@commit.id, @blob.path)
    20:   = render blob_commit, project: @project
    21:
    22: %div#tree-content-holder.tree-content-holder
    23:   %article.file-holder
  app/views/projects/blob/_blob.html.haml:20:in `_app_views_projects_blob__blob_html_haml___1564827466898135987_69864575302980'
  app/views/projects/blob/show.html.haml:5:in `_app_views_projects_blob_show_html_haml__518774741594640230_69864575156440'
 
问题原因:系统存在两个版本的git v1.7.1 与2.1.2

git: /usr/bin/git /usr/local/bin/git

统一替换成v2.1.1,即解决了问题。




]]>

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注