RHEL4 puppet-dashboard 1.0.3

71 views
Skip to first unread message

ScubaDude

unread,
Aug 6, 2010, 9:59:21 AM8/6/10
to Puppet Users
Has anyone got dashborad-1.03 working on RHEL 4?

I'm struggling to find the ruby / rubygem RPMs for RHEL4...

Thanks

Rein Henrichs

unread,
Aug 6, 2010, 1:29:16 PM8/6/10
to puppet-users
Excerpts from ScubaDude's message of Fri Aug 06 06:59:21 -0700 2010:

> Has anyone got dashborad-1.03 working on RHEL 4?
>
> I'm struggling to find the ruby / rubygem RPMs for RHEL4...
>
> Thanks
>

The packages you need should be in EPEL. Have you tried the instructions
for CentOS 5.5 in the README[1]?

[1] http://github.com/puppetlabs/puppet-dashboard/blob/master/README.markdown
--
Rein Henrichs
http://puppetlabs.com

George Bobeck

unread,
Aug 6, 2010, 5:13:03 PM8/6/10
to Puppet Users
While not exactly the newest versions, I was getting my Ruby RPMs from
http://rubyworks.rubyforge.org/redhat/

ScubaDude

unread,
Aug 9, 2010, 6:41:29 AM8/9/10
to Puppet Users
Ok, I've got it up and running now. I'll post the steps and packages
I downloaded to get it going when I get a chance!

George:
I'd found http://rubyworks.rubyforge.org/redhat/ but was still
struggling to get everything to be "happy".

Rein:
Thanks for the link it was very helpful even though I'm using RHEL4
not 5.

Thanks for you help!

ScubaDude

unread,
Aug 10, 2010, 9:58:53 AM8/10/10
to Puppet Users
Packages I needed to get dashboard running on a RHEL4 Server:

From the Extra Packages for Enterprise Linux repository:
http://fedoraproject.org/wiki/EPEL

32-bit: http://download.fedora.redhat.com/pub/epel/4/i386/repoview/
64-bit: http://download.fedora.redhat.com/pub/epel/4/x86_64/repoview/

augeas-0.7.2-1
augeas-libs-0.7.2-1
facter-1.5.7
ruby-augeas-0.3.0.1
ruby-mysql-2.7.3-1

The version of ruby provided with RHEL 4 is too old, a newer version
is available from the CentOS Testing repository, I couldn’t find a
RedHat equivalent:
http://dev.centos.org/centos/4/

ruby-1.8.5-5
ruby-docs-1.8.5.-5
ruby-irb-1.8.5-5
ruby-libs-1.8.5-5
ruby-rdoc-1.8.5-5

I installed the above rpm's before the following:

<quoted from http://github.com/puppetlabs/puppet-dashboard/blob/master/README.markdown>
Install the gem package manager -- do not install RubyGems version
1.3.6 or newer because they are incompatible with the Ruby shipped
with CentOS 5.5:

URL="http://production.cf.rubygems.org/rubygems/rubygems-1.3.5.tgz"
PACKAGE=$(echo $URL | sed "s/\.[^\.]*$//; s/^.*\///")
pushd "/tmp"
CACHE=`mktemp -d install_rubygems.XXXXXXXXXX`
pushd "$CACHE"
wget -c -t10 -T20 -q "$URL"
tar xfz "$PACKAGE.tgz"
cd "$PACKAGE"
sudo ruby setup.rb
popd
popd

Install the rubygem rake:

gem install rake


I tried to install the mysql gem the same way, but got errors because
ruby needed to be a higher revision.

http://rubyworks.rubyforge.org/redhat/4.9/RPMS/x86_64/
rubygem-mysql-2.7-2


Finally install puppet-dashboard from rpm:

http://yum.puppetlabs.com/base/
puppet-dashboard-1.0.3-3.norarch.rpm

--nodeps required. The package appears to use an rpm query to check
dependencies, the rake gem wasn’t installed as an RPM, neither was
rubygems so it fails.

rpm –Uvh --nodeps puppet-dashboard-1.0.3-3.norarch.rpm

Rein Henrichs

unread,
Aug 10, 2010, 1:44:11 PM8/10/10
to puppet-users
Excerpts from ScubaDude's message of Tue Aug 10 06:58:53 -0700 2010:

> Packages I needed to get dashboard running on a RHEL4 Server:

Thanks for detailing your installation procedure. We'll add it to the
Dashboard instructions.

Igal Koshevoy

unread,
Aug 10, 2010, 3:22:22 PM8/10/10
to puppet...@googlegroups.com, ScubaDude
On 08/10/2010 06:58 AM, ScubaDude wrote:
> Packages I needed to get dashboard running on a RHEL4 Server:
>
Thanks for describing this, we'll incorporate these into a future
release of the Puppet Dashboard's documentation. I've added a feature
ticket for this at http://projects.puppetlabs.com/issues/4510

If you or others have other OS-specific instructions, please feel free
to submit a patch against the docs.

> augeas-0.7.2-1
> augeas-libs-0.7.2-1
> facter-1.5.7
> ruby-augeas-0.3.0.1
>
The Puppet Dashboard doesn't require these packages -- I suspect these
were required as part of installing Puppet.

> From the Extra Packages for Enterprise Linux repository:

> ruby-mysql-2.7.3-1
> [...]


> I tried to install the mysql gem the same way, but got errors because
> ruby needed to be a higher revision.

> [...]
> [Instead installed from]
> http://rubyworks.rubyforge.org/redhat/4.9/RPMS/x86_64/rubygem-mysql-2.7-2
The "ruby-mysql" package from EPEL is recommended by the documentation
for newer versions of CentOS and provides a pre-compiled library that's
tricky to to build otherwise. Did the EPEL package work for you? If so,
there shouldn't have been a need to install it via `gem install
ruby-mysql` or from rubyworks. If not, can you please summarize what
happened?

> Finally install puppet-dashboard from rpm:
>
> http://yum.puppetlabs.com/base/puppet-dashboard-1.0.3-3.norarch.rpm
>
> --nodeps required. The package appears to use an rpm query to check

> dependencies, the rake gem wasn�t installed as an RPM, neither was
> rubygems so it fails.
>
> rpm �Uvh --nodeps puppet-dashboard-1.0.3-3.norarch.rpm
>
The packages assume you're running a newer version of CentOS. Your
`--nodeps` workaround for this is fine. Another approach would have been
to use a source-only version of the software downloaded from github.

Anyway, thank you for working through this and describing your experiences.

-igal

ScubaDude

unread,
Aug 11, 2010, 3:26:38 AM8/11/10
to Puppet Users


On Aug 10, 8:22 pm, Igal Koshevoy <i...@pragmaticraft.com> wrote:
> On 08/10/2010 06:58 AM, ScubaDude wrote:> Packages I needed to get dashboard running on a RHEL4 Server:
>
> Thanks for describing this, we'll incorporate these into a future
> release of the Puppet Dashboard's documentation. I've added a feature
> ticket for this athttp://projects.puppetlabs.com/issues/4510
>
> If you or others have other OS-specific instructions, please feel free
> to submit a patch against the docs.
>
> >    augeas-0.7.2-1
> >    augeas-libs-0.7.2-1
> >    facter-1.5.7
> >    ruby-augeas-0.3.0.1
>
> The Puppet Dashboard doesn't require these packages -- I suspect these
> were required as part of installing Puppet.

Your quite correct, the server I'm using also hosts the puppet-master.

>
> > From the Extra Packages for Enterprise Linux repository:
> >    ruby-mysql-2.7.3-1
> > [...]
> > I tried to install the mysql gem the same way, but got errors because
> > ruby needed to be a higher revision.
> > [...]
> > [Instead installed from]
> >    http://rubyworks.rubyforge.org/redhat/4.9/RPMS/x86_64/rubygem-mysql-2...
>
> The "ruby-mysql" package from EPEL is recommended by the documentation
> for newer versions of CentOS and provides a pre-compiled library that's
> tricky to to build otherwise. Did the EPEL package work for you? If so,
> there shouldn't have been a need to install it via `gem install
> ruby-mysql` or from rubyworks. If not, can you please summarize what
> happened?

The EPEL ruby-mysql package installed fine, however if I try to run
the server without the mysql gem I get:

!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- mysql
(MissingSourceFile)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/
active_support/dependencies.rb:158:in `require'
from /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/
active_support/core_ext/kernel/requires.rb:7:in
`require_library_or_gem'
from /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/
active_support/core_ext/kernel/requires.rb:5:in
`require_library_or_gem'
from /usr/share/puppet-dashboard/vendor/rails/activerecord/lib/
active_record/connection_adapters/mysql_adapter.rb:61:in
`mysql_connection'
from /usr/share/puppet-dashboard/vendor/rails/activerecord/lib/
active_record/connection_adapters/abstract/connection_pool.rb:223:in
`send'
from /usr/share/puppet-dashboard/vendor/rails/activerecord/lib/
active_record/connection_adapters/abstract/connection_pool.rb:223:in
`new_connection'
... 26 levels...
from /usr/share/puppet-dashboard/vendor/rails/railties/lib/commands/
server.rb:84
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from script/server:3

That might be caused by some other issue, or a version conflict. I
removed the ruby-mysql RPM (--nodeps as puppet-dashboard requires it)
and all continued to function so that RPM maybe a red herring.


Trying to install the gem with 'gem' I get:

# gem install mysql
ERROR: Error installing mysql:
mysql requires Ruby version >= 1.8.6

Hence using the RPM version of the mysql gem.

......
>
> -igal

Igal Koshevoy

unread,
Aug 11, 2010, 6:45:41 AM8/11/10
to puppet...@googlegroups.com, ScubaDude
On 08/11/2010 12:26 AM, ScubaDude wrote:
> On Aug 10, 8:22 pm, Igal Koshevoy <i...@pragmaticraft.com> wrote:
>
>> On 08/10/2010 06:58 AM, ScubaDude wrote:> Packages I needed to get dashboard running on a RHEL4 Server:
>>
>> Thanks for describing this, we'll incorporate these into a future
>> release of the Puppet Dashboard's documentation. I've added a feature
>> ticket for this athttp://projects.puppetlabs.com/issues/4510
>>
>> If you or others have other OS-specific instructions, please feel free
>> to submit a patch against the docs.
>>
>>
>>> augeas-0.7.2-1
>>> augeas-libs-0.7.2-1
>>> facter-1.5.7
>>> ruby-augeas-0.3.0.1
>>>
>> The Puppet Dashboard doesn't require these packages -- I suspect these
>> were required as part of installing Puppet.
>>
> Your quite correct, the server I'm using also hosts the puppet-master.
>
Thanks for the confirmation.

The rubyworks Ruby package probably reads libraries from different
directories than the EPEL ruby-mysql package is installed into and thus
can't be loaded, so your approach of installing the rubyworks version of
rubygems-mysql seems correct and necessary.

Thank you for the details, this will make it easier to write the
installation instructions for these older RHEL and CentOS releases.

-igal

ScubaDude

unread,
Aug 11, 2010, 7:34:19 AM8/11/10
to Puppet Users
No problem Igal.

Happy to help with documentation if you need it.

Brett

ScubaDude

unread,
Aug 11, 2010, 7:34:35 AM8/11/10
to Puppet Users
No problem Igal, Only happy to help with documentation if you need
it.

Brett
Reply all
Reply to author
Forward
0 new messages