------------------------------------------------------------------------
*From:* Mohammed Morsi <mmorsi(a)redhat.com>
*To:* deltacloud-users(a)lists.fedorahosted.org
*Sent:* Fri, September 17, 2010 1:37:40 PM
*Subject:* Re: Error on starting aggregator
On 09/17/2010 02:31 PM, Xavier J wrote:
> 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
Just FYI it's a better practice to place your replies at the bottom /
after the original message, to make it easier to follow the conversation.
Regardless it seems deltacloud is still in /root, root's home
directory. No other use has permissions to access this directory other
than root. I would just start from scratch. Checkout a fresh copy of
deltacloud in /home/xx, and then try to run the server again as the
'xx' user.
I'm not quite sure why the gems are remaining frozen after you run
unfreeze. Regardless, that issue shouldn't be present in a new
checkout, so I would try that before debugging the frozen gem issue
further.
BTW this might be easier to debug on irc, feel free to join us on
#deltacloud on Freenode.
-Mo
Okay.. I reinstalled the whole thing and the situation has improved a
little, but still stuck on scruffy.
As suggested in
http://deltacloud.org/contribute.html I ran the
following under aggregator/src
cp config/database.sqlite config/database.yml
rake db:create:all
rake db:migrate
The first rake runs fine, but rake db:migrate complaints about missing
scruffy again.
...
...
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'
/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 /home/xx/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8
Can you paste the entire backtrace. I ask because scruffy may be
loading, but an internal error might be being raised in the process
(possibly due to another missing gem) which is causing the interpreter
to think scruffy is missing.
-Mo