Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such port directory in .postgresql #58

Closed
sicktastic opened this issue Nov 28, 2014 · 3 comments
Closed

No such port directory in .postgresql #58

sicktastic opened this issue Nov 28, 2014 · 3 comments

Comments

@sicktastic
Copy link

I get an error message regards to postgresql when i run git push dokku master

remote: cat: /home/dokku/.postgresql/port_myappname: No such file or directory To dokku@myipaddress:myappname ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'dokku@myipaddress:myappname'

I linked postgresql database with the app through dokku postgresql:link appname databasename

Any idea how it can be fixed?

@andre-tebart
Copy link

I had the same error and I could fix it by changing line 30 in the pre-deploy script from

PG_PORT="cat $DOKKU_ROOT/.postgresql/port_$APP"

to

PG_PORT=5432

After that deployment worked as expected again.
The error occurs when the docker container for postgresql has exited. In this case the script tries to get port information from the port_appname file which does not exist. However, I could not figure out when and where this file is supposed to be created by the plugin.

@sicktastic
Copy link
Author

Thanks @Mortymus For me, I manually created the file in the .postgresql directory and it worked.

@rchrd2
Copy link

rchrd2 commented Jan 4, 2015

I created a fix for a similar issue. See this pull request.
#61
Does this fix your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants