Giter VIP home page Giter VIP logo

Comments (8)

zzet avatar zzet commented on September 28, 2024

@mtchavez did not expect that there may be problems with timeout for this role. Which task are failed for you?

from rbenv.

mtchavez avatar mtchavez commented on September 28, 2024

Yeah it is a little odd because I can see the task finish on the server but it never moves on within ansible to the next task.

This install task is the one that hangs for me.

from rbenv.

zzet avatar zzet commented on September 28, 2024

So, I have some question %)
Have you already tried to install an asynchronous mode for this task? This solves your problem? You set the timeout for ssh connections?
Think like this: Play at the situation for verification. I see nothing wrong in an asynchronous installation options for this task.

from rbenv.

mtchavez avatar mtchavez commented on September 28, 2024

I wanted to get feedback on the thought of async before jumping into making changes. I can make the task async to see if it does indeed solve the issue. I will update this issue when I have tried that and have more info.

from rbenv.

zzet avatar zzet commented on September 28, 2024

I admit that this is possible for several reasons: connection timeout + low bandwidth + low power nodes. With regard to the last criterion - on the weak virtual machine this problem never arose....

With regard to the task of ruby installation - it is not determined by time and predict its normal time for different installations, I can not. Therefore, if an asynchronous installation mode will solve the problem - this is ok.

from rbenv.

mtchavez avatar mtchavez commented on September 28, 2024

Alright so my issue may be something else. Using async and polling allowed it to at least finish but the task ultimately fails. I unsure as to why though. I can watch the processes on the server installing ruby and when finished I can verify it is installed. Even though it installs the task fails.

My issue aside, I think it is still a good idea to use async and polling with some sane defaults to allow ruby to install.

from rbenv.

basti avatar basti commented on September 28, 2024

FYI I had a similar issue where install Ruby tasks was timing out (it completes on server, but Ansible never continues with the play) the solution I used was to increase Ansible's SSH timeout setting (http://docs.ansible.com/intro_configuration.html#timeout) to more than default 10 minutes.

from rbenv.

mtchavez avatar mtchavez commented on September 28, 2024

Closing, using a timeout setting fixes this.

from rbenv.

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.