GithubHelp home page GithubHelp logo

Comments (8)

rymohr avatar rymohr commented on July 28, 2024

If I kill the process and run chef solo again it blows right through the place that it hung in the first try. Logging in I can verify the install worked just fine:

% rbenv versions
* 1.9.2-p290 (set by /usr/local/rbenv/version)

Not sure if it makes a difference but I'm invoking chef-solo remotely via:
ssh user@host "sudo chef-solo ..."

from ruby_rbenv.

vickrum avatar vickrum commented on July 28, 2024

Same problem here with 1.9.3-p0. Installation hung (hanged?), but when deploying a second time everything went fine. This is when using rbenv's system_install recipe alongside ruby_build.

...
[Mon, 20 Aug 2012 11:19:24 +0000] INFO: Building rbenv_ruby[1.9.3-p0] (system), this could take a while...
[Mon, 20 Aug 2012 11:19:24 +0000] INFO: Processing rbenv_script[rbenv install 1.9.3-p0 (system)] action run (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 59)
[Mon, 20 Aug 2012 11:19:24 +0000] INFO: Processing package[build-essential] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[bison] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[openssl] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libreadline6] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libreadline6-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[zlib1g] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[zlib1g-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libssl-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libyaml-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libsqlite3-0] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libsqlite3-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[sqlite3] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libxml2-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libxslt1-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[autoconf] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[libc6-dev] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:25 +0000] INFO: Processing package[ssl-cert] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:26 +0000] INFO: Processing package[subversion] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 97)
[Mon, 20 Aug 2012 11:19:26 +0000] INFO: Processing rbenv_script[rbenv install 1.9.3-p0 (system)] action nothing (/var/chef/cache/cookbooks/rbenv/providers/ruby.rb line 59)
[Mon, 20 Aug 2012 11:19:26 +0000] INFO: Processing script[rbenv install 1.9.3-p0 (system)] action run (/var/chef/cache/cookbooks/rbenv/providers/script.rb line 28)

from ruby_rbenv.

rymohr avatar rymohr commented on July 28, 2024

I'm actually no longer experiencing this behavior, but can't remember what caused it to start working.

from ruby_rbenv.

benatkin avatar benatkin commented on July 28, 2024

I just experienced this with 2.0.0-p247. I logged in and top showed "ruby" as the resource hog.

from ruby_rbenv.

hlascelles avatar hlascelles commented on July 28, 2024

We're seeing this too. It appears the install worked fine, but chef hangs waiting for a response. rbenv and ruby are ready to go on the box. Seen with both ruby 1.9.3 and 2.0.0.

from ruby_rbenv.

bonfireduffy avatar bonfireduffy commented on July 28, 2024

I am seeing this presently with 2.0.0.

from ruby_rbenv.

hlascelles avatar hlascelles commented on July 28, 2024

We resolved this by ensuring that the server continued to poll the client (not the other way around). This can be done two ways. One hacky way is just to have a thread that sends a Chef warn log line every 10 seconds thus:

Thread.new do
  loop do
    Chef::Log.warn('Keeping the ssh session alive from the server side...')
    sleep 10
  end
end

The better was is to add a ClientAliveInterval to the server /etc/ssh/sshd_config.

from ruby_rbenv.

lock avatar lock commented on July 28, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from ruby_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.