Thank you Jim; Thanks Will. Finally got everything sorted, just had to restart the server to see the effect of the advice you guys gave me.
Cheers! On 05/11/2010, at 04:37, William Ross wrote: > On 5 Nov 2010, at 04:00, Obi wrote: > >> Ah, yes I remember being told to rake something in a set of instructions, >> every-time I do though I get this message (hadn't realized the rake was so >> important so I just skipped it, oops): >> >> rake aborted! >> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in >> `raw_load_rakefile' >> (See full trace by running task with --trace) >> >> what could this mean? I'm pretty sure I already have rake installed > > Hello Obi, > > Are you running rake from the root of your radiant application? Rake is > installed globally but the tasks are defined locally, so the normal sequence > would be like this: > > radiant /path/to/website > cd /path/to/website > rake db:migrate > > ... install some extensions, do something else... > > cd /path/to/website > rake db:migrate:extensions > > It must have worked once or your database wouldn't be there at all. > > best, > > will > > > >> >>> You get specific details right here. >>> It tells you the error (ActionView::TemplateError) >>> Then it tells you where >>> on line #1 of >>> vendor/extensions/stereotype/app/views/admin/_stereotype_td.html.haml: >>> And then shows you the actual code from that line >>> 1: - stereotype = page.custom_fields.find(:first, :conditions => >>> ["name = ?", "stereotype"]) >> >> - Okay, so your saying it's the stereotype extension causing this problem. >> >> I guess the solution will either be figuring out how to do the rake or >> figuring out how to uninstall the extension. For now it's probably better >> that I figure the rake out. >> >> Any idea what causes the rake to abort? >> >> Cheers >> >> On 05/11/2010, at 00:51, Jim Gay wrote: >> >>> You got it! >>> It's telling you that the application is looking in the database for a >>> table that isn't there: >>> >>> ActionView::TemplateError (PGError: ERROR: relation "custom_fields" >>> does not exist >>> >>> Do you need to migrate the database? >>> >>> rake db:migrate:extensions >>> >>> On Thu, Nov 4, 2010 at 11:45 PM, Obi <[email protected]> wrote: >>>> ah, I see... >>>> >>>> Could this section be the problem? Or should I look further up? >>>> >>>> Rendering /var/www/orgnot/public/500.html (500 Internal Server Error) >>>> >>>> >>>> Processing Admin::PagesController#index (for 98.143.144.89 at 2010-11-05 >>>> 03:16:47) [GET] >>>> Parameters: {"action"=>"index", "controller"=>"admin/pages"} >>>> Rendering template within layouts/application >>>> Rendering admin/pages/index >>>> >>>> ActionView::TemplateError (PGError: ERROR: relation "custom_fields" does >>>> not exist >>>> LINE 1: SELECT * FROM "custom_fields" WHERE ("custom_fields".page_id... >>>> ^ >>>> : SELECT * FROM "custom_fields" WHERE ("custom_fields".page_id = 1 AND >>>> (name = 'stereotype')) LIMIT 1) on line #1 of >>>> vendor/extensions/stereotype/app/views/admin/_stereotype_td.html.haml: >>>> 1: - stereotype = page.custom_fields.find(:first, :conditions => ["name = >>>> ?", "stereotype"]) >>>> 2: %td.published_status.status >>>> 3: = stereotype.value if stereotype >>>> >>>> >>>> vendor/extensions/stereotype/app/views/admin/_stereotype_td.html.haml:1:in >>>> `_run_haml_vendor47extensions47stereotype47app47views47admin47_stereotype_td46html46haml_locals_defaults_level_object_page_simple_stereotype_td' >>>> radiant (0.9.1) >>>> vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in >>>> `render' >>>> radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:90:in >>>> `non_haml' >>>> radiant (0.9.1) >>>> vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in >>>> `render' >>>> radiant (0.9.1) app/helpers/admin/regions_helper.rb:11:in `render_region' >>>> radiant (0.9.1) app/helpers/admin/regions_helper.rb:9:in `map' >>>> radiant (0.9.1) app/helpers/admin/regions_helper.rb:9:in `render_region' >>>> radiant (0.9.1) app/views/admin/pages/_node.html.haml:2:in >>>> `_run_haml_47usr47lib47ruby47gems47146847gems47radiant45046946147app47views47admin47pages47_node46html46haml_locals_level_node_object_page_simple' >>>> radiant (0.9.1) >>>> vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in >>>> `render' >>>> radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers.rb:90:in >>>> `non_haml' >>>> radiant (0.9.1) >>>> vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in >>>> `render' >>>> radiant (0.9.1) app/helpers/admin/node_helper.rb:6:in `render_node' >>>> radiant (0.9.1) app/views/admin/pages/index.html.haml:17:in >>>> `_run_haml_47usr47lib47ruby47gems47146847gems47radiant45046946147app47views47admin47pages47index46html46haml' >>>> radiant (0.9.1) >>>> vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:13:in >>>> `render' >>>> radiant (0.9.1) >>>> vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:13:in >>>> `render' >>>> radiant (0.9.1) lib/radiant/resource_responses.rb:18:in `response_for' >>>> radiant (0.9.1) app/controllers/admin/pages_controller.rb:16:in `index' >>>> radiant (0.9.1) >>>> vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:20:in `process' >>>> >>>> >>>> On 05/11/2010, at 00:37, Jim Gay wrote: >>>> >>>>> On Thu, Nov 4, 2010 at 11:24 PM, Obi <[email protected]> wrote: >>>>>> Thanks for the tip, I ran the error log (just for last 20 results) and I >>>>>> got the following message which I do not understand: >>>>>> >>>>>> passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork' >>>>>> passenger (2.2.15) >>>>>> lib/phusion_passenger/railz/application_spawner.rb:377:in >>>>>> `handle_spawn_application' >>>>>> passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in >>>>>> `__send__' >>>>>> passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in >>>>>> `main_loop' >>>>>> passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in >>>>>> `start_synchronously' >>>>>> passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in >>>>>> `start' >>>>>> passenger (2.2.15) >>>>>> lib/phusion_passenger/railz/application_spawner.rb:222:in `start' >>>>>> passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in >>>>>> `spawn_rails_application' >>>>>> passenger (2.2.15) >>>>>> lib/phusion_passenger/abstract_server_collection.rb:126:in >>>>>> `lookup_or_add' >>>>>> passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in >>>>>> `spawn_rails_application' >>>>>> passenger (2.2.15) >>>>>> lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' >>>>>> passenger (2.2.15) >>>>>> lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' >>>>>> passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in >>>>>> `spawn_rails_application' >>>>>> passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in >>>>>> `spawn_application' >>>>>> passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in >>>>>> `handle_spawn_application' >>>>>> passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in >>>>>> `__send__' >>>>>> passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in >>>>>> `main_loop' >>>>>> passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in >>>>>> `start_synchronously' >>>>>> >>>>>> Rendering /var/www/orgnot/public/500.html (500 Internal Server Error) >>>>>> >>>>>> Does this tell you guys anything? >>>>> >>>>> You need more than 20. Look through the errors to find something that >>>>> came from your application and that's how you can start tracking it >>>>> down. >>>>> There might be a line in there similar to this: >>>>> >>>>> /export/home/obi/radiant_app/vendor/extensions/something/something_extension.rb:13 >>>>> >>>>> That will point you to a file and a line number where the error >>>>> occurred. But you need to look further up the log. Try the last 200 >>>>> lines. >>>>> >>>>>> >>>>>> Cheers >>>>>> >>>>>> On 04/11/2010, at 23:35, Jim Gay wrote: >>>>>> >>>>>>> On Thu, Nov 4, 2010 at 8:00 PM, Obi <[email protected]> wrote: >>>>>>>> Hi Guys, >>>>>>>> >>>>>>>> For some reason I can no longer log into my Radiant admin Panel, when >>>>>>>> I try >>>>>>>> I get the following message: >>>>>>>> >>>>>>>> Application error >>>>>>>> >>>>>>>> Change this error message for exceptions thrown outside of an action >>>>>>>> (like >>>>>>>> in Dispatcher setups or broken Ruby code) in public/500.html >>>>>>>> >>>>>>>> I have no idea what caused this and would appreciate any help. If >>>>>>>> there is >>>>>>>> anymore info you need that would help you help me, then just ask. >>>>>>>> Thanks >>>>>>> >>>>>>> You'll need to login to your server and get details from the log. >>>>>>> >>>>>>> tail -900 log/production.log >>>>>>> >>>>>>> for the last 900 lines in the log (don't post them all here, please) >>>>>>> Or "tail -400", "tail -999999", etc >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Jim Gay >>>>>>> Saturn Flyer LLC >>>>>>> http://www.saturnflyer.com >>>>>>> 571-403-0338 >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Jim Gay >>>>> Saturn Flyer LLC >>>>> http://www.saturnflyer.com >>>>> 571-403-0338 >>>> >>>> >>> >>> >>> >>> -- >>> Jim Gay >>> Saturn Flyer LLC >>> http://www.saturnflyer.com >>> 571-403-0338 >> >
