-
Notifications
You must be signed in to change notification settings - Fork 4
"permission denied" regression on helm_repo path during fab install
with 0.15.1
#228
Comments
Does this always occur with your component definition? or does it only happen intermittently? |
@timfpark can you provide the component.yaml that caused this? |
I see this as well with 0.15.3.
component.yaml
access.yaml
|
@MaaRak we've been having a hard time finding a stable reproduction scenario. Does your component reproduce the error 100% of the time? |
after downgraded to v0.15.0, I am still having this problem (only on WSL/windows, mac/linux seems to be ok).
component filename: "fabrikate-prometheus-operator"
type: static
path: "./manifests"
hooks:
before-install:
- echo 'installing prometheus-operator'
after-install:
- echo 'installed prometheus-operator'
subcomponents:
- name: "prometheus-operator"
type: helm
source: "https://github.com/helm/charts"
method: "git"
path: "stable/prometheus-operator"
version: "f4743a18769c5405413e1d6cd897bd9c877ce1b1"
|
@smartpcr does this reproduce 100% of the time on wsl? Never on mac/linux? |
@evanlouie I am on OSX only and this occurs 100% of the time. Update 1: Using the tmp folder pulled by fabrikate as the base and the same copy library, I can replicate the issue on my machine using a simple go app and copying the folder to the same location twice. I didn't use Fabrikate on 0.15.0, I just know that it's not working on my machine right now. I will continue to investigate and see if anything stands out on a fix. Update 2: I don't have the ability to copy a git repo with cli 'copy -R repo' to the same location twice due to the pack files being read only. |
I ran into this again today and think I isolated a repro case: https://github.com/timfpark/fabrikate-bug To reproduce:
$ fab install
INFO[05-09-2019 17:11:21] fab version 0.16.0
INFO[05-09-2019 17:11:21] 🔍 Using git: /usr/local/bin/git
INFO[05-09-2019 17:11:21] 🔍 Using helm: /usr/local/bin/helm
INFO[05-09-2019 17:11:21] 🔍 Using sh: /bin/sh
INFO[05-09-2019 17:11:21] 🔍 Using curl: /usr/bin/curl
INFO[05-09-2019 17:11:21] 👉 Initializing Helm
INFO[05-09-2019 17:11:21] 💾 Loading component.yaml
INFO[05-09-2019 17:11:21] 👉 Starting install for component: test
INFO[05-09-2019 17:11:21] 👈 Finished install for component: test
INFO[05-09-2019 17:11:21] 💾 Loading functions/component.yaml
INFO[05-09-2019 17:11:21] 👉 Starting install for component: functions
INFO[05-09-2019 17:11:21] 👈 Finished install for component: functions
INFO[05-09-2019 17:11:21] 👉 Starting install for component: stage-2
INFO[05-09-2019 17:11:21] 👉 Starting install for component: stage-1
INFO[05-09-2019 17:11:21] 🚁 Component 'stage-2' requesting helm chart in path 'https://github.com/timfpark/fabrikate-azure-function' from git repository 'functions'
INFO[05-09-2019 17:11:21] 🚁 Component requested latest commit: fast cloning at --depth 1
INFO[05-09-2019 17:11:21] 🚁 Component 'stage-1' requesting helm chart in path 'https://github.com/timfpark/fabrikate-azure-function' from git repository 'functions'
INFO[05-09-2019 17:11:21] 🏧 Previously cloned 'https://github.com/timfpark/fabrikate-azure-function@master:head' this install; reusing cached result
INFO[05-09-2019 17:11:21] 🚁 Cloning https://github.com/timfpark/fabrikate-azure-function@master:head => /var/folders/7j/4yvbvdvd7qbcrwddj828lxnh0000gn/T/6954ea71-8651-4262-80fa-2d47dda36e71
INFO[05-09-2019 17:11:21] 🚚 Copying /var/folders/7j/4yvbvdvd7qbcrwddj828lxnh0000gn/T/6954ea71-8651-4262-80fa-2d47dda36e71 => /Users/timothypark/dev/trailguru/dep-def-simple/functions/helm_repos/stage-2
INFO[05-09-2019 17:11:21] 🚚 Copying /var/folders/7j/4yvbvdvd7qbcrwddj828lxnh0000gn/T/6954ea71-8651-4262-80fa-2d47dda36e71 => /Users/timothypark/dev/trailguru/dep-def-simple/functions/helm_repos/stage-1
Error: open functions/helm_repos/stage-2/.git/objects/15/d3f268d8143a019e79ee007c695964282773e8: permission denied |
Describe the bug:
With 0.15.1, I am seeing an error when I do a
fab install
on a deployment that looks like:This does not occur with 0.15.0
To Reproduce:
Not sure if this is broadly reproducible or a race condition that I am running into.
Expected behavior:
Able to install without failure.
Screenshots:
Additional context:
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: