Comment 3 for bug 816621

Revision history for this message
Juan L. Negron (negronjl) wrote : Re: [Bug 816621] [NEW] Ensemble doesn't appear to set up a complete environment while running the installation scripts and hooks

The problem I have with that assessment is that, if I run the install script
manually, it all works. That's why I included the install script.

Try it out and you'll see that it runs fine when run from a shell but, it
dies when ensemble runs it.

i have also checked the dependencies...

Thanks,

Juan Negron <email address hidden>
System Integration Engineer
Corporate Services
Canonical USA
Mobile: +1 (408) 634-0292
GPG : 0A62 BC70 5CBC B4DD F3E6 8A27 A6B1 F3F0 E6B5 F5A3

On Tue, Jul 26, 2011 at 3:11 PM, Clint Byrum <email address hidden> wrote:

> Excerpts from Juan L. Negron's message of Tue Jul 26 19:55:35 UTC 2011:
> > Public bug reported:
> >
> > While working on a formula, I noticed that the install scripts and hooks
> > work as predicted but, when I run them via ensemble, some packages fail
> > to install.
> >
> > The install script: http://pastebin.ubuntu.com/652634/
> > The above install script works fine when in a shell but, fails ( package:
> cloudfoundry-server ).
> > The formula.log: http://pastebin.ubuntu.com/652635/
> >
> > This is blocking cloudfoundry-server from completion. Please help
>
> My guess is that there's a missing dependency in the cloudfoundry-server
> package:
>
> #install bundler gem - should be packaged
> gem install bundler
>
> Gems are pretty unpredictible.. seems like it had an error:
>
> 2011-07-26 03:39:51,193: hook.output@ERROR: ERROR: While executing gem
> ... (TypeError)
> can't convert nil into String
>
> There are a bunch of bugs where gem depends on files in our home directory
> or having the terminal available. I'd suggest packaging bundler with
> gem2deb (available in oneiric, builds and works fine on natty too)
>
> I took a stab at it just now, and the generated package works fine except
> needs to add rubygems as a dependency.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/816621
>
> Title:
> Ensemble doesn't appear to set up a complete environment while running
> the installation scripts and hooks
>
> Status in CloudFoundry:
> New
> Status in Ensemble:
> New
>
> Bug description:
> While working on a formula, I noticed that the install scripts and
> hooks work as predicted but, when I run them via ensemble, some
> packages fail to install.
>
> The install script: http://pastebin.ubuntu.com/652634/
> The above install script works fine when in a shell but, fails ( package:
> cloudfoundry-server ).
> The formula.log: http://pastebin.ubuntu.com/652635/
>
> This is blocking cloudfoundry-server from completion. Please help
>
> -Juan
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cloudfoundry/+bug/816621/+subscriptions
>
>