Comments (8)
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.
@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.
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.
Can you use a newer version of the buildpack? v33
is almost 5 years old now.
from heroku-buildpack-java.
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.
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.
and the command will be inside my procfile, right?
from heroku-buildpack-java.
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)
- JFX RT HOT 4
- Query:How to enable gzip compression HOT 2
- Could not detect buildpack / Error compiling buildpack HOT 3
- mvn verify HOT 3
- Cache dir not automatically created? HOT 4
- Maven wrapper not used HOT 4
- Implement support for slices HOT 1
- Corporate Proxy HOT 2
- Install Java without Maven HOT 3
- pom.xml not in root HOT 3
- Readme Featured Image
- Cloud Foundry uploading everything? HOT 7
- No plugin found for prefix 'dependency' in the current project and in the plugin groups HOT 4
- Maven build doesn't use MAVEN_OPTS anymore. HOT 11
- Ambiguous Redirect for BUILDPACK_LOG_FILE
- Maven downloaded over HTTP
- Support Maven polyglot plugin HOT 1
- buildpack test script does not use run_mvn helper HOT 1
- Query : how to enable gzip compression? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-java.