Bug 721327 - Installation fails with Could not find rake-0.9.2 in any of the sources and ends up with inconsistent machine
Summary: Installation fails with Could not find rake-0.9.2 in any of the sources and e...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Infrastructure
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-07-14 10:10 UTC by Šimon Lukašík
Modified: 2019-09-26 13:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 17:49:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Šimon Lukašík 2011-07-14 10:10:28 UTC
Description of problem:
I have followed installation instructions at

    https://fedorahosted.org/katello/wiki/Install

And I choosed the rpm version. I've experienced failure:

    # service katello initdb
    /usr/lib/katello /
    (in /usr/lib/katello)
    Could not find rake-0.9.2 in any of the sources
    Try running `bundle install`.
    /

Let's look over the fact that the output looks messy. It forces
me to run:

    cd /usr/lib/katello
    bundle install

but it forgets to advice me to change the directory. I don't
really want to run bundle install on my Fedora box. On a Fedora
default package manager is RPM. Not a gem. 

For example, I don't see a reason why should I want to install
sqlite3 from rubygem when there is an rpm for Fedora.

Compare:
  sqlite3-1.3.3.gem
  rubygem-sqlite3-1.3.3-3.fc14.x86_64.rpm

The most powerful thing of today linuxes was, that they use
centralized software management tool.


Version-Release number of selected component (if applicable):
katello-0.1.49-1.git.394.97e6a5d.fc14.noarch

How reproducible:
always

Steps to Reproduce:
1. follow installation instruction
2.
3.
  
Actual results:
End up with installed software, which is not managed by rpm.

Expected results:
All the installed software should be managed by Rpm. This is how
we do it in Fedora.

Additional info:

Comment 1 Mike McCune 2011-07-15 18:21:17 UTC
Working on cleaning a good portion of the above so you don't have to ever run 'bundle install' after installing the RPM.

Comment 2 Lukas Zapletal 2011-07-27 12:16:12 UTC
Our SPEC precompiles our CSS files and assets using compass and jammit tools:

%build
echo Compiling SASS files...
compass compile

echo Generating Rails assets...
jammit 

Therefore both bugs should be resolved. Please note due to bug in rack 1.1.0 the katello service is not working. The only way to start it until we fix this is:

# cd /usr/lib/katello
# su - katello -s /bin/bash -c "rails s -e production -p 3000"

commit ca97d9ad2fd90d7ab6235c83cc734b13503f171d
Author: Lukas Zapletal <lzap+git>
Date:   Wed Jul 27 13:56:04 2011 +0200

    production.rb now symlinked to /etc/katello/environment.rb

commit be8cf50ae0c0ab465de759b824404a4fda5226d2
Author: Lukas Zapletal <lzap+git>
Date:   Wed Jul 27 11:10:52 2011 +0200

    725793 - Permission denied stylesheets/fancyqueries.css

commit dd11eee1eadc6b3ce1ab8345395d566ef8436715
Author: Lukas Zapletal <lzap+git>
Date:   Wed Jul 27 11:04:07 2011 +0200

    725901 - Permission errors in RPM
    
    Do not attempt to recompile SASS files in the production mode. We are going
    to precompile it during the RPM build process. The /usr/lib/katello/public
    wont be symlinked into the /var/lib/katello anymore.

Comment 3 Jeff Weiss 2011-09-26 17:36:07 UTC
This has been working for me.  Verified, katello-0.1.84-1.git.26.51fa1e1.fc14.noarch


Note You need to log in before you can comment on or make changes to this bug.