Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I trying to setup web server for publish git repositories on successfully installed and worked redmine server.

Passenger occurs error: Web application could not be started

uninitialized constant GitHttp (NameError) block in <main>' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:ininstance_eval' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in initialize'' <main>' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:ineval' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in preload_app' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in <module:PhusionPassenger>' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in'


share|improve this question
I Ask developer. See – Vladimir Skubriev Oct 2 '13 at 14:23
up vote 0 down vote accepted

GitHttp is a class in released versions of grack (last is 0.2) which does not exist anymore in project's git master branch.

I suspect you updated your grack code to master HEAD without updating Your for master should be like this, with project path replaced :

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib')

use Rack::ShowExceptions

require 'grack'
require 'git_adapter'

config = {
  :project_root => "/path/to/your/repos/",
  :adapter => Grack::GitAdapter,
  :git_path => '/usr/bin/git',
  :upload_pack => true,
  :receive_pack => true,

share|improve this answer
Thank you very much. This is solved my problem. I use old article from redmine wiki. And error stops me. – Vladimir Skubriev Oct 2 '13 at 14:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.