Hi,
I just upgraded my website with rake to 0.9.0 version and got application error 
on the main page of website. Below you can see message from logs:
Processing SiteController#show_page (for 113.3.209.197 at 2010-06-26 00:32:52) 
[GET]
  Parameters: {"action"=>"show_page", "url"=>"/", "controller"=>"site"}

ActiveRecord::StatementInvalid (PGError: ERROR:  invalid input syntax for 
integer: "--- !ruby/object:Status 
id: 90
name: Scheduled
"
: SELECT * FROM "pages" WHERE ("pages"."status_id" = '--- !ruby/object:Status 
id: 90
name: Scheduled
') ):
  radiant (0.9.0) app/controllers/site_controller.rb:34:in 
`batch_page_status_refresh'
  radiant (0.9.0) app/controllers/site_controller.rb:20:in `show_page'
  radiant (0.9.0) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:20:in 
`process'
  passenger (2.2.9) lib/phusion_passenger/rack/request_handler.rb:92:in 
`process_request'
  passenger (2.2.9) lib/phusion_passenger/abstract_request_handler.rb:207:in 
`main_loop'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:400:in 
`start_request_handler'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:351:in 
`handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/utils.rb:184:in `safe_fork'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:349:in 
`handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:196:in 
`start_synchronously'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:163:in `start'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:209:in 
`start'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:262:in 
`spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:126:in 
`lookup_or_add'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:256:in 
`spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:80:in 
`synchronize'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:79:in 
`synchronize'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:255:in 
`spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:154:in 
`spawn_application'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:287:in 
`handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:196:in 
`start_synchronously'

Rendering /var/www/wind/data/www/netdedicated.net/public/500.html (500 Internal 
Server Error)

Is it my fault or just software bug? How can I avoid this problem?

Regards,
Artem Zhirkov


Reply via email to