Problem installing CSRF killer and Edge Rails

joel's Avatar

joel

07 Jun, 2007 04:23 AM

Hi, I'm installing CSRF killer for the first time, and the install has a problem. Any suggestions?

Much obliged! Cheers, Joel

Install CSRF:

% ./script/plugin install http://svn.techno-weenie.net/projects/plugins/csrf_killer/ % /sbin/service httpd restart % wget localhost => failure, it hangs and apache never returns any data

Uninstall CSRF:

% rm -r vendor/plugins/csrf_killer % /sbin/service httpd restart % wget localhost => success, as expected

Rick provided feedback to start using Edge Rails, and to provide specific error messages:

% rake rails:freeze:edge % /sbin/service httpd restart % wget localhost => failure, it hangs and apache never returns any data

Apache shows this error:

[Wed Jun 06 22:54:41 2007] [warn] FastCGI: (dynamic) server "/home/joel/rails/Tpr/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds

script/console shows this error:

Loading development environment. /home/adspace/adspace/rails/Tpr/config/environment.rb:22:

 NameError: uninitialized constant ActiveRecord

/home/adspace/adspace/rails/Tpr/vendor/rails/railties/lib/dispatcher.rb:90:

 NoMethodError: undefined method `attr_accessor_with_default' for #<Class:Dispatcher>

/home/adspace/adspace/rails/Tpr/lib/localization.rb:82:

 NameError: uninitialized constant Localization::ActionMailer

When I revert to Gem Rails, things work normally:

% rake rails:unfreeze % /sbin/service httpd restart % wget localhost => success, as expected

Any ideas or advice where to look next?

I'm a novice to CSRF and to Edge Rails, so your advice will be a huge help. Thanks!

Cheers, Joel

  1. 1 Posted by Rick on 07 Jun, 2007 05:45 AM

    Rick's Avatar

    I don't know if my plugin has anything to do with that. It just looks like your app isn't ready for edge rails.

    BTW: those apache errors are meaningless, just indicators that something's going wrong in the rails app. Check your rails logs.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac