Database is not initialized correctly

March 4, 2014 3.5k views
I have followed all the steps to installing Dokku One-Click DigitalOcean Image to Run a Ruby on Rails App. Everything works fine until i want to run dokku postgresql:link app_name database_name. I get this error "Database is not initialized correctly" and i have been stuck like this for a while.
5 Answers
I'm experiencing the same issue. Hopefully this is a recent development with a quick fix
Have you created your Postgres storage area with initdb?
eg. initdb -D /usr/local/pgsql/data (as postgres user)
I followed all the steps countless times but nothing seemed to work. After i pushed it to the server i ran dokku postgresql:create app_name again and went along with rest of the steps and it ended up working just fine.
I followed all the steps countless times but nothing seemed to work. After i pushed it to the server i ran dokku postgresql:create app_name again and went along with rest of the steps and it ended up working just fine.
I'm having this same issue. After i created my database i run the link command and get the 'Database is not initialized correctly' message.
Have another answer? Share your knowledge.