kandanapp / kandan

Kandan is an Open Source Alternative to HipChat
GNU Affero General Public License v3.0
2.72k stars 408 forks source link

Heroku deployment fails #357

Closed pimpin closed 10 years ago

pimpin commented 10 years ago

I follow the deploy notice but it fails until I specify ruby vesrion in Gemfile. linked to this PR

~/dev/kandan$ heroku apps:info 
=== xxxxxx
Git URL:       git@heroku.com:xxxxx.git
Owner Email:   pierrem@apido.org
Region:        eu
Stack:         cedar
Web URL:       http://xxxxxx.herokuapp.com/
  ~/dev/kandan$ git push heroku master
Initializing repository, done.
Counting objects: 6759, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4124/4124), done.
Writing objects: 100% (6759/6759), 6.54 MiB | 31.00 KiB/s, done.
Total 6759 (delta 2501), reused 6722 (delta 2468)

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
       New app detected loading default bundler cache
 !
 !     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-p481-default-cache.tgz -s -o - | tar zxf -' failed unexpectedly:
 !     
 !     gzip: stdin: unexpected end of file
 !     tar: Child returned status 1
 !     tar: Exiting with failure status due to previous errors
 !

 !     Push rejected, failed to compile Ruby app

To git@heroku.com:xxxxxxx.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:xxxxxx.git'
scouttyg commented 10 years ago

Hey, sorry to hear you had problems!

I decided to go step by step through the deploy process to see if I ended up failing everywhere. Here's the video of that deploy from cloning to pushing to heroku (note -- Youtube kinda gives a bad resolution even when you set it at 720p, so jump forward then back if you get a low quality picture at first):

https://www.youtube.com/watch?v=Aw-ok8nwSJE

Here's also my heroku config / RVM info:

kandan-app-info

From what I see it looks like it deployed fine, and it deployed using Ruby 2.0 as well. Was there some custom configuration that was done for your version of the app? Let's try to figure out what was the cause of the failure.

pimpin commented 10 years ago

Thanks for help. I've tried to reproduce it with a new cloned repo and new Heroku app and deploy was successful... I also try to do it with HEAD on fa91652e49341918120b7e453875c7e109494919 as it was when I failed and it pass again... I try again with eu region app and pass again... so I can't reproduce it. We should close it. Sorry for wrong issue.