Application not configured correctly

The following error occurs while running the prepareserverdbs.sh script: Error : Application not configured correctly.

Explanation

When you run the prepareserverdbs.sh script, a series of configuration steps take place:
  • A Bluemix® app is created and started
  • A database service is created and bound to the app
  • A REST service is invoked in the app and the database schema is created

If there is a delay with the Bluemix app starting, the client is not able to invoke the reset interface, which could cause the error. Or, there could be an error related to the binding.

How to resolve

Run the same script again. If the same error occurs, verify that the Bluemix app is bound to the database service. If not bound, manually bind the database service to the app and then run the script again.