Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Grit::GitRuby::Internal::PackFormatError (has discontinuous index 1) #16

Open
mjaros opened this issue Mar 17, 2013 · 4 comments
Open

Comments

@mjaros
Copy link

mjaros commented Mar 17, 2013

I recently started getting this error:

Started GET "/vesseltracker/vtr_weather" for 127.0.0.1 at 2013-03-17 13:53:09 +0100
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"vesseltracker/vtr_weather"}
Completed 500 Internal Server Error in 26ms
Grit::GitRuby::Internal::PackFormatError (pack /home/git/repositories/vesseltracker/vtr_weather.git/objects/pack/pack-0f0743045e023e6d59ef55b70fca377494498cca.pack has discontinuous index 1):
app/models/commit.rb:22:in `find_or_first'
app/models/repository.rb:38:in `commit'
app/models/repository.rb:101:in `has_commits?'
app/models/repository.rb:107:in `empty?'
app/controllers/projects_controller.rb:60:in `block (2 levels) in show'
app/controllers/projects_controller.rb:58:in `show'

On the upstream they are having the same issue but it seems like someone solved it: mojombo#117

@zealot128
Copy link

same here, using Ruby 2.0.0-p0

@mjaros
Copy link
Author

mjaros commented Mar 22, 2013

I have fixed this for now by using Ruby 1.9.3. It looks like the problem is that Ruby 2.0.0 handles everything as utf-8 by default.

@falk
Copy link

falk commented Mar 22, 2013

Also happens with 1.9.3. Fixed it by changing the grit gem to gem 'grit', :git => 'git://github.com/styx/grit.git' in Gemfile in gitlab.

@sameera207
Copy link

I had the same issue with ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]

and seems like its a grit gem issue with ruby 2.0, but above, @falk s solution worked for me (#16 (comment))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants