dokku: 496 & 497 NOT working for pre-receive hook declined

I used the following code, sometime last month, which fixed this issue

sudo wget -O /etc/init/docker.conf https://raw.github.com/dotcloud/docker/master/contrib/init/upstart/docker.conf
sudo service docker restart

But only temporarily. I tried to push again (4 weeks later) and I got the nasty error again.

 ! [remote rejected] master -> master (pre-receive hook declined)

This bug is like kryptonite to my patience. It appears that all issues for this happening in Dokku lead back to issues #496 & #497, and I have applied fixes in these issues without relief. I am running Nginx on DigitalOcean using Dokku v0.2.3 on Ubuntu 14.04 (w/ Docker 1.0)

Any tips?

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 23 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Another solution: This is a classic docker problem, docker containers can’t get access to the Internetin some (all, it seems to me) network environments. This manifests itself as buildout not able to grab dependencies for your app, very silently failing.

Just edit /etc/defaults/docker and uncomment the line::

DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

And sudo service docker restart, you’ll be golden. Hat tip to nottrobin for his solution: https://robinwinslow.co.uk/2014/08/27/fix-docker-networking/