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

question: Unable to create a cache file #348

Closed
2 of 3 tasks
matthisholleville opened this issue Apr 26, 2023 · 1 comment · Fixed by #350
Closed
2 of 3 tasks

question: Unable to create a cache file #348

matthisholleville opened this issue Apr 26, 2023 · 1 comment · Fixed by #350
Assignees
Labels
bug Something isn't working

Comments

@matthisholleville
Copy link
Contributor

Checklist:

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the bug.
  • I've included the version of Kubernetes and k8sgpt.

Subject of the issue

Your environment

  • Version of Kubernetes
  • Host OS and its version / If windows, is it WSL? MacOS
  • Version of k8sgpt 0.2.7

Steps to reproduce

k8sgpt analyze --explain

Expected behaviour

We should be able to create a cache file

Actual behaviour

Unable to create a cache file because the name is too long

Additional context / screenshots

k8sgpt analyze --namespace k8sgpt --explain 
Warning: Legacy config file at `/Users/matthisholleville/.k8sgpt.yaml` detected! This file will be ignored!
  50% |██████████████████████████████████████████████████████████████████████████████████████████████████                                                                                                   | (1/2, 5 it/min) [10s:10s]warning: error while testing if cache key exists: stat /Users/matthisholleville/Library/Caches/k8sgpt/openai-english-SW5ncmVzcyBrOHNncHQvZmFrZS1pbmdyZXNzIGRvZXMgbm90IHNwZWNpZnkgYW4gSW5ncmVzcyBjbGFzcy4gSW5ncmVzcyB1c2VzIHRoZSBzZXJ2aWNlIGs4c2dwdC9mYWtlLXNlcnZpY2Ugd2hpY2ggZG9lcyBub3QgZXhpc3QuIEluZ3Jlc3MgdXNlcyB0aGUgc2VjcmV0IGs4c2dwdC9mYWtlLXNlY3JldCBhcyBhIFRMUyBjZXJ0aWZpY2F0ZSB3aGljaCBkb2VzIG5vdCBleGlzdC4=: file name too long
error storing value to cache: open /Users/matthisholleville/Library/Caches/k8sgpt/openai-english-SW5ncmVzcyBrOHNncHQvZmFrZS1pbmdyZXNzIGRvZXMgbm90IHNwZWNpZnkgYW4gSW5ncmVzcyBjbGFzcy4gSW5ncmVzcyB1c2VzIHRoZSBzZXJ2aWNlIGs4c2dwdC9mYWtlLXNlcnZpY2Ugd2hpY2ggZG9lcyBub3QgZXhpc3QuIEluZ3Jlc3MgdXNlcyB0aGUgc2VjcmV0IGs4c2dwdC9mYWtlLXNlY3JldCBhcyBhIFRMUyBjZXJ0aWZpY2F0ZSB3aGljaCBkb2VzIG5vdCBleGlzdC4=: file name too long
 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (2/2, 7 it/min)   
@matthisholleville matthisholleville added the bug Something isn't working label Apr 26, 2023
@matthisholleville matthisholleville self-assigned this Apr 26, 2023
@AlexsJones
Copy link
Member

I actually didnt know this was changed this way.. Why would we ever need dynamic cache file names?

Could this be related k8sgpt-ai/k8sgpt-operator#7 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
2 participants