I am using this "Heroku buildpack for Dart" from the following Github repository: https://github.com/igrigorik/heroku-buildpack-dartam .
I followed the set of commands to deploy the HTTP server built with Dart to Heroku and once I try to push the app to Heroku (git push heroku master) I receive the following error:
remote: End-of-central-directory signature not found. Either
remote: this file is not a zipfile, or it constitutes one disk of
remote: a multi-part archive. In the latter case the central
remote: directory and zipfile comment will be found on the last
remote: disk(s) of this archive.
remote: unzip: cannot find zipfile directory in one of dart-
remote: sdk.zip or dart-sdk.zip.zip, and cannot find dart-
remote: sdk.zip.ZIP, period.
remote: ! Push rejected, failed to compile Dart app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to testdartapp.
remote:
To https://git.heroku.com/testdartapp.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to
'https://git.heroku.com/testdartapp.git'
I am attaching a screenshot of my terminal output: Pushing app to Heroku
Any advice is much appreciated! Thanks in advance.
Related
I ma trying to add a react-flask-redis app to Heroku. How can I find the source of the issue. The structure of files are as follows:
root >
> frontend\
> backend\
> Procfile
However, it gives this error:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to new-app-9876.
remote:
To https://git.heroku.com/new-app-9876.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/new-app-9876.git'
I'm trying to push to a brand new Heroku page and I get this message
To https://git.heroku.com/sample.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sample.git'
I'm doing git push heroku main, I remember there was some trouble with this, can anyone help me to find the right command?
full error message:
-> Build succeeded!
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> web
remote:
remote: -----> Compressing...
remote: ! Compiled slug size: 685.2M is too large (max is 500M).
remote: ! See: http://devcenter.heroku.com/articles/slug-size
remote:
remote: ! Push failed
remote: !
remote: ! ## Warning - The same version of this code has already been built: 654c4ea20326327d2e8f610ceb00605f954e400c
remote: !
remote: ! We have detected that you have triggered a build from source code with version 654c4ea20326327d2e8f610ceb00605f954e400c
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote: !
remote: ! If you are developing on a branch and deploying via git you must run:
remote: !
remote: ! git push heroku <branchname>:main
remote: !
remote: ! This article goes into details on the behavior:
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to sample.
remote:
To https://git.heroku.com/sample.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sample.git'
this is my server folder: https://github.com/Yokubjon-J/react-chat-testSuite/tree/master/server. whenever i run "git push heroku master" i am getting the error below:
Total 866 (delta 199), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to my-first-react-chat-app.
remote:
To https://git.heroku.com/my-first-react-chat-app.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/my-first-react-chat-app.git'
I have browsed through several stackoverflow answers to no avail.
Any suggestions?
I set buildpacks, typed "web: node index.js" in procfile, but none of it helped
The error says "No default language could be detected for this app.
Try:
heroku buildpacks:set heroku/the-programming-language OR
heroku create myapp --buildpack heroku/the-programming-language
refer-https://devcenter.heroku.com/articles/buildpacks
I ran cd .. and then git subtree push --prefix server heroku master. this way the problem was solved. For reference: https://dev.to/stlnick/how-to-deploy-a-full-stack-mern-app-with-heroku-netlify-ncb
I was hosting my discord.py bot on Heroku. I'm trying to upload all my files to Heroku for host the bot but it gives me this:
remote: ! Push rejected, failed to compile Python app. remote:
remote: ! Push failed remote: Verifying deploy... remote: remote:
! Push rejected to rockstarbotxd1. remote: To
https://git.heroku.com/rockstarbotxd1.git ! [remote rejected] master
-> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/rockstarbotxd1.git'
I made some minor changes in Vapor / Swift code. Trying to push no Heroku, but get an error.
remote: -----> Downloading curl 7.52.1
remote: tar: This does not look like a tar archive
remote:
remote: gzip: stdin: not in gzip format
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now
remote: ! Push rejected, failed to compile curl app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to frozen-sea-46940.
remote:
To https://git.heroku.com/frozen-sea-46940.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/frozen-sea-46940.git'
Completed with errors, see above
I event called an vapor update, regenerated Xcode project but did not helped. Any idea?
Kukoda-MacBook-Pro:frozen-sea-46940 kukodajanos$ heroku buildpacks
=== frozen-sea-46940 Buildpack URLs
1. https://github.com/vzsg/heroku-buildpack-curl-http2.git
2. https://github.com/vapor-community/heroku-buildpack.git
Push your project to Heroku again, it will work now.
The issue was in the curl-http2 buildpack: the version it was trying to download no longer exists on Ubuntu's servers. I have resolved this just now.
Should you run into a similar problem in the future, and it's not a build error in your application code, please open an issue at the GitHub repo of the failing buildpack.