It seems that your database is not well configured because the connection is getting lost in a very simple query ("SELECT * FROM `users` WHERE (`users`.`login` = 'thomastickle')").

I've seen this problem in a server of a friend hosted on Locaweb and he worked around adding this to config/database.yml:

production:
  reconnect: true

Hope that helps...

Rodrigo.

Em 21-03-2011 12:17, Jarrod Roberson escreveu:
I am still getting these strange errors, how do I fix this? It just
started up, nothing changed on the server that I know of, what do they
mean and how do I fix them? Errors like this on a production server
worries me. I am NOT a Ruby programmer, so if it takes some Ruby /
Rails efforts please spell it out.

Thanks in advance.

An exception occured in #<PushProcessor:0xbc20190
  @message=
  #<Stomp::Message:0xbc2256c
   @body=
    "{\"username\":\"thomastickle\",\"gitdir\":\"ac3/64e/
6159b428850536616b420168a77d7f1c8f\",\"message\":
\"0000000000000000000000000000000000000000
ba78c3c1c33433bef6a3143d30b17d9620c2d464 refs/heads/ArrisResponse\"}",
   @command="MESSAGE",
   @headers=
    {"persistent"=>"true",
     "destination"=>"/queue/GitoriousPush",
     "content-type"=>"text/plain; charset=UTF-8",
     "content-length"=>"200"}>>
!

{"username":"thomastickle","gitdir":"ac3/64e/
6159b428850536616b420168a77d7f1c8f","message":"0000000000000000000000000000000000000000
ba78c3c1c33433bef6a3143d30b17d9620c2d464 refs/heads/ArrisResponse"}

ActiveRecord::StatementInvalid: Mysql::Error: MySQL server has gone
away: SELECT * FROM `users` WHERE (`users`.`login` = 'thomastickle')
LIMIT 1

/var/www/gitorious/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract_adapter.rb:219:in `log'
        /var/www/gitorious/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:323:in `execute'
        /var/www/gitorious/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:608:in `select'
        /var/www/gitorious/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/database_statements.rb:7:in
`select_all_without_query_cache'
        /var/www/gitorious/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/query_cache.rb:62:in `select_all'
        /var/www/gitorious/vendor/rails/activerecord/lib/active_record/
base.rb:661:in `find_by_sql'


--
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

Reply via email to