Kloadut / dokku-pg-plugin

PostgreSQL plugin for Dokku
201 stars 75 forks source link

cannot connect to plugin after hard restarting server #46

Closed codomore closed 10 years ago

codomore commented 10 years ago

Rebooting ubuntu from the command line works fine. But hard rebooting the VPS, loses the connection and the only way to reconnect is to create a new database. So basically, any time the system goes down, you lose connection to your database.

codomore commented 10 years ago

The plugin doesn't restart after the reboot. This happens on ubuntu 14.04 with the latest plugin version. I have tried an older version of the plugin on ubuntu 12.04 and it worked fine: it auto restared whenever the server rebooted.

codomore commented 10 years ago

The solution to this problem is that instead of : dokku postgresql:create , it should be : dokku postgresql:create . In the later case it works fine after hard rebooting. If you name your database anything other than your app name, then it wont reconnect after reboot. It should be changed in the readme.