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

v0.27.0: ERROR: failed to create launch cache: permission denied #1467

Closed
robdimsdale opened this issue Jun 23, 2022 · 5 comments
Closed

v0.27.0: ERROR: failed to create launch cache: permission denied #1467

robdimsdale opened this issue Jun 23, 2022 · 5 comments
Assignees
Labels
type/bug Issue that reports an unexpected behaviour.

Comments

@robdimsdale
Copy link
Contributor

Summary

When upgrading from pack 0.26.0 to pack 0.27.0 previously-successful builds are now failing with the following error:

[analyzer] ERROR: failed to create launch cache: initializing staging directory '/launch-cache/staging': mkdir /launch-cache/staging: permission denied

Example build failing in CI: https://github.com/paketo-buildpacks/jammy-tiny-stack/pull/18/checks

The buildpacks involved are:

  • 'paketo-buildpacks/go-dist' version '1.2.1' (API 0.7)
  • 'paketo-community/build-plan' version '0.1.0' (API 0.6)
@robdimsdale robdimsdale added status/triage Issue or PR that requires contributor attention. type/bug Issue that reports an unexpected behaviour. labels Jun 23, 2022
robdimsdale added a commit to paketo-buildpacks/github-config that referenced this issue Jun 23, 2022
- while we investigate build failures. See buildpacks/pack#1467
sophiewigmore pushed a commit to paketo-buildpacks/github-config that referenced this issue Jun 23, 2022
- while we investigate build failures. See buildpacks/pack#1467
@edmorley
Copy link
Contributor

We encountered this too, until we upgraded the lifecycle in our builder image from 0.14.0 to 0.14.1.

eg:
https://app.circleci.com/pipelines/github/heroku/buildpacks-jvm/1061/workflows/dd3c6153-ebc2-4ab5-aeb4-589aa5bcda29/jobs/13385

@edmorley
Copy link
Contributor

xref #1417 and buildpacks/lifecycle#847

@natalieparellano
Copy link
Member

@jromero should we call this out in the release notes?

@jromero
Copy link
Member

jromero commented Jun 23, 2022

At minimum, that sounds reasonable.

@natalieparellano could you provide some context as to what is happening for those that are curious? Also, are there any strategies we can think of to mediate this a bit better?

cc: @dfreilich

@jromero jromero added status/in-progress Issue or PR that is currently in progress. and removed status/triage Issue or PR that requires contributor attention. labels Jun 24, 2022
@jromero jromero changed the title Pack v0.27.0 fails to build v0.27.0: ERROR: failed to create launch cache: permissions denied Jun 24, 2022
@jromero jromero changed the title v0.27.0: ERROR: failed to create launch cache: permissions denied v0.27.0: ERROR: failed to create launch cache: permission denied Jun 24, 2022
@jromero jromero self-assigned this Jun 24, 2022
@jromero
Copy link
Member

jromero commented Jun 24, 2022

After further investigation and consideration, given that this bug is only present in very specific set of conditions and the actual bug resides elsewhere (lifecycle 0.14.0), we don’t believe that there are any changes necessary for pack.

We have updated the release notes to call out the known issue (the incompatibility with lifecycle 0.14.0) and possible workarounds.

As builders get updated with the latest patched lifecycle version this issue should naturally become less relevant.

@jromero jromero closed this as completed Jun 24, 2022
@jromero jromero removed the status/in-progress Issue or PR that is currently in progress. label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issue that reports an unexpected behaviour.
Projects
None yet
Development

No branches or pull requests

4 participants