Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while proxying request: getting credentials: exec: executable gscloud.exe failed with exit code 1 #140

Closed
joejoe87577 opened this issue Apr 4, 2022 · 1 comment · Fixed by #173

Comments

@joejoe87577
Copy link

I'm running into an issue with file access when trying to use the gscould util after my system has been in hibernation mode for some time (usually 1-2 days).

kubectl version: 1.22.5
gscloud version: 0.11.0 (Git commit: 4ccd023)
go version: go1.16.12
OS: Windows 11 Build 22000.556

When trying to use kubectl with kubectl get namespaces I get the following error message:

Could not load cached kubeconfig: remove C:\Users\USERNAME\AppData\Local\gscloud\exec-credential\41e65f36-059d-4a14-93c8-c2fb29e490fc.json: The process cannot access the file because it is being used by another process.

Using the same version of the gscloud in the WSL2 and the utility works fine.

As a workaround I can delete the file and then reconnect using kubectl get namespaces and everything works as expected. Using the process explorer I couldn't find a process accessing the file.

@nvthongswansea
Copy link
Member

@joejoe87577 Thank you for reporting. We will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants