상세 컨텐츠

본문 제목

GITLAB Project 생성시 500 error 발생할때.

Study/Tips

by 휀스 2012. 10. 24. 16:47

본문


GITLAB 세팅을 마치고 Projec 생성하는 데 


500

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.


하고 나오는 경우가 있다.


이럴때


app/roles/repository.rb

파일에서

......
@@ -137,6 +137,8 @@ def discover_default_branch
137137
 
138138
   def has_commits?
139139
     !!commit
 140
+  rescue Grit::NoSuchPathError
 141
+    false
140142
   end
141143
 
142144
   def root_ref


app/views/admin/projects/show.html.haml

파일에서


......
@@ -5,7 +5,7 @@
55
     %i.icon-edit
66
     Edit
77
 
8 
-- if !@admin_project.has_post_receive_file? && @admin_project.commit
 8
+- if !@admin_project.has_post_receive_file? && @admin_project.has_commits?
99
   %br
1010
   .alert.alert-error
1111
     %span


이렇게 고치고 간단하게 reboot 하면 된다.


이거 찾는라 하루종일 삽질했다. ㅠㅠ




관련글 더보기