Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multiple instances of the same helm chart causes 'cannot rename' error with 'Access is denied.' #768

Description

@strainovic

Operating system

Windows 10

Helmfile Version

0.151.0

Helm Version

v3.11.2

Bug description

Hi,

I have a single helm chart that I want to reuse and deploy under different names multiple times. Most of the time it works fine, but periodically it causes a 'cannot rename' error with 'Access is denied.'

I think some race condition is happening here as the helm chart versions are the same shell-ui-13.16.0.tgz

Error: link error: cannot rename C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz1033128112 to C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz: rename

Not sure about this suffix 1033128112 is this log, or not?

Maybe this is a helm issue, but not sure.

Thanks!

Example helmfile.yaml

not relevant

Error message you've seen (if any)

Upgrading release=admin-ui, chart=platform/shell-ui
Upgrading release=agent-ui, chart=platform/shell-ui
Release "admin-ui" has been upgraded. Happy Helming!
NAME: admin-ui
LAST DEPLOYED: Tue Mar 28 08:59:58 2023
NAMESPACE: devops-dev
STATUS: deployed
REVISION: 4
TEST SUITE: None

Listing releases matching ^admin-ui$
admin-ui        devops-dev      4               2023-03-28 08:59:58.362663 +0200 CEST   deployed        shell-ui-13.16.0        13.16.0    


UPDATED RELEASES:
NAME       CHART               VERSION
admin-ui   platform/shell-ui   13.16.0


FAILED RELEASES:
NAME
agent-ui
in ./helmfile.yaml: failed processing release agent-ui: command "C:\\Users\\nenad.strainovic\\bin\\helm.exe" exited with non-zero status:

PATH:
  C:\Users\nenad.strainovic\bin\helm.exe

ARGS:
  0: helm (4 bytes)
  1: upgrade (7 bytes)
  2: --install (9 bytes)
  3: agent-ui (8 bytes)
  4: platform/shell-ui (17 bytes)
  5: --version (9 bytes)
  6: 13.16.0 (7 bytes)
  7: --timeout (9 bytes)
  8: 600s (4 bytes)
  9: --cleanup-on-fail (17 bytes)
  10: --namespace (11 bytes)
  11: devops-dev (10 bytes)
  12: --values (8 bytes)
  13: C:\Users\NENAD~1.STR\AppData\Local\Temp\helmfile4266701918\devops-dev-agent-ui-values-6b6b8b4bb9 (96 bytes)
  14: --values (8 bytes)
  15: C:\Users\NENAD~1.STR\AppData\Local\Temp\helmfile1771750327\devops-dev-agent-ui-values-5f78f58fbf (96 bytes)
  16: --reset-values (14 bytes)
  17: --history-max (13 bytes)
  18: 1 (1 bytes)

ERROR:
  exit status 1

EXIT STATUS
  1

STDERR:
  Error: link error: cannot rename C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz1033128112 to C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz: rename C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz1033128112 C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz: Access is denied.

COMBINED OUTPUT:
  Error: link error: cannot rename C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz1033128112 to C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz: rename C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz1033128112 C:\Users\NENAD~1.STR\AppData\Local\Temp\helm\repository\shell-ui-13.16.0.tgz: Access is denied.

Steps to reproduce

helmfile -l name=admin-ui -l name=agent-ui sync --skip-deps

Working Helmfile Version

0.151.0

Relevant discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions