Open jacobh0 opened 10 years ago
I've temporarily made it work by removing the dependency on ruby_compile_prerequisites all together, I am manually installing all the packages it requests in my shell provisioner:
#!/bin/bash
echo "Updating apt..."
/usr/bin/apt-get update
/usr/bin/apt-get install -y build-essential unzip vim git-core curl bison openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev libcurl4-openssl-dev libopenssl-ruby apache2-prefork-dev libapr1-dev libaprutil1-dev libx11-dev libffi-dev tcl-dev tk-dev
echo "Removing old puppet..."
/opt/vagrant_ruby/bin/gem uninstall puppet
echo "Installing newer puppet..."
/opt/vagrant_ruby/bin/gem install puppet --no-ri --no-rdoc -v '3.2.1'
However this isn't ideal...
This may actually be a problem with puppi, as that function call seems to be the one that simply times out
Any idea here? I would like to share my puppet provisioner but not being able to install ruby is a blocker as this isn't working as intended.
Can you check if the above commit solves the timeout problem?
It does not:
prerequisites]: Failed to call refresh: Command exceeded timeout
Error: /Stage[before-main]/Ruby::Compile/Puppi::Install_packages[ruby_compile_prerequisites]/Exec[install_packages_ruby_compile_prerequisites]: Command exceeded timeout
Can you try with a much higher value as timeout and verify it actually something happens on the system during this time?
Few things:
Ooops, just committed a patch to the puppi module to honour the timeout options, can you try to update it?
Looks to be fixed.
When I initially used this module, it worked fine. However it has since failed ever since (and I have no idea why). It seems the install process has some kind of race condition or some other non-deterministic failure going on.
My manifest:
My shell provisioner (ran before my puppet provisioner):
I am using the precise64 box: http://files.vagrantup.com/precise64.box
Some debug output:
It seems the ruby_compile_prerequisites simply times out. I have been able to get this to install Ruby 2.0 about twice out of all my attempts. I've stripped my manifest down to nothing to try and figure out if there was some kind of conflict. I have no idea what's going on.