paketo-buildpacks / builder

Apache License 2.0
12 stars 6 forks source link

pack cli with cloudfoundry/cnb:cflinuxfs3 on windows = permission denied #2

Closed JJWTimmer closed 5 years ago

JJWTimmer commented 5 years ago

I followed this tutorial, and got a choice of 3 buildpacks from pack:

  1. cloudfoundry/cnb:bionic
  2. cloudfoundry/cnb:cflinuxfs3
  3. heroku/buildpacks

At first I picked number 2, but after running pack build myapp it ends with this error. Then I set the default builder to 3, ran the command again, and it finished:

Status: Downloaded newer image for cfbuildpacks/cflinuxfs3-cnb-experimental:run
Using build cache image pack-cache-40a311b545d7
Warning: lifecycle version unknown
===> DETECTING
[detector] Trying group of 8...
[detector] ======== Results ========
[detector] Cloud Foundry OpenJDK Buildpack: pass
[detector] Cloud Foundry Build System Buildpack: pass
[detector] Cloud Foundry JVM Application Buildpack: pass
[detector] Cloud Foundry Azure Application Insights Buildpack: skip
[detector] Cloud Foundry Debug Buildpack: skip
[detector] Cloud Foundry Google Stackdriver Buildpack: skip
[detector] Cloud Foundry JMX Buildpack: skip
[detector] Cloud Foundry Procfile Buildpack: skip
===> RESTORING
[restorer] cache image 'pack-cache-40a311b545d7' not found, nothing to restore
===> ANALYZING
[analyzer] WARNING: image 'index.docker.io/library/myapp:latest' not found or requires authentication to access
[analyzer] WARNING: image 'index.docker.io/library/myapp:latest' has incompatible 'io.buildpacks.lifecycle.metadata' label
===> BUILDING
[builder] -----> Cloud Foundry OpenJDK Buildpack 1.0.0-M6
[builder] -----> OpenJDK JDK 11.0.2: Contributing to layer
[builder]        Downloading from https://java-buildpack.cloudfoundry.org/openjdk-jdk/bionic/x86_64/openjdk-11.0.2_09.tar.gz
[builder]        Verifying checksum
[builder]        Expanding to /layers/org.cloudfoundry.openjdk/openjdk-jdk
[builder]        Writing JAVA_HOME to build
[builder]        Writing JDK_HOME to build
[builder] -----> OpenJDK JRE 11.0.2: Contributing to layer
[builder]        Downloading from https://java-buildpack.cloudfoundry.org/openjdk/bionic/x86_64/openjdk-11.0.2_09.tar.gz
[builder]        Verifying checksum
[builder]        Expanding to /layers/org.cloudfoundry.openjdk/openjdk-jre
[builder]        Writing JAVA_HOME to shared
[builder]
[builder] -----> Cloud Foundry Build System Buildpack 1.0.0-M6
[builder] -----> Using wrapper
[builder]        Linking Cache to /home/vcap/.m2
[builder] -----> Compiled Application: Contributing to layer
[builder] fork/exec /workspace/mvnw: permission denied
[builder] Error: failed to : exit status 103

ERROR: failed with status code: 7
cf-gitbot commented 5 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/166357068

The labels on this github issue will be updated when the story is started.

chhhavi commented 5 years ago

@JJWTimmer What version of pack are you using?

JJWTimmer commented 5 years ago

v0.2.0, just downloaded it

chhhavi commented 5 years ago

@JJWTimmer So just reading your issue, you got the error with cloudfoundry/cnb:cflinuxfs3, not heroku/buildpacks, when you were using windows? I just ran the sample app with cloudfoundry/cnb:cflinuxfs3 with pack version 0.2.0 and it works on OSX.

JJWTimmer commented 5 years ago

Yip! I didn't try buildpack 1) only 2) and 3) and only 2) failed. Indeed on Windows 10 with Docker Desktop on Hyper V.

ameyer-pivotal commented 5 years ago

Hi @JJWTimmer, thanks for bringing this up. We're actually already working on this issue over in the pack CLI.

@chhhavi Feel free to close this issue and we'll track it over in the pack repo