由于权限错误,无法列出、更新或构建Helm依赖图表。

huangapple go评论99阅读模式
英文:

Unable to list, update or build helm dependency charts due to permission errors

问题

有时候我会遇到以下错误:

  1. PS C:\Users\user01> helm dependency list
  2. walk.go:74: found symbolic link in path: C:\Users\user01\AppData\Local\History resolves to C:\Users\user01\AppData\Local\Microsoft\Windows\History. Contents of linked file included and used
  3. Error: open C:\Users\user01\AppData\Local\History: Access is denied.

有时候我会遇到以下错误:

  1. helm dependency build --debug
  2. Error: error reading AppData/Local/Comms/UnistoreDB/USS.jtx: open C:\Users\user01\AppData\Local\Comms\UnistoreDB\USS.jtx: The process cannot access the file because it is being used by another process.
  3. helm.go:84: [debug] open C:\Users\user01\AppData\Local\Comms\UnistoreDB\USS.jtx: The process cannot access the file because it is being used by another process.
  4. error reading AppData/Local/Comms/UnistoreDB/USS.jtx
  5. helm.sh/helm/v3/pkg/chart/loader.LoadDir.func1
  6. helm.sh/helm/v3/pkg/chart/loader/directory.go:107
  7. helm.sh/helm/v3/internal/sympath.symwalk
  8. helm.sh/helm/v3/internal/sympath/walk.go:84
  9. helm.sh/helm/v3/internal/sympath.symwalk
  10. helm.sh/helm/v3/internal/sympath/walk.go:105
  11. helm.sh/helm/v3/internal/sympath.symwalk
  12. helm.sh/helm/v3/internal/sympath/walk.go:105
  13. helm.sh/helm/v3/internal/sympath.symwalk
  14. helm.sh/helm/v3/internal/sympath/walk.go:105
  15. helm.sh/helm/v3/internal/sympath.symwalk
  16. helm.sh/helm/v3/internal/sympath/walk.go:105
  17. helm.sh/helm/v3/internal/sympath.symwalk
  18. helm.sh/helm/v3/internal/sympath/walk.go:105
  19. helm.sh/helm/v3/internal/sympath.Walk
  20. helm.sh/helm/v3/internal/sympath/walk.go:42
  21. helm.sh/helm/v3/pkg/chart/loader.LoadDir
  22. helm.sh/helm/v3/pkg/chart/loader/directory.go:115
  23. helm.sh/helm/v3/pkg/downloader.(*Manager).loadChartDir
  24. helm.sh/helm/v3/pkg/downloader/manager.go:228
  25. helm.sh/helm/v3/pkg/downloader.(*Manager).Build
  26. helm.sh/helm/v3/pkg/downloader/manager.go:87
  27. main.newDependencyBuildCmd.func1
  28. helm.sh/helm/v3/cmd/helm/dependency_build.go:71
  29. github.com/spf13/cobra.(*Command).execute
  30. github.com/spf13/cobra@v1.3.0/command.go:856
  31. github.com/spf13/cobra.(*Command).ExecuteC
  32. github.com/spf13/cobra@v1.3.0/command.go:974
  33. github.com/spf13/cobra.(*Command).Execute
  34. github.com/spf13/cobra@v1.3.0/command.go:902
  35. main.main
  36. helm.sh/helm/v3/cmd/helm/helm.go:83
  37. runtime.main
  38. runtime/proc.go:255
  39. runtime.goexit
  40. runtime/asm_amd64.s:1581
  41. PS C:\Users\user01>

现在又出现了另一个错误:

  1. PS C:\Users\user01> helm dependency list
  2. Error: error reading AppData/Local/Google/Chrome/User Data/Default/Cache/Cache_Data/data_0: open C:\Users\user01\AppData\Local\Google\Chrome\User Data\Default\Cache\Cache_Data\data_0: The process cannot access the file because it is being used by another process.

有没有人遇到过这个问题?我无法安装任何具有依赖helm charts的helm charts。

我尝试通过右键单击删除和在PowerShell中强制删除这些打开的文件,但无法删除,因为文件正在被另一个进程(svchost.exe)处理。

我也尝试了多次重启机器,但没有效果。

我尝试了多个helm版本也不起作用。

我尝试运行helm list,build和update三个命令,它们都失败了。

英文:

Sometimes I get below error:

  1. PS C:\Users\user01> helm dependency list
  2. walk.go:74: found symbolic link in path: C:\Users\user01\AppData\Local\History resolves to C:\Users\user01\AppData\Local\Microsoft\Windows\History. Contents of linked file included and used
  3. Error: open C:\Users\user01\AppData\Local\History: Access is denied.

some other times I get below error

  1. helm dependency build --debug
  2. Error: error reading AppData/Local/Comms/UnistoreDB/USS.jtx: open C:\Users\user01\AppData\Local\Comms\UnistoreDB\USS.jtx: The process cannot access the file because it is being used by another process.
  3. helm.go:84: [debug] open C:\Users\user01\AppData\Local\Comms\UnistoreDB\USS.jtx: The process cannot access the file because it is being used by another process.
  4. error reading AppData/Local/Comms/UnistoreDB/USS.jtx
  5. helm.sh/helm/v3/pkg/chart/loader.LoadDir.func1
  6. helm.sh/helm/v3/pkg/chart/loader/directory.go:107
  7. helm.sh/helm/v3/internal/sympath.symwalk
  8. helm.sh/helm/v3/internal/sympath/walk.go:84
  9. helm.sh/helm/v3/internal/sympath.symwalk
  10. helm.sh/helm/v3/internal/sympath/walk.go:105
  11. helm.sh/helm/v3/internal/sympath.symwalk
  12. helm.sh/helm/v3/internal/sympath/walk.go:105
  13. helm.sh/helm/v3/internal/sympath.symwalk
  14. helm.sh/helm/v3/internal/sympath/walk.go:105
  15. helm.sh/helm/v3/internal/sympath.symwalk
  16. helm.sh/helm/v3/internal/sympath/walk.go:105
  17. helm.sh/helm/v3/internal/sympath.symwalk
  18. helm.sh/helm/v3/internal/sympath/walk.go:105
  19. helm.sh/helm/v3/internal/sympath.Walk
  20. helm.sh/helm/v3/internal/sympath/walk.go:42
  21. helm.sh/helm/v3/pkg/chart/loader.LoadDir
  22. helm.sh/helm/v3/pkg/chart/loader/directory.go:115
  23. helm.sh/helm/v3/pkg/downloader.(*Manager).loadChartDir
  24. helm.sh/helm/v3/pkg/downloader/manager.go:228
  25. helm.sh/helm/v3/pkg/downloader.(*Manager).Build
  26. helm.sh/helm/v3/pkg/downloader/manager.go:87
  27. main.newDependencyBuildCmd.func1
  28. helm.sh/helm/v3/cmd/helm/dependency_build.go:71
  29. github.com/spf13/cobra.(*Command).execute
  30. github.com/spf13/cobra@v1.3.0/command.go:856
  31. github.com/spf13/cobra.(*Command).ExecuteC
  32. github.com/spf13/cobra@v1.3.0/command.go:974
  33. github.com/spf13/cobra.(*Command).Execute
  34. github.com/spf13/cobra@v1.3.0/command.go:902
  35. main.main
  36. helm.sh/helm/v3/cmd/helm/helm.go:83
  37. runtime.main
  38. runtime/proc.go:255
  39. runtime.goexit
  40. runtime/asm_amd64.s:1581
  41. PS C:\Users\user01>
  42. PS C:\Users\user01> helm version --short
  43. v3.12.0+gc9f554d
  44. PS C:\Users\user01>

Getting one more error now:

  1. PS C:\Users\user01> helm dependency list
  2. Error: error reading AppData/Local/Google/Chrome/User Data/Default/Cache/Cache_Data/data_0: open C:\Users\user01\AppData\Local\Google\Chrome\User Data\Default\Cache\Cache_Data\data_0: The process cannot access the file because it is being used by another process.

Has anyone faced this issue ?I'm not able to install any helm charts with dependency helm charts.

I tried to delete those open files using right click delete and delete forcefully from Powershell but cannot because the file is handled by another process (svchost.exe).

Also tried rebooting the machines many times which didn't work.

I tried multiple helm versions as well didn't work.

I tried run helm list, build and update all three commands are failing.

答案1

得分: 1

使用方法:在运行时我忘记了CHART名称,请指定CHART名称,然后它应该可以正常工作。
helm dependency build CHART [flags]

英文:

Usage: I missed CHART name while running, please specify the CHART name and it should work.
helm dependency build CHART [flags]

huangapple
  • 本文由 发表于 2023年6月15日 09:20:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76478491.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定