Cannot connect to Mysql From Rails Application

69 views Asked by At

I am having my application and database hosted in EngineYard. Suddenly my application is down. I am getting this error when I looked into the log

Mysql2::Error: This connection is still waiting for a result, try again once you have the result

I tried to run some read queries from Rails console in Staging. This is working fine. Database queries returns the expected answers.

Also I checked out the Staging branch in local and checked. I could not reproduce the error in my local. So I assume there is no error in the code.

1

There are 1 answers

0
krishna On

Restarting the App Server worked for me.

Syntax:

ey ssh "/engineyard/bin/app_<appname> restart" -e your_env_name --app-servers

Reference: Engineyard command line: ey web restart not working