Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with "Unable to select a buildpack" #126

Closed
olalonde opened this issue Jan 24, 2016 · 15 comments
Closed

Build fails with "Unable to select a buildpack" #126

olalonde opened this issue Jan 24, 2016 · 15 comments
Assignees
Labels
Milestone

Comments

@olalonde
Copy link

Steps to reproduce

git clone https://github.com/RocketChat/Rocket.Chat.git
cd Rocket.Chat
deis create rocket
deis config:set BUILDPACK_URL=https://github.com/RocketChat/heroku-buildpack-meteor
# also tested
# deis config:set BUILDPACK_URL=https://github.com/RocketChat/heroku-buildpack-meteor.git
git push deis
$ kd logs rocket-git-465797e7
-----> Unable to select a buildpack

Additionally, any subsequent git push will fail unless rocket-git-465797e7 is manually deleted with kd delete pod rocket-git-465797e7 and the builder restarted with kd delete pod deis-builder-4bvr5 (or kd delete pod $(kd get pods | grep deis-builder | cut -f 1 -d " ")).

@olalonde
Copy link
Author

Might be related to #123 (environment variables not available during build)

@bacongobbler
Copy link
Member

Yes that sounds very relevant. BUILDPACK_URL is fetched during the build IIRC. I tested custom buildpacks earlier and they worked last week so maybe something recent broke it.

@arschles arschles self-assigned this Jan 24, 2016
@arschles arschles added the bug label Jan 24, 2016
@arschles arschles added this to the v2.0-beta1 milestone Jan 24, 2016
@arschles
Copy link
Member

@bacongobbler @olalonde looks like it regressed, as I tested custom buildpacks last week and they worked as well. Will look at it this week and add a test once it's fixed.

@arschles
Copy link
Member

@olalonde if you run builder with DEBUG=1, do you see a line like found custom buildpack URL xyz?

@olalonde
Copy link
Author

@arschles do you mean DEBUG=1 git push deis?

@olalonde
Copy link
Author

FWIW, it seems the buildpack I was trying to use doesn't work on CoreOS/docker anyways... maybe that's what was causing the problem? coreos/bugs#1095

@bacongobbler
Copy link
Member

That doesn't seem to be the problem. If we hit that issue, the buildpack wouldve been fetched and you wouldve seen log output from the build.

@arschles
Copy link
Member

@olalonde sorry, I meant running the builder Replication Controller with DEBUG set to "1" in the environment variables. You'd add the following under the env: section in the yaml:

- name: DEBUG
  value: "1"

@arschles
Copy link
Member

also, I believe what @bacongobbler says is right. The builder should start up a pod running a slugbuilder, which should be passed the custom buildpack URL in the environment. It looks like that is not happening for whatever reason.

Also, @olalonde which image tag of builder and deis/workflow are you using?

@olalonde
Copy link
Author

I installed it using helm:

$ helm list
--->    deis (deis 2.0.0-alpha) - For testing only!
--->    deis-lite (deis-lite 2.0.0-alpha) - For testing only!

@bacongobbler
Copy link
Member

@olalonde would you mind trying the following off master?

First, you'll need to install Helm v0.3, then run the following

helm uninstall deis
helm update
helm generate deis-dev
helm install deis-dev

Then try again and verify if you're seeing this on master. It's possible that this was fixed recently (2.0-alpha was released before New Year's, so in terms of velocity for 2.0-stable it's ancient) ;)

@olalonde
Copy link
Author

@bacongobbler yes happy to do so, just wasn't sure how to do it 👍

@smothiki
Copy link
Contributor

smothiki commented Feb 3, 2016

@olalonde are you still facing the issue.

@olalonde
Copy link
Author

olalonde commented Feb 3, 2016

Oh sorry, didn't have time to test... Guess you can close the issue and I'll comment here if it still fails when I have time to test it!

@arschles
Copy link
Member

arschles commented Feb 3, 2016

Thanks @olalonde. Closing

@arschles arschles closed this as completed Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants