I develop an application using "Ruby on Rails runtime" and "SQL Database Premium Plan" on Bluemix.
When I restart the application, it cannot connect to SQL Database.
The application was operating normally until yesterday.
How can I solve this problem?
Log Messages
2016-04-22T16:19:37.748+0900[App/0]ERRFailed to connect to [IXXXXXXX] due to: uncaught throw :"Connection failed: [IBM][CLI Driver] SQL1776N The command cannot be issued on an HADR database. Reason code = \"1\". SQLCODE=-1776" 2016-04-22T16:19:37.748+0900[App/0]ERRrake aborted! 2016-04-22T16:19:37.749+0900[App/0]ERR/home/vcap/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection' 2016-04-22T16:19:37.749+0900[App/0]ERR/home/vcap/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout' ...
This should be a temporary issue, it should start to work again shortly. If the problem persists you could open a support request using one of the following methods:
Please remember to provide the VCAP_SERVICES environment variable value to the SQL Database team.