Code Monkey home page Code Monkey logo

Comments (8)

devjsaon avatar devjsaon commented on May 20, 2024 1

I was using the wrong URL for the buildpack.
Insted of usng the url in the command below
dokku config:set myapp BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-java/releases/tag/v66

I changed for
dokku config:set myapp BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-java.git

I'm now being able to deploy again. :)

Thank you @jkutner for following this with me. :)

from heroku-buildpack-java.

jkutner avatar jkutner commented on May 20, 2024

@devjsaon it looks like you might be using an old version of the buildpack--there is no line 43 in the current version of the Java buildpack.

Can you confirm that you're running the latest code in the master branch of this repo?

from heroku-buildpack-java.

devjsaon avatar devjsaon commented on May 20, 2024

hi @jkutner

thanks for you quick reply. :)

Yes I'm using old version of buildpack.
I added the following line to my procfile to force specific version of buildpack.

dokku config:set myapp BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-java/releases/tag/v33

and then I've tried to deploy again and I see same error.

Command below...
$ git push
Enter passphrase...
Counting objects: 170, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (92/92), done.
Writing objects: 100% (170/170), 20.01 KiB | 1.67 MiB/s, done.
Total 170 (delta 81), reused 133 (delta 57)
remote: Cloning into '/tmp/tmp.rSP1fxZgjk'...
remote: done.
remote: HEAD is now at d0a3138... procfile edited
remote: -----> Building myapp using buildstep...
remote: -----> Installing ENV in build environment ...
-----> Using u1000 to run an application
-----> Java app detected
remote: /tmp/buildpacks/heroku-buildpack-java/bin/compile: line 43: detect_java_version: command not found
To 127.0.0.1:myapp
! [remote rejected] master_desenv -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myapp'

from heroku-buildpack-java.

jkutner avatar jkutner commented on May 20, 2024

Can you use a newer version of the buildpack? v33 is almost 5 years old now.

from heroku-buildpack-java.

devjsaon avatar devjsaon commented on May 20, 2024

Yes I can, the point is how do I do that?
Before the problem, my procfile had only 1 line. - the one below
web: java -jar target/*.jar -Dserver.port=$PORT --spring.profiles.active=deploy
But since my deploys started to fail, I decided adding it in a try to resolve the problem.
I'm open to any suggestion or change.

from heroku-buildpack-java.

jkutner avatar jkutner commented on May 20, 2024

I think you update the buildpack by running:

$ dokku config:set myapp BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-java/releases/tag/v66

(note the v66)

from heroku-buildpack-java.

devjsaon avatar devjsaon commented on May 20, 2024

and the command will be inside my procfile, right?

from heroku-buildpack-java.

devjsaon avatar devjsaon commented on May 20, 2024

After running the config set from my ubuntu machine I'm still getting error.
Full command below

$ git push docker-d master_desenv:master -f
Enter passphrase for key '/c/Users/.ssh/id_rsa':
Counting objects: 170, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (86/86), done.
Writing objects: 100% (170/170), 20.02 KiB | 1.82 MiB/s, done.
Total 170 (delta 81), reused 146 (delta 63)
remote: Cloning into '/tmp/tmp.Oz7RqiUKC4'...
remote: done.
remote: HEAD is now at 88b86ab... Teste Julio
remote: -----> Building myapp using buildstep...
remote: -----> Installing ENV in build environment ...
-----> Using u1000 to run an application
-----> Fetching custom buildpack
To 127.0.0.1:myapp
! [remote rejected] master_desenv -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myapp'

from heroku-buildpack-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.