Cannot transfer project namespace - not using ruby executable specified by passenger
Created by: maxmumford
I have a server with apache2 serving a rails website using rvm, and gitlab using the system installed ruby thanks to the following apache2 config file entry:
PassengerRuby /usr/bin/ruby
Everything seems to work fine until I try to transfer a project to another namespace, at which point I get the following error in the apache error log:
[ 2014-04-30 13:06:54.9986 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize'
[ 2014-04-30 13:06:54.9987 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] :
[ 2014-04-30 13:06:54.9987 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] Could not find rake-10.1.0 in any of the sources
[ 2014-04-30 13:06:54.9987 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] (
[ 2014-04-30 13:06:54.9987 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] Bundler::GemNotFound
[ 2014-04-30 13:06:54.9988 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] )
[ 2014-04-30 13:06:54.9988 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
[ 2014-04-30 13:06:54.9988 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
[ 2014-04-30 13:06:54.9988 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
[ 2014-04-30 13:06:54.9989 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
[ 2014-04-30 13:06:54.9989 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
[ 2014-04-30 13:06:54.9989 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
[ 2014-04-30 13:06:54.9990 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
[ 2014-04-30 13:06:54.9990 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
[ 2014-04-30 13:06:54.9991 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
[ 2014-04-30 13:06:54.9991 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
[ 2014-04-30 13:06:54.9991 13326/7f8e3c2be700 Pool2/Implementation.cpp:1274 ]: [App 16918 stderr] from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
It seems as though normally gitlab runs using the ruby exec specified in the apache config (/usr/bin/ruby), however for some actions (at least changing a project namespace) it reverts back to the default RVM ruby installation, and therefore encounters problems.
Here is some more installation information that might be useful:
git@localhost:/home/git$ which ruby
/usr/bin/ruby
git@localhost:/home/git$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
$ gems list
actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13)
activerecord (3.2.13)
activeresource (3.2.13)
activesupport (3.2.13)
acts-as-taggable-on (2.4.1)
arel (3.0.2)
asciidoctor (0.1.3)
backports (3.3.2)
bcrypt-ruby (3.1.1)
bootstrap-sass (2.3.2.0)
builder (3.0.4)
bundler (1.6.2, 1.3.5)
carrierwave (0.8.0)
celluloid (0.14.1)
charlock_holmes (0.6.9.4)
chosen-rails (1.0.0)
chunky_png (1.2.8)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2)
colored (1.2)
compass (0.12.2)
compass-rails (1.0.3)
connection_pool (1.1.0)
d3_rails (3.1.10)
daemon_controller (1.1.5)
descendants_tracker (0.0.1)
devise (2.2.5)
diff-lcs (1.2.4)
dotenv (0.8.0)
enumerize (0.6.1)
erubis (2.7.0)
escape_utils (0.2.4)
eventmachine (1.0.3)
execjs (1.4.0)
faraday (0.8.7)
faraday_middleware (0.9.0)
font-awesome-rails (3.2.1.2)
foreman (0.63.0)
fssm (0.2.10)
gemoji (1.2.1)
github-linguist (2.3.4)
github-markdown (0.5.3)
github-markup (0.7.5)
gitlab-gollum-lib (1.0.1)
gitlab-grack (1.0.1)
gitlab-grit (2.6.0)
gitlab-pygments.rb (0.3.2)
gitlab_git (2.3.1)
gitlab_meta (6.0)
gitlab_omniauth-ldap (1.0.3)
gon (4.1.1)
grape (0.4.1)
grape-entity (0.3.0)
haml (4.0.3)
haml-rails (0.4)
hashie (1.2.0)
hike (1.2.3)
hipchat (0.9.0)
http_parser.rb (0.5.3)
httparty (0.11.0)
httpauth (0.2.0)
i18n (0.6.1)
journey (1.0.4)
jquery-atwho-rails (0.3.0)
jquery-rails (2.1.3)
jquery-turbolinks (1.0.0)
jquery-ui-rails (2.0.2)
json (1.7.7)
jwt (0.1.8)
kaminari (0.14.1)
kgio (2.8.0)
libv8 (3.11.8.17 x86_64-linux)
mail (2.5.4)
mime-types (1.25)
modernizr (2.6.2)
modernizr-rails (2.7.1)
multi_json (1.9.2, 1.7.9)
multi_xml (0.5.4)
multipart-post (1.2.0)
mysql2 (0.3.11)
net-ldap (0.3.1)
nokogiri (1.5.10)
oauth (0.4.7)
oauth2 (0.8.1)
omniauth (1.1.4)
omniauth-github (1.1.0)
omniauth-google-oauth2 (0.1.19)
omniauth-oauth (1.0.1)
omniauth-oauth2 (1.1.1)
omniauth-twitter (0.0.17)
orm_adapter (0.4.0)
passenger (4.0.14)
polyglot (0.3.3)
posix-spawn (0.3.6)
pygments.rb (0.4.2)
pyu-ruby-sasl (0.0.3.3)
rack (1.5.2, 1.4.5)
rack-accept (0.4.5)
rack-cache (1.2)
rack-mount (0.8.3)
rack-protection (1.5.0)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13)
railties (3.2.13)
raindrops (0.11.0)
rake (10.3.1, 10.1.0)
raphael-rails (2.1.2)
rdoc (3.12.2)
redcarpet (2.2.2)
redis (3.0.4)
redis-actionpack (3.2.4)
redis-activesupport (3.2.4)
redis-namespace (1.3.1)
redis-rack (1.4.4)
redis-rails (3.2.4)
redis-store (1.1.4)
ref (1.0.5)
rubyntlm (0.1.1)
sanitize (2.0.3)
sass (3.2.9)
sass-rails (3.2.6)
seed-fu (2.2.0)
select2-rails (3.4.2)
settingslogic (2.0.9)
sidekiq (2.14.0)
simple_oauth (0.1.9)
sinatra (1.4.3)
six (0.2.0)
slim (2.0.0)
sprockets (2.12.1, 2.2.2)
stamp (0.5.0)
state_machine (1.2.0)
stringex (1.5.1)
temple (0.6.5)
therubyracer (0.11.4)
thor (0.18.1)
tilt (1.4.1)
timers (1.1.0)
tinder (1.9.2)
treetop (1.4.14)
turbolinks (1.2.0)
twitter-stream (0.1.16)
tzinfo (0.3.37)
uglifier (2.1.1)
underscore-rails (1.4.4)
unicorn (4.6.3)
virtus (0.5.5)
warden (1.2.3)
yajl-ruby (1.1.0)
git@localhost:~/gitlab$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Ubuntu 13.04
Current User: git
Using RVM: no
Ruby Version: 1.9.3p194
Gem Version: 1.8.23
Bundler Version:1.6.2
Rake Version: 10.1.0
GitLab information
Version: 6.1.0
Revision: a129bce
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://host.co.uk/gitlab
HTTP Clone URL: http://host.co.uk/gitlab/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.7.1
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
Can anybody shed some light on to how to get past this issue?