Cannot edit files from web interface or push on development with RVM, rbenv
If I try to edit, create or remove on the web interface, nothing happens (after the following bugfix, it should show Your changes could not be committed, because the file has been changed https://github.com/gitlabhq/gitlabhq/pull/7856/files)
Those errors only happen when using RVM: if I install Ruby globally HTTP push and web edit work fine. On Ubuntu 14.04 the following Ruby install is working:
sudo add-apt-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo aptitude install -y ruby2.1 ruby2.1-dev
but as mentioned by Jacob, this may not be very secure.
remote: /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find json-1.8.1 in any of the sources (Bundler::GemNotFound)
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/spec_set.rb:85:in `map!'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/spec_set.rb:85:in `materialize'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/definition.rb:132:in `specs'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/definition.rb:177:in `specs_for'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/definition.rb:166:in `requested_specs'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/environment.rb:18:in `requested_specs'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/runtime.rb:13:in `setup'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler.rb:121:in `setup'
remote: from /home/ciro/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/setup.rb:17:in `<top (required)>'
remote: from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
remote: from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
To http://localhost:3000/h5bp/html5-boilerplate.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://localhost:3000/h5bp/html5-boilerplate.git'
I if try to push over SSH:
fatal: 'h5bp/html5-boilerplate.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Everything else appears to be working normally, including tests that do editing on the web interface like: https://github.com/gitlabhq/gitlabhq/pull/7862
Related:
-
similar problem without RVM, 2 ruby versions: https://github.com/gitlabhq/gitlabhq/issues/8045 If I push on HTTP I get:
-
rbenv failing on the CI for the same reason on tests that modify a forked repo: https://semaphoreapp.com/gitlabhq/gitlabhq/branches/pull-request-8051/builds/15. Search for "push error: ex.message". Caused failures on: https://github.com/gitlabhq/gitlabhq/pull/8051 and https://github.com/gitlabhq/gitlabhq/commit/71fce0b2