Hi Marius, I am having the same problem with a couple of daemons im running. It not only causes the MySql server to 'go away' for the daemons but it also brings down all of my apps running on the server with the error
cannot connect to MySql server through socket "..../mysqld.sock" Is this possible? Am I right in thinking that if I use "ActiveRecord::Base.verify_active_connections! " in my daemons right before the AR queries, it will also solve the mysqld.sock problem? Cos if i stop the daemons, the apps run just fine.. Thanks! On May 20, 12:36 pm, Marius Mårnes Mathiesen <[email protected]> wrote: > On 20. mai. 2009, at 08.45, Thomas wrote: > > > my message-processing doesn't work anymore, and i have no clue, what's > > the problem. I have installed libmysql-client-dev and gemmysql2.7. > > > ActiveRecord::StatementInvalid:Mysql::Error:MySQLserverhasgone > >away: SELECT * FROM `repositories` WHERE (`repositories`.`hashed_path` > > = 'gitorious_repositories/testing/mainline') LIMIT 1 > > Oh dear, it seems yourMySQLconnection wentaway, this sometimes is > an issue with daemons using AR. You could configure yourMySQLserver > to have a longer timeout. Or you could force ActiveRecord to verify > that the connections are active: > > ActiveRecord::Base.verify_active_connections! > > for instance before messages are processed by the message processor. > > Regards, > - Marius --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Gitorious" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gitorious?hl=en -~----------~----~----~----~------~----~------~--~---
