Reputation: 375
I am facing this error only in deployment. In fact, in the deployment server, the rails db production
works fine. But on loading the app through the browser, this is the error I get:
Error message:
(Mysql2::Error)
Exception class:
PhusionPassenger::UnknownError
The production log just shows Connecting to database specified by database.yml
in a loop.
This is a shared hosting service, and they have been unable to figure out the problem. Any idea what could be the reason?
I have to mention that this app was working fine until 6 hours back, and there were no changes made to the app for more than a day.
Upvotes: 2
Views: 615
Reputation: 141
database.yml
file for any typos.timeout
and the pool
size.Look additionally here: http://davidlesches.com/blog/fixing-a-connecting-to-database-specified-by-database-yml-loop
Some further questions:
Upvotes: 1