When i use "git push heroku master" in django 3 I get a fatal error and "heroku open" I get an "Application error" - fatal-error

PS C:\Users\reddy\redcloud> git push heroku master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 4 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 386 bytes | 48.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote:
remote: -----> Python app detected
remote: -----> Installing SQLite3
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly

Related

Heroku Ruby Buildpack Detection Failure

I'm attempting to deploy my Ruby on Rails application that is currently on branch "rails_app" (as shown below). I have successfully deployed it before, but it is now not working with additional changes. When I manually look for buildpacks by running "heroku buildpacks," it indicates the correct one is there. [When I try to reinstall the buildpack, it also says it is already there] When I attempt to push to heroku I receive the failure to detect set buildpath as shown below.
Dougs-MBP-2:Rails_Application Doug$ heroku buildpacks
app_name Buildpack URL
heroku/ruby
Dougs-MBP-2:Rails_Application Doug$ git branch
gh-pages
master
* rails_app
update
Dougs-MBP-2:Rails_Application Doug$ git push heroku rails_app:master
Counting objects: 70, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (70/70), done.
Writing objects: 100% (70/70), 217.85 KiB | 0 bytes/s, done.
Total 70 (delta 46), 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/ruby.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to app_name.
remote:
To https://git.heroku.com/app_name.git
! [remote rejected] rails_app -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/app_name.git'
Thanks for your help.
It seems you are setting a custom buildpack: "https://codonbuildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz" but when I visit that link it says that no bucket with that name exists which means that heroku can't detect your custom buildpack and fails.
You can read more about how to specify custom buildpacks here: https://devcenter.heroku.com/articles/buildpacks#detection-failure
The ruby buildpack that heroku uses is on this page:
https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-ruby

Rails 5 Heroku - failed to detect set buildpack

I have a Rails 5 app that I'm trying to push to Heroku. The Heroku instance exists, git remotes are set up, etc. However I'm getting an error that it can't detect the buildpack, although it is defined. Any ideas?
$ heroku buildpacks
=== xx Buildpack URL
heroku/ruby
$ heroku buildpacks:set heroku/ruby
▸ The buildpack heroku/ruby is already set on your app.
$ git push heroku master
Counting objects: 1208, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1075/1075), done.
Writing objects: 100% (1208/1208), 25.04 MiB | 1.63 MiB/s, done.
Total 1208 (delta 634), reused 217 (delta 49)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to xx.
...
If the configured buildpack cannot handle your application (as determined by its detection script), you will receive an error. For example, Heroku’s Ruby buildpack expects a Gemfile to be present in the root folder of an application to correctly identify its type, but if the buildpack of an application is set to heroku/ruby and no Gemfile is present, the application will fail to build. Try check if your Gemfile is present in the root folder of your project.

remote rejected master -> master (pre-receive hook declined) heroku

I recieve an error while pushing rails code to heroku.
Counting objects: 20, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (20/20), 1.75 KiB | 0 bytes/s, done.
Total 20 (delta 15), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! Could not complete the action. Please try again later.
remote:
To https://git.heroku.com/dishcuss-api.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/dishcuss-api.git'
I have tried the few methods , including rollback heroku and git pull , but it didn't work for me.
just run the migration on heroku:
heroku run bundle exec rake db:migrate
I see 2 possible solutions to your problem:
It's possible that you didn't run your latest migrations on your Heroku server. In that case do heroku run rake db:migrate.
The other option is that this is caused by their SSL certificate that isn't valid any more as of a few hours ago; they're working on that.

Failed to deploy redmine to HEROKU due to Gemfile.lock nonexistence

I had this particular error upon pushing/deploying to Heroku
Counting objects: 92259, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19977/19977), done.
Writing objects: 48% (45054/92259), 13.63 MiB | 103 KiB/s
Writing objects: 100% (92259/92259), 23.82 MiB | 87 KiB/s, done.
Total 92259 (delta 72165), reused 90569 (delta 70774)
-----> Ruby/NoLockfile app detected
!
! Gemfile.lock required. Please check it in.
!
! Push rejected, failed to compile Ruby/NoLockfile app
To git#heroku.com:xiruki-task.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:xiruki-task.git'
I've tried to remove the Gemfile.lock and bundle install again but no luck.
Any workarounds will be appreciated.
run bundle install and that will generate your gemfile.lock. Then commit it and deploy to heroku

Heroku Grails buildpack: "Incompatible minimum and maximum heap sizes specified"

I'm getting an "Incompatible minimum and maximum heap sizes specified" compiler error trying to push a Grails application to Heroku. I don't know of a way to enable more verbose logging during compilation but I'd be happy to provide more info.
506 ita-signup $ git push heroku master
Counting objects: 31, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (21/21), 2.74 KiB, done.
Total 21 (delta 11), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Grails app detected
-----> Grails 2.0.4 app detected
WARNING: The Grails buildpack is currently in Beta.
-----> Executing grails -Divy.default.ivy.user.dir=/app/tmp/repo.git/.cache compile --non-interactive
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
! Failed to build app
! Heroku push rejected, failed to compile Grails app
To git#heroku.com:XXX-3359.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:XXX-3359.git'
Answer: I had set the user-env-compile feature. Using this to force valid heap settings worked:
$ heroku config:set JAVA_OPTS='-Xms384m -Xmx384m -Xss512k -XX:+UseCompressedOops'
$ git push heroku master
...
(success)

Resources