Fix Rancher App Repo β App Not Visible in Charts
DodaTech
Updated 2026-06-24
3 min read
In this tutorial, you'll learn about Fix Rancher App Repo. We cover key concepts, practical examples, and best practices.
You add a Helm chart repository in Rancher β Apps β Repositories. It shows Active β but when you browse Charts, none of that repo's charts are listed. Or the repository shows Pending with an error.
Wrong β
Repository:
Name: my-charts
URL: https://charts.mycompany.com
Type: Helm
Status: `Active`.
But **Apps β Charts** shows only Rancher's builtβin charts (Traefik, Monitoring, etc.). Your custom charts aren't there.
You refresh the page β still nothing.
## Right β
**Verify the index.yaml is accessible:**
```bash
curl -s https://charts.mycompany.com/index.yaml | head -20
Expected:
```yaml
apiVersion: v2
entries:
my-app:
- apiVersion: v2
appVersion: 1.0.0
created: ...
description: My custom application
If `index.yaml` is missing or malformed, Rancher can't parse it.
**Fix the repo URL:**
Rancher needs the URL that points directly to the Helm repository root (where `index.yaml` lives). Use:
```text
URL: https://charts.mycompany.com/stable
Not:
```text
URL: https://charts.mycompany.com/stable/my-app-1.0.0.tgz
**Refresh the repo:**
```bash
# In Rancher UI β Apps β Repositories
# Click the three dots β Refresh
Or force refresh via the CLI:
```bash
curl -X POST https://rancher.example.com/v3/catalog?action=refresh \
-H "Authorization: Bearer $RANCHER_TOKEN"
**Check if the repo needs authentication:**
```yaml
Repository:
Name: my-private-charts
URL: https://charts.mycompany.com/private
Type: Helm
Authentication: β
Username: deploy
Password: ****
After fixing, **Charts** shows:
π my-charts
π my-app (1.0.0)
π my-other-app (2.3.0)
**If the repo shows "Pending" with error:**
```bash
kubectl get cattlerepos -n cattle-system -o wide
Look for the error message in the status:
```yaml
status:
condition: "False"
message: "Failed to fetch index.yaml: 404 Not Found"
Fix the URL and reβcreate the repo.
## Root Cause
Rancher fetches the Helm repo's `index.yaml` and caches it. If the URL is wrong, the index is malformed, or authentication is required, Rancher can't list the charts. The repo shows `Active` because the HTTP connection succeeded, but the index <a href="/compiler-design/syntax-analysis/">parsing</a> failed.
## Prevention
- Host your charts on a proper Helm repository server (ChartMuseum, Harbor, GitHub Pages).
- Always test the index URL with `curl` before adding it to Rancher.
- Use **Git Repo** type for charts stored in a Git repository β Rancher builds the index automatically.
- Set a refresh interval so Rancher picks up new chart versions.
## Common Mistakes with app repo
1. **Placing the wildcard pattern first in case expressions, making all subsequent patterns unreachable**
2. **Using `head` and `tail` instead of pattern matching, causing runtime errors on empty lists**
3. **Forgetting that lazy evaluation defers computation until the value is forced, causing space leaks with unevaluated thunks**
These mistakes appear frequently in real-world RANCHER code. DodaTech's contributors have identified these patterns through analysis of open-source projects and production systems.
## Practice Exercise
**Write a pure function that safely divides two integers using Maybe, then test it with edge cases like division by zero and negative numbers.**
This exercise reinforces the concepts covered in this guide. Try implementing it before checking online solutions.
## FAQ
<details style="margin-bottom:12px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden"><summary style="cursor:pointer;padding:14px 18px;font-weight:600;font-size:1.05rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#1e293b">**Q: Can I use OCI (Open Container Initiative) registries for Helm charts?**</summary><div style="padding:14px 18px;color:#475569;line-height:1.7;background:#fff"><p>A: Yes β Rancher supports OCI repositories. Use <code>oci://registry.example.com/charts</code> as the URL.</p>
</div></details><details style="margin-bottom:12px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden"><summary style="cursor:pointer;padding:14px 18px;font-weight:600;font-size:1.05rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#1e293b">**Q: Why are my charts visible but deployments fail?**</summary><div style="padding:14px 18px;color:#475569;line-height:1.7;background:#fff"><p>A: The chart may depend on an API version not available on the cluster. Check the <strong>Kubernetes version</strong> requirement in <code>Chart.yaml</code>.</p>
</div></details><details style="margin-bottom:12px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden"><summary style="cursor:pointer;padding:14px 18px;font-weight:600;font-size:1.05rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#1e293b">**Q: How do I share a private repo across multiple Rancher clusters?**</summary><div style="padding:14px 18px;color:#475569;line-height:1.7;background:#fff"><p>A: Repositories are global β once added, they're available for all clusters in the Rancher instance.</p>
</div></details><details style="margin-bottom:12px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden"><summary style="cursor:pointer;padding:14px 18px;font-weight:600;font-size:1.05rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#1e293b">**Q: Can I use a local filesystem path as a repo?**</summary><div style="padding:14px 18px;color:#475569;line-height:1.7;background:#fff"><p>A: No β only HTTP(S) and OCI URLs are supported.</p>
</div></details>
---
*Chart repositories are covered in the [DodaTech Rancher App Delivery course](https://dodatech.com/courses/rancher).*
β Previous
Fix RainbowKit Wallet Button Errors
Next β
Fix Rancher Cluster Import β Imported Cluster Not Showing
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro