"Push rejected, failed to compile Multipack app" when deploying heroku-buildpack-nodejs and heroku-buildpack-ruby-minimal - heroku

I'm using heroku-buildpack-multi:
BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
I'm trying to deploy with two buildpacks and am getting the following error:
Fetching repository, done.
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 325 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
! Push rejected, failed to compile Multipack app
Here are the contents of my .buildpack
https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/dpiddy/heroku-buildpack-ruby-minimal.git
It used to be intermittent but it's now happening every time I try to deploy.
Strangely enough, the official heroku ruby project seems to have gone missing...
https://github.com/heroku/heroku-buildpack-ruby
Note that it is still on this page: https://github.com/heroku

You need a package.json for the node buildpack. So, something like:
{
"private": true,
"name": "my-rad-proj",
"version": "0.1.0",
"engines": {
"node": "~0.10.21"
}
}
As well as the Gemfile for ruby.

Related

Heroku Git error, please try again shortly

I get this error when deploying my Heroku application from the CLI. It always worked fine, even today a moment ago. Now I'm getting this:
$ git push heroku main
Enumerating objects: 46, done.
Counting objects: 100% (46/46), done.
Delta compression using up to 8 threads
Compressing objects: 100% (31/31), done.
Writing objects: 100% (31/31), 4.62 KiB | 788.00 KiB/s, done.
Total 31 (delta 23), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! Heroku Git error, please try again shortly.
remote: ! See http://status.heroku.com for current Heroku platform status.
remote: ! If the problem persists, please open a ticket
remote: ! on https://help.heroku.com/tickets/new
remote: ! and provide the Request ID dee02a42-c0d2-4740-b9f3-cbfb58c7d95f
remote:
To https://git.heroku.com/vaquita-escolar.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/vaquita-escolar.git'
Advice is appreciated.
It was a temporary Heroku issue. It works now (today).

cant git push heroku master - buildpacks

well simply this is what i am getting;
sa#sa-VPCW11S1E:/opt/hubot/bin$ heroku buildpacks
=== young-everglades-12415 Buildpack URL
heroku/java
sa#sa-VPCW11S1E:/opt/hubot/bin$ sudo git push heroku master
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 2.14 KiB | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect set buildpack https://codon- buildpacks.s3.amazonaws.com/buildpacks/heroku/java.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to young-everglades-12415.
remote:
To https://git.heroku.com/young-everglades-12415.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/young- everglades-12415.git'
sa#sa-VPCW11S1E:/opt/hubot/bin$
although i did set a buildpack on the app git push failed because no buildpack detected ?
How can i resolve this, and is it actually the right steps towards deploying hubot ?
The heroku build packs still use the detection script to identify the language in use. Since Hubot is not a java project and it looks like you are using the java build pack, I suspect the detection script failed.
To fix this, try removing the buildpack.
% heroku buildpacks:remove heroku/java
After this I would try,
% git push heroku master
(Optional) I believe the rediscloud addon is needed for some scripts. You can add it with,
% heroku addons:create rediscloud
Then watch the logs heroku logs and see what happens.
There is a good deployment guide in hubot/deploying/heroku.md

Fail to deploy to Heroku: Argument list too long - bin/receive_untrusted

When I try to update my Java app on Heroku it fails with a "Argument list too long - bin/receive_untrusted". This happens before the actual build process starts and it's the only error that I'm getting. Of course it build perfect locally..
Counting objects: 95506, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (28630/28630), done.
Writing objects: 100% (95506/95506), 16.95 MiB | 2.82 MiB/s, done.
Total 95506 (delta 42943), reused 94815 (delta 42643)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: Build stream timed out, reverting to polling...
remote:
remote: Build output:
remote: Argument list too long - bin/receive_untrusted
remote: ! Push rejected to xxxxx.
remote:
To https://git.heroku.com/xxxx.git
! [remote rejected] develop -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/xxxxx.git'
The only thing that fixed it for me was resetting the Git repo in Heroku and pushing it from scratch, a described in this answer.

Host couchdb on heroku

I would like to host couchdb in a free heroku instance. I found here on stackoverflow an answer and it says, it is possible to host erlang code on heroku.
Now I had the idea, to host couchdb on heroku. But it doesn't work. Here is my try:
.>git clone https://github.com/apache/couchdb
.git
Cloning into 'couchdb'...
remote: Counting objects: 55066, done.
remote: Compressing objects: 100% (1582/1582), done.
remote: Total 55066 (delta 2125), reused 3094 (delta 1808)
Receiving objects: 100% (55066/55066), 26.56 MiB | 1.34 MiB/s, done.
Resolving deltas: 100% (36610/36610), done.
Checking out files: 100% (338/338), done.
.>cd couchdb
.\couchdb>explorer .
.\couchdb>git add .
.\couchdb>git commit -m "added proc file"
[master 9c6da00] added proc file
1 file changed, 1 insertion(+)
create mode 100644 Procfile
.\couchdb>heroku create couchdb-cl --region e
u --buildpack https://github.com/archaelus/heroku-buildpack-erlang
Creating couchdb-cl... done, region is eu
BUILDPACK_URL=https://github.com/archaelus/heroku-buildpack-erlang
https://couchdb-cl.herokuapp.com/ | git#heroku.com:couchdb-cl.git
Git remote heroku added
.\couchdb>git push heroku master
Enter passphrase for key '/c/Users/Imanuel/.ssh/id_rsa':
Initializing repository, done.
Counting objects: 40416, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12588/12588), done.
Writing objects: 100% (40416/40416), 17.50 MiB | 562 KiB/s, done.
Total 40416 (delta 27271), reused 40371 (delta 27237)
-----> Fetching custom git buildpack... done
! Push rejected, no Cedar-supported app detected
To git#heroku.com:couchdb-cl.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:couchdb-cl.git'
But it fails to push.
Here is the Procfile:
web: erl -pa ebin deps/*/ebin -noshell -boot start_sasl -s reloader -s couchdb
Anyone an idea or maybe another option to host a couchdb instance for free? :)
Heroku built their polyglot platform, which currently supports Ruby or Rails, Node.js, Java, Spring or Play, Python or Django, Clojure and Scala (source).
All other languages including Erlang are built using build packs. You can find Erlang build pack on github. Run the instructions from README and you should be good to go.

Heroku process not starting after deploying it

I'm pretty new to Heroku and I tried three times to deploy my code on it without success. I'm following this tutorial and I get stuck when it asks me to do heroku ps:scale web=1 on which I receive Scaling web processes... ! Resource not found. This sounds not really correct. All the previous steps seems working correctly. Here is the logs of the command git push heroku master:
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 279 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Node.js app detected
-----> Resolving engine versions
Using Node.js version: 0.4.7
Using npm version: 1.0.106
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
npm WARN nodeunit#0.5.1 package.json: bugs['web'] should probably be bugs['url']
> mongodb#0.9.7-3-5 install /tmp/build_2xv21ycwhho11/node_modules/mongodb
> node install.js
================================================================================
= =
= To install with C++ bson parser do <npm install mongodb --mongodb:native> =
= =
================================================================================
mongodb#0.9.7-3-5 ./node_modules/mongodb
> mongodb#0.9.7-3-5 install /tmp/build_2xv21ycwhho11/node_modules/mongodb
> node install.js
================================================================================
= =
= To install with C++ bson parser do <npm install mongodb --mongodb:native> =
= =
================================================================================
xmlhttprequest#1.3.0 /tmp/build_2xv21ycwhho11/node_modules/xmlhttprequest
redis#0.6.0 /tmp/build_2xv21ycwhho11/node_modules/redis
mongoose#2.5.5 /tmp/build_2xv21ycwhho11/node_modules/mongoose
mongodb#0.9.7-3-5 /tmp/build_2xv21ycwhho11/node_modules/mongodb
juggernaut#2.0.5 /tmp/build_2xv21ycwhho11/node_modules/juggernaut
socket.io#0.6.18 /tmp/build_2xv21ycwhho11/node_modules/juggernaut/node_modules/socket.io
redis#0.5.11 /tmp/build_2xv21ycwhho11/node_modules/juggernaut/node_modules/redis
node-static-maccman#0.5.3 /tmp/build_2xv21ycwhho11/node_modules/juggernaut/node_modules/node-static-maccman
optimist#0.1.9 /tmp/build_2xv21ycwhho11/node_modules/juggernaut/node_modules/optimist
jquery#1.6.3 /tmp/build_2xv21ycwhho11/node_modules/jquery
jsdom#0.2.13 /tmp/build_2xv21ycwhho11/node_modules/jquery/node_modules/jsdom
htmlparser#1.7.4 /tmp/build_2xv21ycwhho11/node_modules/jquery/node_modules/htmlparser
jade#0.20.1 /tmp/build_2xv21ycwhho11/node_modules/jade
html2jade#0.1.16 /tmp/build_2xv21ycwhho11/node_modules/html2jade
express#2.3.4 /tmp/build_2xv21ycwhho11/node_modules/express
connect#1.4.1 /tmp/build_2xv21ycwhho11/node_modules/express/node_modules/connect
qs#0.1.0 /tmp/build_2xv21ycwhho11/node_modules/express/node_modules/qs
mime#1.2.2 /tmp/build_2xv21ycwhho11/node_modules/express/node_modules/mime
ejs#0.4.2 /tmp/build_2xv21ycwhho11/node_modules/ejs
connect#1.8.5 /tmp/build_2xv21ycwhho11/node_modules/connect
qs#0.4.1 /tmp/build_2xv21ycwhho11/node_modules/connect/node_modules/qs
mime#1.2.4 /tmp/build_2xv21ycwhho11/node_modules/connect/node_modules/mime
formidable#1.0.8 /tmp/build_2xv21ycwhho11/node_modules/connect/node_modules/formidable
Dependencies installed
-----> Discovering process types
Procfile declares types -> (none)
-----> Compiled slug size is 7.0MB
-----> Launching... done, v4
http://stark-winter-4562.herokuapp.com deployed to Heroku
To git#heroku.com:stark-winter-4562.git
43e3a5e..84f9cd8 master -> master
I don't know if this can be of any help, but I guess this output is pretty different from the one seen in the tutorial, just in case.
Can anyone point out what's wrong, or what am I doing wrong? Thanks.
Your procfile needs to be called Procfile with a capitalised P

Resources