Giter VIP home page Giter VIP logo

Comments (12)

sfgeorge avatar sfgeorge commented on August 16, 2024 1

That's very helpful that this workaround is documented for people who hit this issue.

But I'm wary to build that in though for a few reasons, mainly because we will be blindly saying 'yes' to any other anticipating prompts that come up, from RVM, Ruby or otherwise.

Moreover, A fresh install of RVM & a Ruby should not trigger RVM to be prompting this. This is either a bug in RVM (which I am unsuccessful at reproducing) or the result of an environmental factor on the machine in question.

@ruudgrosmann So I can try again to reproduce this, would you be kind enough to provide this info?

  • Version of rvm/rvm1-ansible
  • The name of the Ansible Playbook "TASK" that was running when this errored.
  • A tarball or zip file of /home/deploy/.rvm.
  • The .rvmrc file(s) if they exist:
    • /etc/rvmrc
    • /home/deploy/.rvmrc
  • Operating System and version
  • Some of your ansible playbook details, including:
    • Tasks that relate to rvm1-ansible usage
    • All variables in variable .yml files that relate to rvm1-ansible usage

from rvm1-ansible.

pkuczynski avatar pkuczynski commented on August 16, 2024

@thbar @sfgeorge what do you think about this one?

from rvm1-ansible.

thbar avatar thbar commented on August 16, 2024

@pkuczynski it is the type of temporary issues for which I usually create a fork myself, report the problem back upstream, until the upstream problem is fixed.

Completely agree with the points raised by @sfgeorge, and we can investigate though!

from rvm1-ansible.

pkuczynski avatar pkuczynski commented on August 16, 2024

Let's wait if @ruudgrosmann will come up with reproducible case, otherwise we will close...

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 16, 2024

In the meantime I have upgraded my OS and as well ansible. I have tried reproducing this issue successfully though. On the install server, I removed ruby and tried reinstalling it. After the cpu load dropped, I could see from the output of rvm (on the install server) that the ruby was installed, but on the host ansible was still busy doing nothing.

The information you asked for:

  • Version of rvm/rvm1-ansible
    • rvm 1.29.3 (master)
    • from ~/.ansible/roles/rvm.ruby/CHANGELOG.md: the first version comment was 2.1.2. Not sure if this is the proper way to determine the version though....
  • The name of the Ansible Playbook "TASK" that was running when this errored.
    • TASK [rvm.ruby : Install rubies_v1]
  • A tarball or zip file of /home/deploy/.rvm.
    • I will create one and attach it.
  • The .rvmrc file(s) if they exist:
    • no rvmrc found, not for the ansible-user, nor for the deployuser
  • Operating System and version
    • ansible host and install server: Debian GNU/Linux 11 (bullseye)
  • Some of your ansible playbook details, including:
    • Tasks that relate to rvm1-ansible usage
    • All variables in variable .yml files that relate to rvm1-ansible usage
      I think the playbook itself is sufficient
hosts:            bullseye
  remote_user:      deploy
  vars:
    - rubyversie:           "2.4.2"
  roles:
    - role: rvm.ruby
      become: yes
      become_user: deploy
      tags: ruby
      rvm1_rubies: ["{{rubyversie}}", "{{jrubyversie}}"]
      rvm1_gpg_key_server: "keyserver.ubuntu.com"
      rvm1_install_flags: '--auto-dotfiles --user-install'
      rvm1_install_path: /data/rvm
      rvm1_user: deploy
      rvm1_rvm_check_for_updates: False

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 16, 2024

the rvm.ruby install: tarfile created, but I cannot attach it here. I have no graphical file manager to drag and drop or copy it to the clip board. Can I upload it somewhere?

from rvm1-ansible.

pkuczynski avatar pkuczynski commented on August 16, 2024

Maybe use https://wetransfer.com?

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 16, 2024

https://wetransfer.com/downloads/1054df4ce35b3715c4fed78c1b927c2420220329094400/41515ade36c22ae2982698c1da69455620220329094430/7140b0

from rvm1-ansible.

sfgeorge avatar sfgeorge commented on August 16, 2024

Thank you, @ruudgrosmann! Investigating.

from rvm1-ansible.

sfgeorge avatar sfgeorge commented on August 16, 2024

@ruudgrosmann, I haven't yet been able to successfully reproduce this. Could I trouble you for some additional context?

  • The value of {{jrubyversie}}
  • From the install server, can you share a tarball or zip of ls -lah /data | head -n 2? Looking just for the permissions on the /data directory.
  • From the install server, can you share a tarball or zip of /data/rvm?
  • Can you share the recent final text output from the ansible host at the point that it stalled? Did it include the exact same "Do you wish to trust '/home/deploy/.rvm/hooks/after_install_auto_gem'?" message as before?
  • When you ssh to the install server and run rvm list, do you get the same Do you wish to trust . . . confirmation prompt?

If you're curious, here's the branch where I'm attempting to replicate your setup as close as possible. And here are the test results, which are currently successful.

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 16, 2024

The output from the ansible install on the installation server is the same as in the question: the do-you-wish-to-trust message
The value of the jrubybversion is not that relevant for the problem, because the problem occurs before the playbook tries to install jruby, but its value is jruby-9.2.14.0
The /data directory has owner root, group ruud and file mode 775. So user deploy is not allowed to write in it.
If I log in on the install server as deploy, rvm list does not come with the confirmation request, but lists the rubies without problem.

The tarfile of /data/rvm on the installation server:
https://wetransfer.com/downloads/33087c8b9958189f0499d89820ed4a3820220330080110/56682745348102f1f3a18a88d4533fb220220330080127/2a1921

from rvm1-ansible.

ruudgrosmann avatar ruudgrosmann commented on August 16, 2024

By reading the rvm script rvmrc_trust I found another workaround for this problem, which does not include hacking the rvm.ruby role code. That would be to add a line to the deploy user's .rvmrc
rvm_trust_rvmrcs_flag=1
in a seperate role prior to running the rmv.ruby role. Not perfect either, but visible in the playbook.

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.