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

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

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

问题

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

PS C:\Users\user01> helm dependency list

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

Error: open C:\Users\user01\AppData\Local\History: Access is denied.

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

helm dependency build --debug
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.
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.
error reading AppData/Local/Comms/UnistoreDB/USS.jtx
helm.sh/helm/v3/pkg/chart/loader.LoadDir.func1
        helm.sh/helm/v3/pkg/chart/loader/directory.go:107
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:84
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.Walk
        helm.sh/helm/v3/internal/sympath/walk.go:42
helm.sh/helm/v3/pkg/chart/loader.LoadDir
        helm.sh/helm/v3/pkg/chart/loader/directory.go:115
helm.sh/helm/v3/pkg/downloader.(*Manager).loadChartDir
        helm.sh/helm/v3/pkg/downloader/manager.go:228
helm.sh/helm/v3/pkg/downloader.(*Manager).Build
        helm.sh/helm/v3/pkg/downloader/manager.go:87
main.newDependencyBuildCmd.func1
        helm.sh/helm/v3/cmd/helm/dependency_build.go:71
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.3.0/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.3.0/command.go:974
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.3.0/command.go:902
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
        runtime/proc.go:255
runtime.goexit
        runtime/asm_amd64.s:1581
PS C:\Users\user01>

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

PS C:\Users\user01> helm dependency list
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:

PS C:\Users\user01> helm dependency list

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

Error: open C:\Users\user01\AppData\Local\History: Access is denied.

some other times I get below error

helm dependency build --debug
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.
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.
error reading AppData/Local/Comms/UnistoreDB/USS.jtx
helm.sh/helm/v3/pkg/chart/loader.LoadDir.func1
        helm.sh/helm/v3/pkg/chart/loader/directory.go:107
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:84
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.symwalk
        helm.sh/helm/v3/internal/sympath/walk.go:105
helm.sh/helm/v3/internal/sympath.Walk
        helm.sh/helm/v3/internal/sympath/walk.go:42
helm.sh/helm/v3/pkg/chart/loader.LoadDir
        helm.sh/helm/v3/pkg/chart/loader/directory.go:115
helm.sh/helm/v3/pkg/downloader.(*Manager).loadChartDir
        helm.sh/helm/v3/pkg/downloader/manager.go:228
helm.sh/helm/v3/pkg/downloader.(*Manager).Build
        helm.sh/helm/v3/pkg/downloader/manager.go:87
main.newDependencyBuildCmd.func1
        helm.sh/helm/v3/cmd/helm/dependency_build.go:71
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.3.0/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.3.0/command.go:974
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.3.0/command.go:902
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
        runtime/proc.go:255
runtime.goexit
        runtime/asm_amd64.s:1581
PS C:\Users\user01>


PS C:\Users\user01> helm version --short
v3.12.0+gc9f554d
PS C:\Users\user01>

Getting one more error now:

PS C:\Users\user01> helm dependency list
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:

确定