Closed gamedevsam closed 1 year ago
Does this reproduce on that server with an ssh push instead of http(s) push? If it does, it's probably not a Dokku Pro issue (though I can certainly help in either case).
I don't know, I wouldn't pay the hefty pricetag for dokku-pro if I wanted to deal with setting up all my SSH keys correctly for all the devices I use. The Git HTTP / HTTPS server is a big part of the reason I purchased dokku-pro.
I was able to get around the issue however, the problem was that the default values for SERVER_WRITE_TIMEOUT
and SERVER_READ_TIMEOUT
in /etc/default/dokku-pro
were configured too low and that caused the server to reboot before the push / deployment completed.
I set these two values to 1 hour and now things are working better:
SERVER_WRITE_TIMEOUT=3600
SERVER_READ_TIMEOUT=3600
Gotcha no worries. Was a bit late when I asked so my fault here!
The settings you set were meant exactly for this situation. On larger servers, there is more progress more often, so the server doesn't disconnect for inactivity.
I'm going to increase that default timeout for the next release to something more reasonable. Thanks for reporting!
This issue seems more like an opportunity to improve on the docs, as I suspect most people are probably not going to run dokku pro in VPS types of environments, but I found the instructions on setting up swap memory very useful, so it might be worth calling out these two vars there.
Description of problem
When I attempt to deploy via git push with HTTP remote, I get this error:
It's
Steps to reproduce
dokku-pro version
1.2.0
dokku report
root@ubuntu-s-1vcpu-1gb-nyc1-01:~# dokku report -----> uname: Linux ubuntu-s-1vcpu-1gb-nyc1-01 5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux -----> memory: total used free shared buff/cache available Mem: 976 809 73 3 93 45 Swap: 1999 378 1621 -----> docker version: Client: Docker Engine - Community Version: 23.0.2 API version: 1.42 Go version: go1.19.7 Git commit: 569dd73 Built: Mon Mar 27 16:16:18 2023 OS/Arch: linux/amd64 Context: default
-----> docker daemon info: Client: Context: default Debug Mode: true Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.10.4 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.17.2 Path: /usr/libexec/docker/cli-plugins/docker-compose scan: Docker Scan (Docker Inc.) Version: v0.23.0 Path: /usr/libexec/docker/cli-plugins/docker-scan
WARNING: No swap limit support -----> git version: git version 2.25.1 -----> sigil version: 0.9.0build+bc921b7 -----> herokuish version: herokuish: v0.5.41 buildpacks: heroku-buildpack-multi v1.2.0 heroku-buildpack-ruby v252 heroku-buildpack-nodejs v203 heroku-buildpack-clojure v90 heroku-buildpack-python v226 heroku-buildpack-java v72 heroku-buildpack-gradle v39 heroku-buildpack-scala v96 heroku-buildpack-play v26 heroku-buildpack-php v231 heroku-buildpack-go v171 heroku-buildpack-nginx v22 buildpack-null v3 -----> dokku version: dokku version 0.30.2 -----> plugn version: plugn: 0.12.0build+3a27594 -----> dokku plugins: 00_dokku-standard 0.30.2 enabled dokku core standard plugin 20_events 0.30.2 enabled dokku core events logging plugin app-json 0.30.2 enabled dokku core app-json plugin apps 0.30.2 enabled dokku core apps plugin builder 0.30.2 enabled dokku core builder plugin builder-dockerfile 0.30.2 enabled dokku core builder-dockerfile plugin builder-herokuish 0.30.2 enabled dokku core builder-herokuish plugin builder-lambda 0.30.2 enabled dokku core builder-lambda plugin builder-null 0.30.2 enabled dokku core builder-null plugin builder-pack 0.30.2 enabled dokku core builder-pack plugin buildpacks 0.30.2 enabled dokku core buildpacks plugin caddy-vhosts 0.30.2 enabled dokku core caddy-vhosts plugin certs 0.30.2 enabled dokku core certificate management plugin checks 0.30.2 enabled dokku core checks plugin common 0.30.2 enabled dokku core common plugin config 0.30.2 enabled dokku core config plugin cron 0.30.2 enabled dokku core cron plugin docker-options 0.30.2 enabled dokku core docker-options plugin domains 0.30.2 enabled dokku core domains plugin enter 0.30.2 enabled dokku core enter plugin git 0.30.2 enabled dokku core git plugin haproxy-vhosts 0.30.2 enabled dokku core haproxy-vhosts plugin logs 0.30.2 enabled dokku core logs plugin network 0.30.2 enabled dokku core network plugin nginx-vhosts 0.30.2 enabled dokku core nginx-vhosts plugin plugin 0.30.2 enabled dokku core plugin plugin postgres 1.33.0 enabled dokku postgres service plugin proxy 0.30.2 enabled dokku core proxy plugin ps 0.30.2 enabled dokku core ps plugin registry 0.30.2 enabled dokku core registry plugin repo 0.30.2 enabled dokku core repo plugin resource 0.30.2 enabled dokku core resource plugin run 0.30.2 enabled dokku core run plugin scheduler 0.30.2 enabled dokku core scheduler plugin scheduler-docker-local 0.30.2 enabled dokku core scheduler-docker-local plugin scheduler-null 0.30.2 enabled dokku core scheduler-null plugin shell 0.30.2 enabled dokku core shell plugin ssh-keys 0.30.2 enabled dokku core ssh-keys plugin storage 0.30.2 enabled dokku core storage plugin trace 0.30.2 enabled dokku core trace plugin traefik-vhosts 0.30.2 enabled dokku core traefik-vhosts plugin
Additional information
This appears to be an issue with the git pre-push hook or something. The actual build continues, as my dropplet's CPU usage remains high even after the git push command errors out.