List Info

Thread: What does this error mean?




What does this error mean?
user name
2006-07-21 09:44:29
Hi list!

After revamping my web site using Nitro at home (WinXP
Pro+Apache 
2.2+CGI) I uploaded it to my ISPs server
(Gentoo+Apache2.0+FastCGI). 
Most things worked as aspected, but any page that tries to
use Og 
doesn't work. I get the following error on all pages that
use Og:

--- BEGIN DEBUG INFO ---
Error
Path: /guestbook
undefined local variable or method `ogmanager' for
Post:Class
Reload this page. Go to the referer or the home page.
In file
'/usr/lib/ruby/gems/1.8/gems/og-0.30.0/lib/og/entity.rb' :

514: yield(obj) if block_given?
515: end
516:
517: return obj
518: else
519: super	<-- Error here
520: end
521: end
522:
523: private
524:
--- END DEBUG INFO ---

And the stack trace...

--- BEGIN STACK TRACE ---
/usr/lib/ruby/gems/1.8/gems/og-0.30.0/lib/og/entity.rb:519:i
n 
`method_missing'
/usr/lib/ruby/gems/1.8/gems/og-0.30.0/lib/og/entity.rb:191:i
n `find'
./src/controllers/guestbookcontroller.rb:7:in `index'
(eval):6:in `index_action'
/usr/lib/ruby/gems/1.8/gems/nitro-0.30.0/lib/nitro/render.rb
:129:in `render'
/usr/lib/ruby/gems/1.8/gems/nitro-0.30.0/lib/nitro/cgi.rb:42
:in `process'
/usr/lib/ruby/gems/1.8/gems/nitro-0.30.0/lib/nitro/adapter/f
astcgi.rb:35:in 
`start'
/usr/lib/ruby/gems/1.8/gems/nitro-0.30.0/lib/nitro/adapter/f
astcgi.rb:33:in 
`start'
/usr/lib/ruby/gems/1.8/gems/nitro-0.30.0/lib/nitro/server/ru
nner.rb:287:in 
`invoke'
/usr/lib/ruby/gems/1.8/gems/nitro-0.30.0/lib/nitro/server.rb
:128:in `run'
/usr/lib/ruby/gems/1.8/gems/nitro-0.30.0/lib/nitro.rb:78:in
`run'
/home/lassoweb/nitro_sites/lassoweb/run.rb:4
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
/home/lassoweb/public_html/dispatch.fcgi:7
--- END STACK TRACE ---

I've tried using plain CGI on my ISPs server, but the
problem persists. 
I've also checked that the relevant db gem (ruby-sqlite3)
is installed). 
Now I'm stuck. Can anyone please try to explain to me what
the generated 
error message means?


Kindly


/lasso

-- 
________________________________________
Lars Olsson
lassolassoweb.se
http://www.lassoweb.se/
_______________________________________________
Nitro-general mailing list
Nitro-generalrubyforge.org
h
ttp://rubyforge.org/mailman/listinfo/nitro-general
What does this error mean?
user name
2006-07-21 17:56:44
On 7/21/06, Lars Olsson <lassolassoweb.se> wrote:
> --- BEGIN DEBUG INFO ---
> Error
> Path: /guestbook
> undefined local variable or method `ogmanager' for
Post:Class
> Reload this page. Go to the referer or the home page.
> In file
'/usr/lib/ruby/gems/1.8/gems/og-0.30.0/lib/og/entity.rb' :
>

That's odd. Does the database file exist? Does the fastcgi
process
have write privs to it?

Bryan
_______________________________________________
Nitro-general mailing list
Nitro-generalrubyforge.org
h
ttp://rubyforge.org/mailman/listinfo/nitro-general
What does this error mean?
user name
2006-07-21 20:29:37
Hi,

the db file doesn't exist, but using a prepopulated db
doesn't seem to 
help. The directory in which the db file is supposed to live
have 777 
permissions.

I'll try using mysql to check whether this might be related
to directory 
permissions or not.

/lasso

________________________________________
Lars Olsson
lassolassoweb.se
http://www.lassoweb.se/



Bryan Soto skrev:
> On 7/21/06, Lars Olsson <lassolassoweb.se> wrote:
>> --- BEGIN DEBUG INFO ---
>> Error
>> Path: /guestbook
>> undefined local variable or method `ogmanager' for
Post:Class
>> Reload this page. Go to the referer or the home
page.
>> In file
'/usr/lib/ruby/gems/1.8/gems/og-0.30.0/lib/og/entity.rb' :
>>
> 
> That's odd. Does the database file exist? Does the
fastcgi process
> have write privs to it?
> 
> Bryan
> _______________________________________________
> Nitro-general mailing list
> Nitro-generalrubyforge.org
> h
ttp://rubyforge.org/mailman/listinfo/nitro-general
>
_______________________________________________
Nitro-general mailing list
Nitro-generalrubyforge.org
h
ttp://rubyforge.org/mailman/listinfo/nitro-general
What does this error mean?
user name
2006-07-21 21:54:02
On 7/21/06, Lars Olsson <lassolassoweb.se> wrote:
> Hi,
>
> the db file doesn't exist, but using a prepopulated db
doesn't seem to
> help. The directory in which the db file is supposed to
live have 777
> permissions.
>
> I'll try using mysql to check whether this might be
related to directory
> permissions or not.
>

Well, it seems that the class isn't being enchanted which
is the cause
of that missing ogmanager message. You might also try
setting the
global variable $DBG to true before you're call to
Og.setup. It will
generate a bit more logger messages and hopefully show
what's
happening. Assuming you have access to the error logs...

Bryan
_______________________________________________
Nitro-general mailing list
Nitro-generalrubyforge.org
h
ttp://rubyforge.org/mailman/listinfo/nitro-general
What does this error mean?
user name
2006-07-22 08:36:45
Hi,

mysql worked. It seems it wasn't enough to let Apache have
write 
priviliges to the file, it actually had to be the __owner__
of the file 
in order for sqlite to work properly. After letting Apache
create the db 
everything works as exspected.


Thanks for helping

/lasso

________________________________________
Lars Olsson
lassolassoweb.nu
http://www.lassoweb.nu/

Bryan Soto skrev:
> On 7/21/06, Lars Olsson <lassolassoweb.se> wrote:
>> Hi,
>>
>> the db file doesn't exist, but using a
prepopulated db doesn't seem to
>> help. The directory in which the db file is
supposed to live have 777
>> permissions.
>>
>> I'll try using mysql to check whether this might
be related to directory
>> permissions or not.
>>
> 
> Well, it seems that the class isn't being enchanted
which is the cause
> of that missing ogmanager message. You might also try
setting the
> global variable $DBG to true before you're call to
Og.setup. It will
> generate a bit more logger messages and hopefully show
what's
> happening. Assuming you have access to the error
logs...
> 
> Bryan
> _______________________________________________
> Nitro-general mailing list
> Nitro-generalrubyforge.org
> h
ttp://rubyforge.org/mailman/listinfo/nitro-general
> 

-- 
________________________________________
Lars Olsson
lassolassoweb.se
http://www.lassoweb.se/
_______________________________________________
Nitro-general mailing list
Nitro-generalrubyforge.org
h
ttp://rubyforge.org/mailman/listinfo/nitro-general
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )