I have a similar error to Redmine passenger error. I'm trying to get GitLab working with Apache and Passenger with no luck. I'm stuck on this error:
cannot load such file -- bundler/setup (LoadError) /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:96:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:150:in `' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `'
Following Andriy's suggestion I've tried to install bundler gem with: `
sudo gem install bundler
after installation I've restarted apache2 service but the error remains the same.
VirtualHost is defined with:
<VirtualHost *:80>
ServerName localhost
# Point this to your public folder of gitlab
DocumentRoot /home/git/gitlab/public
<Directory /home/git/gitlab/public>
Allow from all
Options -MultiViews
</Directory>
PassengerRuby /usr/bin/ruby
# Custom log file locations
ErrorLog /var/log/apache2/gitlab_error.log
CustomLog /var/log/apache2/gitlab_access.log combined
</VirtualHost>
<Location /users/auth/shibboleth/callback>
AuthType shibboleth
ShibRequestSetting requireSession 1
require valid-user
</Location>
<Location /Shibboleth.sso>
SetHandler shib
</Location>
Can someone shed some light on this issue?