GithubHelp home page GithubHelp logo

install rvm installer fails about rvm1-ansible HOT 7 CLOSED

rvm avatar rvm commented on August 17, 2024
install rvm installer fails

from rvm1-ansible.

Comments (7)

ruudgrosmann avatar ruudgrosmann commented on August 17, 2024

the strange thing is that I get the error using this playbook fragment:

- role: rvm_io.rvm1-ruby
  when: installeer_ruby
  sudo: true
  rvm1_user: '{{rvmuser}}'
  rvm1_rvm_version: 'stable'
  rvm1_rvm_check_for_updates: false
  rvm1_gpg_keys: ''
  rvm1_rubies:
    - 'ruby-1.9.3-p551'
  rvm1_install_flags: '--auto-dotfiles --user-install'
  rvm1_install_path: '/home/{{rvmuser}}/.rvm'
  environment:
     http_proxy:     http://172.4.7.16:8080
     https_proxy:    https://172.4.2.7.16:80

After the failure I log in as the specified user and can do a manual install without problem using
curl -sSL https://get.rvm.io | bash -s stable
Which I assume is the underlying action of the install task.
Nevertheless the playbook gives me that error. When I rerun the playbook after the manual install, the task is not skipped, but tried again, leading to the same message

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 17, 2024

I saw in your playbook that the task 'install rvm installer' actually does this:
curl -sSL https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer> /tmp//rvm-installer.sh
I did that manually and the step was skipped indeed. Thereafter, it hangs at
TASK: [rvm_io.rvm1-ruby | Install bundler if not installed] *******************
and eventually reports:
stderr: ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) (https://api.rubygems.org/specs.4.8.gz)

It appears that that can only be fixed manually by setting the http-proxy in the shell. OR by inserting the environment var htttps_prody in your task (like in my 2nd post, but that obviously does noting)
Is there another way to easily use a proxy with this rvm1-ansible role?

And I still have to tackle the certificate problem properly.

from rvm1-ansible.

nickjj avatar nickjj commented on August 17, 2024

Setting up a proxy seems a bit out of scope for this role, check out this related issue #6.

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 17, 2024

I already did what was suggested there, namely supplying a .curlrc.
But this only works for the curl commands. And not for the rvm commands. If I only know how I can feed the shell with the necessary environment variables, I would be greatly helped. Don't you have an advice on this? I don;t want to tamper with the rvm1-ansible code. When I add them to your code, it works all right, but this not a solution. Isn't there a config file or so that the shell loads when the role commands are run?

from rvm1-ansible.

nickjj avatar nickjj commented on August 17, 2024

Unfortunately I'm not an expert with rvm. This role just helps you get rvm installed via ansible. @mpapis, any ideas?

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 17, 2024

mpapis en nick, although I feel really shamed, I want to report that the problem is gone after deleting the user (with its rvm install and config files) and running the same (previously failing) playbook again.
I want to thank you for your time spent on this.

from rvm1-ansible.

nickjj avatar nickjj commented on August 17, 2024

No problem, glad you got it working.

from rvm1-ansible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.