buildpacks / pack-orb

A CircleCI Orb for using Cloud Native Buildpacks in CircleCI
https://circleci.com/orbs/registry/orb/buildpacks/pack
Apache License 2.0
12 stars 8 forks source link

failed to write export report: open report.toml: permission denied #19

Closed jromero closed 3 years ago

jromero commented 3 years ago

Error logs:

[exporter] *** Images (0df58292c141):
[exporter]       index.docker.io/cnbs/circleci-sample:latest
[exporter] ERROR: failed to write export report: open report.toml: permission denied
ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 246
jromero commented 3 years ago

Update (posted on slack):

I found the cause (albeit not root cause) of the report.toml permissions denied issue on pack-orb. It’s essentially the same as this report from RHEL where the default installed version of docker is old. In this case the default machine circleci offers is using Ubuntu 14.04.5 LTS with docker 17.09.0-ce. Changing the machine option to ubuntu-2004:202010-01 then uses Ubuntu 20.04.1 LTS with docker 19.03.13 resolves the issue. It may be worth investigating further but for pack-orb this seems like it would be sufficient to move forward.

Here are some relevant logs: