Comments (8)
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.
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.
I'm actually no longer experiencing this behavior, but can't remember what caused it to start working.
from ruby_rbenv.
I just experienced this with 2.0.0-p247. I logged in and top showed "ruby" as the resource hog.
from ruby_rbenv.
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.
I am seeing this presently with 2.0.0.
from ruby_rbenv.
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.
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)
- rbenv_script not working HOT 7
- Allow users to change the Git URL for ruby-build plugin HOT 1
- rbenv_gem resource is not compatible with Chef 13 HOT 10
- chef-client run fails to update rbenv due to failing git command HOT 15
- Add CircleCI badge to README HOT 1
- change group for user_install HOT 5
- Need to override options to remove `--no-rdoc` and `--no-ri` for newer versions of bundler HOT 2
- It should be possible to use the rbenv_script resource as a non-root user, with a system-wide installation HOT 5
- Debian 10 package dependencies outdated ? HOT 2
- Dangerfile should use failure instead of fail HOT 1
- Remove .rubocop.yml with Dangerfile
- Update Changelog HOT 1
- Run latest cookstyle
- Update builds to be parallel HOT 2
- https://github.com/sous-chefs/ruby_rbenv/pull/255 not merged properly ? HOT 3
- node.run_state['root_path'] conflicts with pyenv cookbook HOT 4
- Cannot force update branch error is back HOT 6
- ruby_rbenv Chef 17 compatibility
- Use resource partials
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby_rbenv.