More Internal 500 errors in SVN version and WEBrick

Hi all,

I played around with the SVN version (on WEBrick). I have been able to
create new articles but encountered a 500 error when trying to save it.
The log output is show after my message. Editing and deleting articles
work fine though.

Regards,
Jin-Ho

Processing ContentController#new (for [ip address] at 2006-07-18
13:43:03) [POST]
Session ID: 471587cf16936fc5639dc575a4b91415
Parameters: {“article”=>{“allow_pings”=>“0”, “permalink”=>"",
“title”=>“test”, “body”=>“test”, “published”=>“1”,
“published_at(1i)”=>"", “extended”=>"", “published_at(2i)”=>"",
“published_at(3i)”=>"", “published_at(4i)”=>"", “published_at(5i)”=>"",
“text_filter”=>“none”, “allow_comments”=>“1”, “keywords”=>""},
“action”=>“new”, “categories”=>[“3”], “controller”=>“admin/content”,
“attachments”=>{“filename_1”=>#StringIO:0xb78bf12c}}

ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL
server during query: SELECT * FROM page_caches ):
.//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
log' .//vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:184:inexecute’
.//vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:336:in
select' .//vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:175:inselect_all’
.//vendor/rails/activerecord/lib/active_record/base.rb:390:in
find_by_sql' .//vendor/rails/activerecord/lib/active_record/base.rb:924:infind_every’
.//vendor/rails/activerecord/lib/active_record/base.rb:381:in find' .//vendor/rails/activerecord/lib/active_record/base.rb:461:indestroy_all’
.//app/models/page_cache.rb:10:in sweep_all' .//app/models/blog_sweeper.rb:15:inexpire_for’
.//app/models/blog_sweeper.rb:5:in after_save' .//vendor/rails/activerecord/lib/active_record/observer.rb:123:inupdate’
/usr/local/lib/ruby/1.8/observer.rb:185:in notify_observers' /usr/local/lib/ruby/1.8/observer.rb:184:innotify_observers’
.//vendor/rails/activerecord/lib/active_record/callbacks.rb:364:in
notify' .//vendor/rails/activerecord/lib/active_record/callbacks.rb:328:incallback’
.//vendor/rails/activerecord/lib/active_record/callbacks.rb:250:in
create_or_update' .//vendor/rails/activerecord/lib/active_record/base.rb:1392:insave_without_validation’
.//vendor/rails/activerecord/lib/active_record/validations.rb:724:in
save_without_transactions' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:insave’
.//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:91:intransaction’
.//vendor/rails/activerecord/lib/active_record/transactions.rb:118:in
transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:insave’
.//app/controllers/admin/content_controller.rb:90:in new_or_edit' .//app/controllers/admin/content_controller.rb:22:innew’
.//vendor/rails/actionpack/lib/action_controller/base.rb:910:in
perform_action_without_filters' .//vendor/rails/actionpack/lib/action_controller/filters.rb:368:inperform_action_without_benchmark’
.//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:inmeasure’
.//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' .//vendor/rails/actionpack/lib/action_controller/rescue.rb:82:inperform_action’
.//vendor/rails/actionpack/lib/action_controller/base.rb:381:in
process_without_filters' .//vendor/rails/actionpack/lib/action_controller/filters.rb:377:inprocess_without_session_management_support’
.//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in
process' .//vendor/rails/railties/lib/dispatcher.rb:38:indispatch’
.//vendor/rails/railties/lib/webrick_server.rb:115:in
handle_dispatch' .//vendor/rails/railties/lib/webrick_server.rb:81:inservice’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:instart’
.//vendor/rails/railties/lib/webrick_server.rb:67:in dispatch' .//vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
.//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
`require’
.//vendor/rails/railties/lib/commands/server.rb:30
script/server:3

Processing Base#new (for [ip address] at 2006-07-18 13:43:03) [POST]
Session ID: 471587cf16936fc5639dc575a4b91415
Parameters: {“article”=>{“allow_pings”=>“0”, “permalink”=>"",
“title”=>“test”, “body”=>“test”, “published”=>“1”,
“published_at(1i)”=>"", “extended”=>"", “published_at(2i)”=>"",
“published_at(3i)”=>"", “published_at(4i)”=>"", “allow_comments”=>“1”,
“published_at(5i)”=>"", “text_filter”=>“none”, “keywords”=>""},
“action”=>“new”, “categories”=>[“3”], “controller”=>“admin/content”,
“attachments”=>{“filename_1”=>#StringIO:0xb78bf12c}}

ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL
server during query: UPDATE sessions SET created_at = ‘2006-07-18
11:28:32’, sessid = ‘471587cf16936fc5639dc575a4b91415’, data =
‘BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ\nIgluYW1lIhJBZG1pbmlzdHJhdG9yIhZub3RpZnlfdmlhX2phYmJlcjAiFW5v\ndGlmeV92aWFfZW1haWwwIh1ub3RpZnlfd2F0Y2hfbXlfYXJ0aWNsZXMwIgdp\nZCIGMSIXbm90aWZ5X29uX2NvbW1lbnRzMCILamFiYmVyMCIKbG9naW4iCmFk\nbWluIg1wYXNzd29yZCItMzAzNTYzNjRmODEwNTU1ZTlhZjllMjYxY2M3MDUy\nOGZiZjQ2ZjY2YyIKZW1haWwiF3RhbmppbmhvQGdtYWlsLmNvbSIbbm90aWZ5\nX29uX25ld19hcnRpY2xlczAiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6\nOkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=\n’,
updated_at = ‘2006-07-18 13:43:03’ WHERE id = 4):
.//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
log' .//vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:184:inexecute’
.//vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:199:in
update' .//vendor/rails/activerecord/lib/active_record/base.rb:1723:inupdate_without_lock’
.//vendor/rails/activerecord/lib/active_record/locking.rb:33:in
update_without_callbacks' .//vendor/rails/activerecord/lib/active_record/callbacks.rb:274:inupdate_without_timestamps’
.//vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in
update' .//vendor/rails/activerecord/lib/active_record/base.rb:1718:increate_or_update_without_callbacks’
.//vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in
create_or_update' .//vendor/rails/activerecord/lib/active_record/base.rb:1392:insave_without_validation’
.//vendor/rails/activerecord/lib/active_record/validations.rb:724:in
save_without_transactions' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:insave’
.//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:91:intransaction’
.//vendor/rails/activerecord/lib/active_record/transactions.rb:118:in
transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:insave’
.//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in
update' .//vendor/rails/activerecord/lib/active_record/base.rb:794:insilence’
.//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in
update' .//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:314:inclose’
/usr/local/lib/ruby/1.8/cgi/session.rb:330:in close' .//vendor/rails/actionpack/lib/action_controller/base.rb:984:inclose_session’
.//vendor/rails/actionpack/lib/action_controller/base.rb:1026:in
process_cleanup_without_flash' .//vendor/rails/actionpack/lib/action_controller/flash.rb:147:inprocess_cleanup_without_filters’
.//vendor/rails/actionpack/lib/action_controller/filters.rb:439:in
process_cleanup_without_session_management_support' .//vendor/rails/actionpack/lib/action_controller/session_management.rb:126:inprocess_cleanup_without_components’
.//vendor/rails/actionpack/lib/action_controller/components.rb:182:in
process_cleanup' .//vendor/rails/actionpack/lib/action_controller/base.rb:385:inprocess_without_filters’
.//vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support' .//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:inprocess’
.//vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' .//vendor/rails/railties/lib/webrick_server.rb:115:inhandle_dispatch’
.//vendor/rails/railties/lib/webrick_server.rb:81:in service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in start' .//vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
.//vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' .//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:inrequire’
.//vendor/rails/railties/lib/commands/server.rb:30
script/server:3

Try ‘gem install mysql’ and see if that helps.

Scott

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs