Bugs: Browse | Submit New | Admin

[#3882] Intermittent MySQL connection error.

Date:
2006-03-21 23:47
Priority:
4
Submitted By:
Andy Fragen (afragen)
Assigned To:
Matt Mower (mmower)
Category:
Interface
State:
Open
Summary:
Intermittent MySQL connection error.

Detailed description
Every once in a while when posting or publishing home page. I get the following error. A simple refresh brings back
the admin page.

ActiveRecord::StatementInvalid in Homepage#index

Mysql::Error: Lost connection to MySQL server during query: SELECT * FROM parameters WHERE (category = 'weblog' AND
name='title')  LIMIT 1
RAILS_ROOT: .

Application Trace | Framework Trace | Full Trace
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in
`log'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:180:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:322:in
`select'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:171:in
`select_all'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:431:in `find_by_sql'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:in `find'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:393:in `find'
#{RAILS_ROOT}/app/models/parameter.rb:81:in `get_value'
#{RAILS_ROOT}/app/models/parameter.rb:17:in `[]'
#{RAILS_ROOT}/app/controllers/homepage_controller.rb:144:in `configured'
#{RAILS_ROOT}/lib/commands/squib.rb:90

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-03-22 07:48
Sender: Matt Mower

On the face of it this sounds like a problem with the MySQL server
or possibly the client library. Is your MySQL server logging
anything unusual?

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item