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

Chart version missing but the blob file exists #635

Open
tomqwu opened this issue Oct 21, 2022 · 6 comments
Open

Chart version missing but the blob file exists #635

tomqwu opened this issue Oct 21, 2022 · 6 comments

Comments

@tomqwu
Copy link

tomqwu commented Oct 21, 2022

{
error: "no chart version found for web-redesign-1.2.2"
}

However, the azure blob file does exist

image

This randomly happens to many other charts, we don't have any redis cache, and memory usage seems fine in our pods

kubectl top pod -n chartmuseum
NAME                           CPU(cores)   MEMORY(bytes)   
chartmuseum-64ccf6448b-cjk5q   66m          52Mi            
chartmuseum-64ccf6448b-fbvgs   1m           46Mi  
@cbuto
Copy link
Contributor

cbuto commented Oct 24, 2022

@tomqwu if you aren't using Redis as an external cache, each ChartMuseum pod maintains an in-memory cache of the index file. If you are running multiple ChartMuseum replicas, they will each maintain their own index and will be out of sync.

You may be able to leverage the --cache-interval to scan the backend storage for changes on an interval to keep the index up to date or switch to using Redis for caching.

@tomqwu
Copy link
Author

tomqwu commented Oct 24, 2022

Single pod, multiple pods, the behaviour is the same. We also tried to redeploy with the new pod. Regardless of the number of pods, all pods show missing chart versions.

The total blob files is less than 1000 binaries, and total size is less than 6mb

@cbuto
Copy link
Contributor

cbuto commented Oct 25, 2022

@tomqwu what version of ChartMuseum are you running? I’d recommend upgrading to the latest version (if you aren’t already)

@tomqwu
Copy link
Author

tomqwu commented Oct 25, 2022

We tried the latest version, same behaviour.

@cbuto
Copy link
Contributor

cbuto commented Oct 28, 2022

if you want to sync whats in the backend storage with the index served by ChartMuseum, you can use the --cache-interval flag.

There was an issue in previous versions of ChartMuseum that could have caused this issue but upgrading to a new version may not retroactively "fix" the problem without using the cache-interval flag.

Once the index is up to date with whats in your backend storage and you are using the latest ChartMuseum, I'd be interested if you run into this again.

@tomqwu
Copy link
Author

tomqwu commented Oct 28, 2022 via email

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

No branches or pull requests

2 participants