Foreman-proxy CentOS 7 - won't start with bundler_ext error

Fresh install of Foreman on CentOS 7 and i can't get foreman-proxy to start.

systemctl status foreman-proxy.service -l
foreman-proxy.service - Foreman Proxy
Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; disabled)
Active: failed (Result: exit-code) since Thu 2015-02-12 01:46:16 UTC;
6min ago
Process: 18511 ExecStart=/usr/share/foreman-proxy/bin/smart-proxy
(code=exited, status=1/FAILURE)

smart-proxy[18511]: bundler_ext gem is required to run smart_proxy

I see the RPM installed

rubygem-bundler_ext-0.3.0-6.el7.noarch
ruby193-rubygem-bundler_ext-0.3.0-6.el7.noarch

Looking at the startup script in

/usr/share/foreman-proxy/bin/smart-proxy

I see it just does

/usr/bin/ruby env

Should it actually not invoke the ruby193 from /opt/rh/ruby193/enable?
definitely seems to be using wrong ruby…

EPEL/CentOS mirrors are setup

Hello,

> Fresh install of Foreman on CentOS 7 and i can't get foreman-proxy to start.

have you installed with our installer?

> Looking at the startup script in
>
> /usr/share/foreman-proxy/bin/smart-proxy
>
> I see it just does
>
> /usr/bin/ruby env

Smart-proxy is not running on SCL ruby, it is running on system default
ruby. In CentOS 7 case this is Ruby 2.0 I think.

Our repositories ship all the required rubygems. If you followed our
guildelines and documentation, it was all installed.

··· -- Later, Lukas #lzap Zapletal

Lukas,

Thanks for quick reply. If smart proxy uses system ruby, i think i know
what my problem is… We have our own ruby we roll in /usr/local/bin and it
seems CentOS loves to put /usr/local/bin in the path before /usr/bin - now
that i know this one uses system, i'll see if i can get it working that
way. (i took it out of path to run installer, but systemctl certainly
probably munges the path)

I did use the foreman-installer to install this node.

will report back shortly :slight_smile:

-byron

··· On Thursday, February 12, 2015 at 6:44:02 AM UTC-6, Lukas Zapletal wrote: > > Hello, > > > Fresh install of Foreman on CentOS 7 and i can't get foreman-proxy to > start. > > have you installed with our installer? > > > Looking at the startup script in > > > > /usr/share/foreman-proxy/bin/smart-proxy > > > > I see it just does > > > > /usr/bin/ruby env > > Smart-proxy is not running on SCL ruby, it is running on system default > ruby. In CentOS 7 case this is Ruby 2.0 I think. > > Our repositories ship all the required rubygems. If you followed our > guildelines and documentation, it was all installed. > > -- > Later, > Lukas #lzap Zapletal >

changing foreman-proxy to use #!/usr/bin/ruby fixed it… using
#!/usr/bin/env ruby was picking up a ruby in /usr/local/bin -

thanks!

-byron

··· On Thursday, February 12, 2015 at 6:44:02 AM UTC-6, Lukas Zapletal wrote: > > Hello, > > > Fresh install of Foreman on CentOS 7 and i can't get foreman-proxy to > start. > > have you installed with our installer? > > > Looking at the startup script in > > > > /usr/share/foreman-proxy/bin/smart-proxy > > > > I see it just does > > > > /usr/bin/ruby env > > Smart-proxy is not running on SCL ruby, it is running on system default > ruby. In CentOS 7 case this is Ruby 2.0 I think. > > Our repositories ship all the required rubygems. If you followed our > guildelines and documentation, it was all installed. > > -- > Later, > Lukas #lzap Zapletal >