RVM fails install hook on first run 100% of the time

Bug #1292680 reported by Charles Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rails (Juju Charms Collection)
Invalid
Critical
charmers

Bug Description

RVM is returning an exit code of 1, and this appears to be a recent'ish change to the RVM tree.

sample snip from debug-log

unit-sample-app-0: 2014-03-14 19:22:06 INFO install Installation of RVM in /usr/local/rvm/ is almost complete:
unit-sample-app-0: 2014-03-14 19:22:06 INFO install
unit-sample-app-0: 2014-03-14 19:22:06 INFO install * First you need to add all users that will be using rvm to 'rvm' group,
unit-sample-app-0: 2014-03-14 19:22:06 INFO install and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
unit-sample-app-0: 2014-03-14 19:22:06 INFO install
unit-sample-app-0: 2014-03-14 19:22:06 INFO install * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
unit-sample-app-0: 2014-03-14 19:22:06 INFO install in all your open shell windows, in rare cases you need to reopen all shell windows.
unit-sample-app-0: 2014-03-14 19:22:06 INFO install
unit-sample-app-0: 2014-03-14 19:22:06 INFO install # Administrator,
unit-sample-app-0: 2014-03-14 19:22:06 INFO install #
unit-sample-app-0: 2014-03-14 19:22:06 INFO install # Thank you for using RVM!
unit-sample-app-0: 2014-03-14 19:22:06 INFO install # We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
unit-sample-app-0: 2014-03-14 19:22:06 INFO install #
unit-sample-app-0: 2014-03-14 19:22:06 INFO install # ~Wayne, Michal & team.
unit-sample-app-0: 2014-03-14 19:22:06 INFO install
unit-sample-app-0: 2014-03-14 19:22:07 INFO install In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
unit-sample-app-0: 2014-03-14 19:22:08 ERROR juju.worker.uniter uniter.go:480 hook failed: exit status 1

Tags: audit
Revision history for this message
Dave Cheney (dave-cheney) wrote : Re: [Bug 1292680] [NEW] RVM fails install hook on first run 100% of the time
Download full text (4.2 KiB)

Oh the irony, rvm, the tool that helps you manage multiple versions of ruby
needs your assistance to manage itself.

On Sat, Mar 15, 2014 at 6:36 AM, Charles Butler <
<email address hidden>> wrote:

> Public bug reported:
>
> RVM is returning an exit code of 1, and this appears to be a recent'ish
> change to the RVM tree.
>
>
> sample snip from debug-log
>
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install Installation of RVM in
> /usr/local/rvm/ is almost complete:
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install * First you need to
> add all users that will be using rvm to 'rvm' group,
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install and logout - login
> again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install * To start using RVM
> you need to run `source /etc/profile.d/rvm.sh`
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install in all your open
> shell windows, in rare cases you need to reopen all shell windows.
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install # Administrator,
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install #
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install # Thank you for
> using RVM!
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install # We sincerely hope
> that RVM helps to make your life easier and more enjoyable!!!
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install #
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install # ~Wayne, Michal &
> team.
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install
> unit-sample-app-0: 2014-03-14 19:22:07 INFO install In case of problems:
> http://rvm.io/help and https://twitter.com/rvm_io
> unit-sample-app-0: 2014-03-14 19:22:08 ERROR juju.worker.uniter
> uniter.go:480 hook failed: exit status 1
>
> ** Affects: rails (Juju Charms Collection)
> Importance: Critical
> Assignee: charmers (charmers)
> Status: New
>
>
> ** Tags: audit
>
> --
> You received this bug notification because you are a member of charmers,
> which is a bug assignee.
> https://bugs.launchpad.net/bugs/1292680
>
> Title:
> RVM fails install hook on first run 100% of the time
>
> Status in "rails" package in Juju Charms Collection:
> New
>
> Bug description:
> RVM is returning an exit code of 1, and this appears to be a
> recent'ish change to the RVM tree.
>
>
> sample snip from debug-log
>
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install Installation of RVM
> in /usr/local/rvm/ is almost complete:
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install * First you need
> to add all users that will be using rvm to 'rvm' group,
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install and logout -
> login again, anyone using rvm will be operating with `umask
> u=rwx,g=rwx,o=rx`.
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install
> unit-sample-app-0: 2014-03-14 19:22:06 INFO install * To start using
> RVM you need to run `source ...

Read more...

Revision history for this message
Charles Butler (lazypower) wrote :

This works as is, but the problem is - when you do not specify a repository the logic in the charm doesn't account for a sane default and the RVM installation tanks.

If you examine this sample bundle, you will see that it does indeed deploy properly. You'll need to "seed" the deployment with a config.yaml.

I'm leaving this bug open as an action item to update the default behavior with a more recent copy of ruby, and to gracefuly do nothing when its not configured as we would expect.

Revision history for this message
Charles Butler (lazypower) wrote :

Actually this was a temporary bug in rvm, and the above described problem should be a new bug. Closing as invalid.

Changed in rails (Juju Charms Collection):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.