Build fails with Meteor download on Heroku


#1

I am trying to run a demo setup on Heroku but stuck with build issue. I was able to run this locally on Mac OSX with no issues.

I cloned this repository. Pushed it to my own Git Repository.

In Heroku, I set the recommended buildpack as shown in Reaction Docs.

Now when I push the code to Heroku remote, the build logs show below error which also indicate push has been successful but the buildpack failed to download meteor:

remote: Git submodules detected, installing:
remote: 
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Reaction Commerce app detected
remote: ----> Clearing cache dir.
remote: -----> Installing meteor
remote: Downloading Meteor distribution
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote: Retrying download in 5 seconds...
remote:  !     Push rejected, failed to compile Reaction Commerce app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !	Push rejected to appname.
remote: 
To https://git.heroku.com/appname.git
 ! [remote rejected]     master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/appname.git

Not able to figure out why this would happen. I also enabled verbose on buildpack to see the version of meteor being installed is 1.8-rc.14. Not sure if this would be an issue.

Can somebody please help with any pointers to solving this?

Also just out curiosity why is Reaction using RC builds of meteor rather than stable builds?

---------- Edit 30 Sept -----------

I think the problem is due to both buildpack that Reaction has recommended & also due to URL that is denied by Meteor. The buildpack tries to install most recent version of Meteor including stable & release candidates. The buildpack then downloads a https://install.meteor.com/?release=1.8-rc.14 of that version which actually downloads & installs meteor.

It turned out that URL that script tries to hit returns access denied. Below is the URL:
https://static-meteor.netdna-ssl.com/packages-bootstrap/1.8-rc.14/meteor-bootstrap-os.linux.x86_64.tar.gz

When I hit same URL by just changing version to 1.7.0.5 which is stable version it works.

Only solution for now I think is to fork buildpack & make it install stable versions. If anyone could shed some light on this it could be more helpful rather than proceeding in a hack-ish way.

Thanks.


#2

I solved this issue by forking the original AdmitHub repository & merging Reaction specific code from swrdfish into my own repository & then using it in Heroku as buildpack.

Hope this helps others who encounter the same issue.