Thanks for the response. Looking at your comments I am not sure whether I am
attacking the right problem. But here is what I am seeing.
I tried rake rails:unfreeze but it is still seem frozen! See below:
[root@fedora13 src]# rake rails:unfreeze
(in /root/deltacloud/aggregator/src)
rm -rf vendor/rails
[root@fedora13 src]# rake gems
(in /root/deltacloud/aggregator/src)
- [F] authlogic
- [R] activesupport
- [F] deltacloud-client >= 0.0.9.6
- [F] rest-client >= 1.4.2
- [F] mime-types >= 1.16
- [R] nokogiri >= 1.4.1
- [F] haml
- [F] will_paginate
- [R] nokogiri >= 1.4.0
- [F] gnuplot
- [F] scruffy
- [F] compass >= 0.10.2
- [F] haml >= 3.0.4
- [F] compass-960-plugin
- [F] compass >= 0.10.0.rc3
- [F] haml >= 3.0.4
- [F] simple-navigation
> What does 'gem list -d scruffy' turn up. Does it work
after gem installing
>scruffy?
[root@fedora13 src]# gem list -d scruffy
*** LOCAL GEMS ***
scruffy (0.2.6)
Author: Brasten Sager
Rubyforge:
http://rubyforge.org/projects/scruffy
Homepage:
http://scruffy.rubyforge.org
Installed at: /usr/lib/ruby/gems/1.8
A powerful, clean graphing library for Ruby.
It doesn't seem to work (same scruffy not found error) even after gem install
scruffy
> Also you shouldn't get a permission error when running
./script/server.
> What is the error exactly?
> The rake dc:site_admin[user] simply grants a deltacloud user (in the db) site
>admin privileges in the ui.
Ah! I see, this is the error I am getting which led
me to running "rake
dc:site_admin"
[root@fedora13 src]# ./script/server
Deltacloud aggregator cannot be run as root
[root@fedora13 src]# su xx
[jijo@fedora13 src]$ ./script/server
/usr/lib/ruby/1.8/pathname.rb:420:in `lstat': Permission denied -
/root/deltacloud (Errno::EACCES)
from /usr/lib/ruby/1.8/pathname.rb:420:in `realpath_rec'
from /usr/lib/ruby/1.8/pathname.rb:453:in `realpath'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:878:in
`set_root_path!'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:836:in
`initialize'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:110:in
`new'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:110:in
`run'
from ./script/../config/boot.rb:39:in `run'
from ./script/../config/boot.rb:11:in `boot!'
from ./script/../config/boot.rb:110
from ./script/server:8:in `require'
from ./script/server:8
I set the chown on the root/deltacloud folder to user xx. What else is needed?
Thanks
~x
________________________________
From: Mohammed Morsi <mmorsi(a)redhat.com>
To: deltacloud-users(a)lists.fedorahosted.org
Sent: Thu, September 16, 2010 6:20:07 PM
Subject: Re: Error on starting aggregator
On 09/16/2010 08:40 PM, Xavier J wrote:
Hello All,
I know this is rather a ruby question than deltacloud. I am
quite new to ruby so any help would be appreciated.
When I run ./script/server to start the agrgtr, I get the permission
error. So I try to execute the rake dc:site_admin[xxx]command. Then
I get the following error.
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Missing these required gems:
scruffy
You're running:
ruby 1.8.6.399 at /usr/bin/ruby
rubygems 1.3.7 at /root/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8
I do have scruffy installed, but it isn't working!
[root@fedora13 src]# rake gems
(in /root/deltacloud/aggregator/src)
- [F] authlogic
- [R] activesupport
- [F] deltacloud-client >= 0.0.9.6
- [F] rest-client >= 1.4.2
- [F] mime-types >= 1.16
- [R] nokogiri >= 1.4.1
- [F] haml
- [F] will_paginate
- [R] nokogiri >= 1.4.0
- [F] gnuplot
- [F] scruffy
- [F] compass >= 0.10.2
- [F] haml >= 3.0.4
- [F] compass-960-plugin
- [F] compass >= 0.10.0.rc3
- [F] haml >= 3.0.4
- [F] simple-navigation
I = Installed
F = Frozen
R = Framework (loaded before rails starts)
I notice scriffy is "Frozen". What does it mean? How do I get it
working?
Again sorry for posting this question here.
~x
When gems are frozen in rails, the particular version is unpacked into your
vendor directory, so that rails will use that and ignore anything installed
system wide or in your ~/.gem dir. To unfreeze simply run 'rake
rails:unfreeze' (to get a list of all supported rake tasks, run 'rake
-T')
Somewhat weird that the scruffy gem is reporting as missing. What does 'gem
list -d scruffy' turn up. Does it work after gem installing scruffy?
Also you shouldn't get a permission error when running ./script/server. What
is the error exactly? The rake dc:site_admin[user] simply grants a
deltacloud user (in the db) site admin privileges in the ui.
-Mo