Project

General

Profile

Internal Server Error when trying to brows git repository

Added by Phil Hauber almost 14 years ago

Im pretty new to redmine and ruby so I'm a little bit helpless in this. There are many very similar problems in the forums and bugtickets but none of them solved it for me.

The problem:
When I browse my git repository within redmine the request takes quite a long time and results in a Internal Server error. The production.log says:

Processing RepositoriesController#show (for [::1]:57835 at 2010-05-22 09:04:30) [GET]
Parameters: {"action"=>"show", "id"=>"myProject", "controller"=>"repositories"}
The revision 'My Project' has a wrong format
Rendering template within layouts/base
Rendering repositories/show

ActionView::TemplateError (stack level too deep) on line #21 of app/views/repositories/_revisions.rhtml:
18: <td class="checkbox"><%= radio_button_tag('rev_to', changeset.revision, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) ></td>
19: <td class="committed_on"><
= format_time(changeset.committed_on) ></td>
20: <td class="author"><
=h changeset.author ></td>
21: <td class="comments"><
= textilizable(truncate_at_line_break(changeset.comments)) ></td>
22: </tr>
23: <
line_num += 1 >
24: <
end %>

lib/redcloth3.rb:1041:in `glyphs_textile'

lib/redcloth3.rb:1031:in `gsub!'

lib/redcloth3.rb:1031:in `glyphs_textile'

Done so far:
- Checked permissions on git directories and the rails server
- Users can be retrieved from git
- Revisions can be shown if clicked on revision number
- Git pushes are shownin Aktivity log
- Redmine version 0.9.4

  • LOCAL GEMS ***
    actionmailer (2.3.5)
    actionpack (2.3.5)
    activerecord (2.3.5)
    activeresource (2.3.5)
    activesupport (2.3.5)
    cgi_multipart_eof_fix (2.5.0)
    ffi (0.6.3 x86-mswin32)
    fxri (0.3.6)
    fxruby (1.6.16 x86-mswin32-60)
    gem_plugin (0.2.3)
    hpricot (0.6.164 mswin32)
    log4r (1.0.5)
    mongrel (1.1.5 x86-mswin32-60)
    mongrel_service (0.3.4 i386-mswin32)
    ptools (1.1.6)
    rack (1.0.1)
    rails (2.3.5)
    rake (0.8.7, 0.8.1)
    ruby-opengl (0.60.0 i386-mswin32)
    rubygems-update (1.3.7)
    sqlite3-ruby (1.2.5 x86-mswin32, 1.2.3 mswin32)
    test-unit (2.0.1)
    win32-api (1.2.1 x86-mswin32-60, 1.2.0 x86-mswin32-60)
    win32-clipboard (0.4.4)
    win32-dir (0.3.2)
    win32-eventlog (0.5.0)
    win32-file (0.5.5)
    win32-file-stat (1.3.1)
    win32-process (0.5.9)
    win32-sapi (0.1.4)
    win32-service (0.5.2 mswin32)
    win32-sound (0.4.1)
    windows-api (0.2.4)
    windows-pr (0.9.3)

==================================================================================
All the rest seems quite stable.

Can someone please point me into the right direction. Thanks!


Replies (5)

RE: Internal Server Error when trying to brows git repository - Added by Felix Schäfer almost 14 years ago

1. Any plugins installed?
2. Try deleting and reimporting the repository in you redmine project.

RE: Internal Server Error when trying to brows git repository - Added by Phil Hauber almost 14 years ago

Thanks for the ultrafast reply!

1. No Plugins. Which Plugins could cause such problems?
2. Done that several times.

RE: Internal Server Error when trying to brows git repository - Added by Felix Schäfer almost 14 years ago

Practically any plugin, as they can monkey-patch whatever they want :-)

Ok, so it seems you have something fishy in a comment of the repository that textile borks on. How sensible are the commit logs? Could you post the 30-odd last commits, or even better the 30 last lines pertaining to that project of the changesets table?

RE: Internal Server Error when trying to brows git repository - Added by Phil Hauber almost 14 years ago

Hey thanks!

That one did it! I had to switch the encoding of the 'Commit messages encoding'. Thought entering the right encoding into 'Repositories encodings' would be sufficient, but you never stop learning...

If I thought twice about this in the beginning this would have saved me a lot of trouble.

Thanks Felix!

RE: Internal Server Error when trying to brows git repository - Added by Felix Schäfer almost 14 years ago

Well there you go :-) Glad I could help.

    (1-5/5)