Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash /tmp/rvm returned 1 instead of one of [0] #7

Open
czerasz opened this issue May 5, 2012 · 6 comments
Open

bash /tmp/rvm returned 1 instead of one of [0] #7

czerasz opened this issue May 5, 2012 · 6 comments

Comments

@czerasz
Copy link

czerasz commented May 5, 2012

While creating my devbox (https://github.com/czerasz/devbox) I noticed some strange error message.
I'm new to vagrant and puppet so I'm not sure if it depends on my configuration or the rvm module, but I decided to post it here.

Below the error message from the console:

err: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: change from notrun to 0 failed: bash /tmp/rvm returned 1 instead of one of [0] at /tmp/vagrant-puppet/modules-0/rvm/manifests/packages/common.pp:15

notice: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Skipping because of failed dependencies

debug: Class[Rvm::Packages::Common]: The container Stage[main] will propagate my refresh event

notice: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Skipping because of failed dependencies

info: Rvm::Define::Gem[bundler]: Scheduling refresh of Exec[rvm-gem-install-bundler-ruby-1.9.3]

notice: /Stage[main]/Rvm/Anchor[rvm::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm/Anchor[rvm::end]: Skipping because of failed dependencies

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Skipping because of failed dependencies
@jfryman
Copy link
Owner

jfryman commented May 7, 2012

Can you tell me what OS you're deploying this on? Also, if you could please add the following line to the 'exec' block on line 15 in manifests/packages/common.pp

logoutput => true,

I'll be happy to take a look. Thanks!

-James

James Fryman
ph +1.615.669.2048 | twitter jfryman | gtalk: [email protected]

On May 5, 2012, at 5:25 PM, Michał Czeraszkiewicz wrote:

I while creating my devbox (https://github.com/czerasz/devbox) I noticed some strange error message.
I'm new to vagrant and puppet so I'm not sure if it depends on my configuration or the rvm module, but I decided to post it here.

Below the error message from the console:

err: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: change from notrun to 0 failed: bash /tmp/rvm returned 1 instead of one of [0] at /tmp/vagrant-puppet/modules-0/rvm/manifests/packages/common.pp:15

notice: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Skipping because of failed dependencies

debug: Class[Rvm::Packages::Common]: The container Stage[main] will propagate my refresh event

notice: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Skipping because of failed dependencies

info: Rvm::Define::Gem[bundler]: Scheduling refresh of Exec[rvm-gem-install-bundler-ruby-1.9.3]

notice: /Stage[main]/Rvm/Anchor[rvm::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm/Anchor[rvm::end]: Skipping because of failed dependencies

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Skipping because of failed dependencies

Reply to this email directly or view it on GitHub:
#7

@czerasz
Copy link
Author

czerasz commented May 7, 2012

System info:
Linux mashine-name 3.0.0-19-generic #33-Ubuntu SMP Thu Apr 19 19:05:14 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Debug info:

debug: /Stage[main]/Boxes::Base::After::System::Update/Package[git-core]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event
info: Rvm::Define::User[vagrant]: Scheduling refresh of Exec[/usr/sbin/usermod -a -G rvm vagrant]

debug: Class[Apache]: The container Stage[main] will propagate my refresh event

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n tree'

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install tree'
notice: /Stage[main]/Boxes::Base::After::System::Update/Package[tree]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Boxes::Base::After::System::Update/Package[tree]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n gawk'

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install gawk'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[gawk]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[gawk]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n build-essential'
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install build-essential'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[build-essential]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[build-essential]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n libreadline-dev'
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libreadline-dev'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[libreadline-dev]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[libreadline-dev]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Class[Rvm::Packages::Ubuntu]: The container Stage[main] will propagate my refresh event

debug: Exec[download-rvm-install](provider=posix): Executing check 'which rvm'

debug: Executing 'which rvm'

debug: Exec[download-rvm-install](provider=posix): Executing 'wget -O /tmp/rvm https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'

debug: Executing 'wget -O /tmp/rvm https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'

notice: /Stage[main]/Rvm::Packages::Common/Exec[download-rvm-install]/returns: executed successfully

debug: /Stage[main]/Rvm::Packages::Common/Exec[download-rvm-install]: The container Class[Rvm::Packages::Common] will propagate my refresh event

debug: Exec[install-rvm](provider=posix): Executing 'bash /tmp/rvm'

debug: Executing 'bash /tmp/rvm'

err: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: change from notrun to 0 failed: Command exceeded timeout at /tmp/vagrant-puppet/modules-0/rvm/manifests/packages/common.pp:16

notice: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Skipping because of failed dependencies

debug: Class[Rvm::Packages::Common]: The container Stage[main] will propagate my refresh event

notice: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Skipping because of failed dependencies

info: Rvm::Define::Gem[bundler]: Scheduling refresh of Exec[rvm-gem-install-bundler-ruby-1.9.3]

notice: /Stage[main]/Rvm/Anchor[rvm::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm/Anchor[rvm::end]: Skipping because of failed dependencies

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Skipping because of failed dependencies

err: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Failed to call refresh: Could not find command 'rvm'

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Skipping because of failed dependencies

err: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Failed to call refresh: Could not find command 'rvm'

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Skipping because of failed dependencies

debug: Exec[/usr/sbin/usermod -a -G rvm vagrant](provider=posix): Executing check 'cat /etc/group | grep  | grep '

debug: Executing 'cat /etc/group | grep  | grep '

debug: Exec[/usr/sbin/usermod -a -G rvm vagrant](provider=posix): Executing '/usr/sbin/usermod -a -G rvm vagrant'
debug: Executing '/usr/sbin/usermod -a -G rvm vagrant'
err: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Failed to call refresh: /usr/sbin/usermod -a -G rvm vagrant returned 6 instead of one of [0] at /tmp/vagrant-puppet/modules-0/rvm/manifests/define/user.pp:6
debug: Class[Boxes::Base::After::System::Update]: The container Stage[main] will propagate my refresh event

@jfryman
Copy link
Owner

jfryman commented May 7, 2012

Interesting. The error you received: "Command exceeded timeout" usually means that the command has taken longer than 30 seconds or so. I've not seen this happen, but can happen when the connection to download RVM from upstream is slow.

As a quick fix, try adding this line to the same exec block (line 15, manifests/packages/common.pp) and let me know if it works. If it does, then I'll submit an update upstream.

timeout => '0',

Thanks!

-James

James Fryman
ph +1.615.669.2048 | twitter jfryman | gtalk: [email protected]

On May 7, 2012, at 3:38 PM, Michał Czeraszkiewicz wrote:

System info:
Linux mashine-name 3.0.0-19-generic #33-Ubuntu SMP Thu Apr 19 19:05:14 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Debug info:
http://pastebin.com/pP5GH19s


Reply to this email directly or view it on GitHub:
#7 (comment)

@czerasz
Copy link
Author

czerasz commented May 8, 2012

And here is the debug log:

info: Rvm::Define::User[vagrant]: Scheduling refresh of Exec[/usr/sbin/usermod -a -G rvm vagrant]

debug: Class[Apache]: The container Stage[main] will propagate my refresh event

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n tree'

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install tree'
notice: /Stage[main]/Boxes::Base::After::System::Update/Package[tree]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Boxes::Base::After::System::Update/Package[tree]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n gawk'

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install gawk'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[gawk]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[gawk]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n build-essential'
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install build-essential'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[build-essential]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[build-essential]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n libreadline-dev'
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libreadline-dev'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[libreadline-dev]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[libreadline-dev]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Class[Rvm::Packages::Ubuntu]: The container Stage[main] will propagate my refresh event

debug: Exec[download-rvm-install](provider=posix): Executing check 'which rvm'

debug: Executing 'which rvm'

debug: Exec[download-rvm-install](provider=posix): Executing 'wget -O /tmp/rvm https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'

debug: Executing 'wget -O /tmp/rvm https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'

notice: /Stage[main]/Rvm::Packages::Common/Exec[download-rvm-install]/returns: executed successfully

debug: /Stage[main]/Rvm::Packages::Common/Exec[download-rvm-install]: The container Class[Rvm::Packages::Common] will propagate my refresh event

debug: Exec[install-rvm](provider=posix): Executing 'bash /tmp/rvm'

debug: Executing 'bash /tmp/rvm'

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: Downloading RVM from wayneeseguin branch master
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:                                  Dload  Upload   Total   Spent    Left  Speed
100 1043k  100 1043k    0     0   116k      0  0:00:08  0:00:08 --:--:--  562k
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: Installing RVM to /usr/local/rvm/
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:     Creating RVM system user group 'rvm'
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # RVM:  Shell scripts enabling management of multiple ruby environments.
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # RTFM: https://rvm.io/
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # Cheatsheet: http://cheat.errtheblog.com/s/rvm/
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # Screencast: http://screencasts.org/episodes/how-to-use-rvm
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: Installation of RVM in /usr/local/rvm/ is almost complete:
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:   * First you need to add all users that will be using rvm to 'rvm' group,
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:     and logout - login again, anyone using rvm will be operating with `umask g+w`.

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:   * To start using RVM you need to run `source /etc/profile.d/rvm.sh`

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:     in all your open shell windows, in rare cases you need to reopen all shell windows.

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # vagrant,

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #   Thank you for using RVM!

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # ~Wayne

err: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: change from notrun to 0 failed: bash /tmp/rvm returned 1 instead of one of [0] at /tmp/vagrant-puppet/modules-0/rvm/manifests/packages/common.pp:17

notice: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Skipping because of failed dependencies

debug: Class[Rvm::Packages::Common]: The container Stage[main] will propagate my refresh event

notice: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Skipping because of failed dependencies

info: Rvm::Define::Gem[bundler]: Scheduling refresh of Exec[rvm-gem-install-bundler-ruby-1.9.3]

notice: /Stage[main]/Rvm/Anchor[rvm::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm/Anchor[rvm::end]: Skipping because of failed dependencies

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Skipping because of failed dependencies

debug: Exec[install-ruby-ruby-1.9.3](provider=posix): Executing check 'rvm list | grep ruby-1.9.3'

debug: Executing 'rvm list | grep ruby-1.9.3'

debug: Exec[install-ruby-ruby-1.9.3](provider=posix): Executing '/usr/local/rvm/bin/rvm install ruby-1.9.3'
debug: Executing '/usr/local/rvm/bin/rvm install ruby-1.9.3'
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Triggered 'refresh' from 1 events
debug: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: The container Rvm::Define::Version[ruby-1.9.3] will propagate my refresh event
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Skipping because of failed dependencies

debug: Exec[rvm-gem-install-bundler-ruby-1.9.3](provider=posix): Executing check 'rvm gem list | grep bundler'

debug: Executing 'rvm gem list | grep bundler'

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Triggered 'refresh' from 1 events
debug: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: The container Rvm::Define::Gem[bundler] will propagate my refresh event
debug: Rvm::Define::Gem[bundler]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Dependency Exec[install-rvm] has failures: true
warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Skipping because of failed dependencies
debug: Exec[/usr/sbin/usermod -a -G rvm vagrant](provider=posix): Executing check 'cat /etc/group | grep  | grep '

debug: Executing 'cat /etc/group | grep  | grep '

debug: Exec[/usr/sbin/usermod -a -G rvm vagrant](provider=posix): Executing '/usr/sbin/usermod -a -G rvm vagrant'
debug: Executing '/usr/sbin/usermod -a -G rvm vagrant'
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Triggered 'refresh' from 1 events

debug: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: The container Rvm::Define::User[vagrant] will propagate my refresh event

debug: Rvm::Define::User[vagrant]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event

debug: Rvm::Define::Version[ruby-1.9.3]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event

debug: Class[Boxes::Base::After::System::Update]: The container Stage[main] will propagate my refresh event

@jfryman
Copy link
Owner

jfryman commented May 11, 2012

I'm still a little confused here. Based on this output, everything looks fine, however the script is returning 1.

Does RVM work on your system, or is it also broken in some way? Could you try to install ruby manually w/ RVM? Also, can you get the RVM version? (rvm --version)

I'm trying to isolate whether this is an error in the puppet code, or an actual error upstream with RVM.

We can fix the return code with a change to the exec block to expect a return of 1 if that's 'success', but this still feels off to me.

-James

James Fryman
ph +1.615.669.2048 | twitter jfryman | gtalk: [email protected]

On May 8, 2012, at 2:48 PM, Michał Czeraszkiewicz wrote:

And here is the debug log:

info: Rvm::Define::User[vagrant]: Scheduling refresh of Exec[/usr/sbin/usermod -a -G rvm vagrant]

debug: Class[Apache]: The container Stage[main] will propagate my refresh event

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n tree'

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install tree'
notice: /Stage[main]/Boxes::Base::After::System::Update/Package[tree]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Boxes::Base::After::System::Update/Package[tree]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n gawk'

debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install gawk'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[gawk]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[gawk]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n build-essential'
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install build-essential'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[build-essential]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[build-essential]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n libreadline-dev'
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libreadline-dev'
notice: /Stage[main]/Rvm::Packages::Ubuntu/Package[libreadline-dev]/ensure: ensure changed 'purged' to 'present'
debug: /Stage[main]/Rvm::Packages::Ubuntu/Package[libreadline-dev]: The container Class[Rvm::Packages::Ubuntu] will propagate my refresh event
debug: Class[Rvm::Packages::Ubuntu]: The container Stage[main] will propagate my refresh event

debug: Exec[download-rvm-install](provider=posix): Executing check 'which rvm'

debug: Executing 'which rvm'

debug: Exec[download-rvm-install](provider=posix): Executing 'wget -O /tmp/rvm https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'

debug: Executing 'wget -O /tmp/rvm https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer'

notice: /Stage[main]/Rvm::Packages::Common/Exec[download-rvm-install]/returns: executed successfully

debug: /Stage[main]/Rvm::Packages::Common/Exec[download-rvm-install]: The container Class[Rvm::Packages::Common] will propagate my refresh event

debug: Exec[install-rvm](provider=posix): Executing 'bash /tmp/rvm'

debug: Executing 'bash /tmp/rvm'

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: Downloading RVM from wayneeseguin branch master
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:                                  Dload  Upload   Total   Spent    Left  Speed
100 1043k  100 1043k    0     0   116k      0  0:00:08  0:00:08 --:--:--  562k
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: Installing RVM to /usr/local/rvm/
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:     Creating RVM system user group 'rvm'
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # RVM:  Shell scripts enabling management of multiple ruby environments.
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # RTFM: https://rvm.io/
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # Cheatsheet: http://cheat.errtheblog.com/s/rvm/
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # Screencast: http://screencasts.org/episodes/how-to-use-rvm
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: Installation of RVM in /usr/local/rvm/ is almost complete:
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:   * First you need to add all users that will be using rvm to 'rvm' group,
notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:     and logout - login again, anyone using rvm will be operating with `umask g+w`.

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:   * To start using RVM you need to run `source /etc/profile.d/rvm.sh`

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns:     in all your open shell windows, in rare cases you need to reopen all shell windows.

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: 

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # vagrant,

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #   Thank you for using RVM!

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: #

notice: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: # ~Wayne

err: /Stage[main]/Rvm::Packages::Common/Exec[install-rvm]/returns: change from notrun to 0 failed: bash /tmp/rvm returned 1 instead of one of [0] at /tmp/vagrant-puppet/modules-0/rvm/manifests/packages/common.pp:17

notice: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages::Common/File[/tmp/rvm]: Skipping because of failed dependencies

debug: Class[Rvm::Packages::Common]: The container Stage[main] will propagate my refresh event

notice: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Packages/Anchor[rvm::packages::end]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/profile.d/rvm.sh]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/etc/gemrc]: Skipping because of failed dependencies

notice: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm::Config/File[/usr/local/bin/rvm_set_system_ruby]: Skipping because of failed dependencies

info: Rvm::Define::Gem[bundler]: Scheduling refresh of Exec[rvm-gem-install-bundler-ruby-1.9.3]

notice: /Stage[main]/Rvm/Anchor[rvm::end]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Rvm/Anchor[rvm::end]: Skipping because of failed dependencies

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Skipping because of failed dependencies

debug: Exec[install-ruby-ruby-1.9.3](provider=posix): Executing check 'rvm list | grep ruby-1.9.3'

debug: Executing 'rvm list | grep ruby-1.9.3'

debug: Exec[install-ruby-ruby-1.9.3](provider=posix): Executing '/usr/local/rvm/bin/rvm install ruby-1.9.3'
debug: Executing '/usr/local/rvm/bin/rvm install ruby-1.9.3'
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: Triggered 'refresh' from 1 events
debug: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Version[ruby-1.9.3]/Exec[install-ruby-ruby-1.9.3]: The container Rvm::Define::Version[ruby-1.9.3] will propagate my refresh event
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Dependency Exec[install-rvm] has failures: true

warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Skipping because of failed dependencies

debug: Exec[rvm-gem-install-bundler-ruby-1.9.3](provider=posix): Executing check 'rvm gem list | grep bundler'

debug: Executing 'rvm gem list | grep bundler'

notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: Triggered 'refresh' from 1 events
debug: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::Gem[bundler]/Exec[rvm-gem-install-bundler-ruby-1.9.3]: The container Rvm::Define::Gem[bundler] will propagate my refresh event
debug: Rvm::Define::Gem[bundler]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Dependency Exec[install-rvm] has failures: true
warning: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Skipping because of failed dependencies
debug: Exec[/usr/sbin/usermod -a -G rvm vagrant](provider=posix): Executing check 'cat /etc/group | grep  | grep '

debug: Executing 'cat /etc/group | grep  | grep '

debug: Exec[/usr/sbin/usermod -a -G rvm vagrant](provider=posix): Executing '/usr/sbin/usermod -a -G rvm vagrant'
debug: Executing '/usr/sbin/usermod -a -G rvm vagrant'
notice: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: Triggered 'refresh' from 1 events

debug: /Stage[main]/Boxes::Base::After::System::Update/Rvm::Define::User[vagrant]/Exec[/usr/sbin/usermod -a -G rvm vagrant]: The container Rvm::Define::User[vagrant] will propagate my refresh event

debug: Rvm::Define::User[vagrant]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event

debug: Rvm::Define::Version[ruby-1.9.3]: The container Class[Boxes::Base::After::System::Update] will propagate my refresh event

debug: Class[Boxes::Base::After::System::Update]: The container Stage[main] will propagate my refresh event

Reply to this email directly or view it on GitHub:
#7 (comment)

@nlsrchtr
Copy link

Some for me with Debian Squeeze 64, Puppet 2.6.2 and default setting:

rvm::define::version { 'ree-1.8.7':
  ensure => 'present',
  system => 'false',
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants