From c1d901723d04b4cfa157acc73b9ce94e1b9f4d51 Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Wed, 29 Apr 2015 10:40:41 +0200 Subject: [PATCH 1/3] add section about curl timeout issues when pulling buildpack stuff while deploying. --- docs/troubleshooting.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index f8a2e23f5..d46f464f4 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -141,3 +141,31 @@ When specifying your port you may want to use something similar to: Please see https://github.com/progrium/dokku/issues/282 +*** + +__Symptom:__ Deployment fails because of slow internet connection, messages shows `gzip: stdin: unexpected end of file` + +__Solution:__ + +If you see output similar this when deploying: + +``` + Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-p451-default-cache.tgz -s -o - | tar zxf -' failed unexpectedly: + ! + ! gzip: stdin: unexpected end of file + ! tar: Unexpected EOF in archive + ! tar: Unexpected EOF in archive + ! tar: Error is not recoverable: exiting now +``` + +it might that the curl command that is supposed to fetch the buildpack (anything in the low megabyte file size range) takes too long to finish, due to slowish connection. To overwrite the default values (connection timeout: 3 seconds, total maximum time for operation: 30 seconds), edit `/home/dokku/ENV` like the following: + +``` +#/home/dokku/ENV +export CURL_TIMEOUT=600 +export CURL_CONNECT_TIMEOUT=30 +``` + +References +* https://github.com/progrium/dokku/issues/509 +* https://github.com/dokku-alt/dokku-alt/issues/169 From a36aaab686fe4ed288ab777a3a0b20547f8cc5c5 Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Wed, 29 Apr 2015 10:52:38 +0200 Subject: [PATCH 2/3] add section about contribution to README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9eb3c7eb5..c74d1e020 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,14 @@ Full documentation - including advanced installation docs - are available online You can use [Github Issues](https://github.com/progrium/dokku/issues), check [Troubleshooting](http://progrium.viewdocs.io/dokku/troubleshooting) in the documentation, or join us on [freenode in #dokku](https://webchat.freenode.net/?channels=%23dokku) +## Contribution + +After checking [Github Issues](https://github.com/progrium/dokku/issues), the [Troubleshooting Guide](http://progrium.viewdocs.io/dokku/troubleshooting) or having a chat with us on [freenode in #dokku](https://webchat.freenode.net/?channels=%23dokku), feel free to fork and create a Pull Request. +``` +<@savant> sometimes we dont merge because of discussion or maybe there is a better way +<@savant> but all prs welcome :) +``` + ## Sponsors Dokku is currently sponsored by the enterprise grade, multi-host PaaS project [Deis](http://deis.io/). From e9ddde8a8265d08c3c62ec6c1e28387ad4bfd1a5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 30 Apr 2015 08:35:25 +0200 Subject: [PATCH 3/3] improve contribution section in README as proposed by josegonzalez. --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c74d1e020..e7daafe53 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,8 @@ You can use [Github Issues](https://github.com/progrium/dokku/issues), check [Tr ## Contribution After checking [Github Issues](https://github.com/progrium/dokku/issues), the [Troubleshooting Guide](http://progrium.viewdocs.io/dokku/troubleshooting) or having a chat with us on [freenode in #dokku](https://webchat.freenode.net/?channels=%23dokku), feel free to fork and create a Pull Request. -``` -<@savant> sometimes we dont merge because of discussion or maybe there is a better way -<@savant> but all prs welcome :) -``` + +While we may not merge your PR as is, they serve to start conversations and improve the general dokku experience for all users. ## Sponsors