Comment 5 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

We worked around the issue by packaging bundler ( the gem in question ).

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 9:29 PM, Clint Byrum <email address hidden> wrote:

> Excerpts from Juan L. Negron's message of Wed Jul 27 01:40:12 UTC 2011:
> > 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...
> >
>
> I totally understand that. I'm suggesting that gem is really unreliable
> without a tty and/or login shell. I reported a bug in rubygems where it
> assumed you would have a certain file in ~ or fail hard. That one is
> fixed (and only involved gem build), but I'm sure there are others.
>
> Ensemble isn't the only tool to install without a terminal or shell,
> in fact I believe some of the GUI package managers use pipes rather than
> pseudo terminals to capture the output.
>
> As annoying as this is (I'd be annoyed were I in your shoes), this seems
> like a bug in the postinst of the package, not necessarily Ensemble
> (even if though it *is* confusing that it works manually).
>
> Can you try installing the package with < /dev/null ?
>
> --
> 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
>
>