Troubleshooting#

Common issues and solutions.

Site Stuck in “Pending” or “Syncing”#

Pending means the syncer has not reported a result yet. Syncing means a clone is running. Check the Synced condition:

kubectl get staticsite <name> -o jsonpath='{.status.conditions[?(@.type=="Synced")]}'
kubectl -n kup6s-pages logs -l app.kubernetes.io/component=syncer --tail=100

A site that stays Syncing for a long time while the syncer pod restarts was most likely killed during the clone. Look for OOMKilled in kubectl -n kup6s-pages describe pod -l app.kubernetes.io/component=syncer. See “Sync Failures” below.

Sync Failures#

The syncer sets Synced=False with one of these reasons. The site keeps serving its last good content.

ReasonMeaningWhat to do
CloneFailedgit clone failed, for example because of an unknown branch, an unreachable host or a redirected URLCheck spec.branch and spec.repo. The message contains git’s error. git does not follow HTTP redirects, so use the final URL of the repository, for example after a project rename or with the .git suffix some servers require
FetchFailedUpdating an existing clone failedUsually network or server trouble. The syncer retries every interval
AuthFailedThe secret is missing or the server rejected the credentialsSee “Private Repo Authentication Fails”
SubpathMissingspec.path does not exist on the branchFix spec.path
DiskFullThe sites volume has less free space than --min-free-percentGrow the PVC or remove unused sites
TimeoutA git operation took longer than --git-timeoutRaise syncer.gitTimeout for very large repositories
InvalidSpecrepo is not allowed by --allowed-hosts, or path is invalidFix the StaticSite
LegacyPathInUseAfter an upgrade from a version before 1.0.0-rc.7, a site in another namespace, named like this site’s namespace, still serves from its legacy link /sites/<namespace>Nothing; cleanup removes the link once that site has moved, usually within two sync intervals. See Moving from the layout before 1.0.0-rc.7

Broken or interrupted clones need no manual cleanup. The syncer detects them, including a lock file left by a fetch that timed out or was killed, deletes the leftovers, and clones again on the next sync.

The syncer emits a SyncFailed event when a site starts failing and a SyncRecovered event when it recovers:

kubectl get events --field-selector involvedObject.name=<name>

With metrics.prometheusRule.enabled, these alerts fire:

  • PagesSiteSyncFailing: the site has not been synced for metrics.prometheusRule.failingFor (default 15m).
  • PagesSiteSyncStale: no successful sync for staleAfterSeconds, for example because the syncer is down.
  • PagesVolumeLow: the sites volume is running full.

Syncer Runs Out of Memory#

Sites with a path need little memory, because only that directory is downloaded. Sites with path: / and repositories above about 1 GB can exceed the default limit of 256Mi. Raise syncer.resources.limits.memory.

Certificate Not Ready#

TLS certificate is not being issued.

Check cert-manager:

kubectl get certificate -n kup6s-pages
kubectl describe certificate my-website-tls -n kup6s-pages

Common causes:

  • DNS not propagated yet
  • Let’s Encrypt rate limits
  • ClusterIssuer misconfigured
  • HTTP-01 challenge failing (check Traefik ingress)

404 Errors#

Site shows 404 for all pages.

1. Verify the site directory exists:

kubectl exec -n kup6s-pages $(kubectl get pod -n kup6s-pages -l app.kubernetes.io/component=syncer -o name) -- ls -la /sites/pages/

Sites live in /sites/<namespace>/<name>; status.contentPath names the path nginx serves.

2. Check if the repo was cloned successfully:

kubectl get staticsite my-website -n pages -o yaml

3. Check the StaticSite status:

kubectl describe staticsite my-website -n pages

Common causes:

  • Repo not yet cloned (check status.phase)
  • Wrong path configured (subpath doesn’t exist in repo)
  • nginx not running or not mounting PVC

Private Repo Authentication Fails#

Syncing fails with “authentication required” or “permission denied”.

1. Verify the RBAC is set up:

kubectl get rolebinding pages-syncer-secrets -n pages

If missing, see Private Repositories for RBAC setup.

2. Verify the Secret exists and has the correct key:

kubectl get secret my-repo-token -n pages -o yaml

3. Test the token manually:

git clone https://git:YOUR_TOKEN@forgejo.example.com/org/repo.git

Force Re-sync#

Trigger a manual sync using the site’s sync token:

# Get the sync token from the StaticSite status
TOKEN=$(kubectl get staticsite my-website -n pages -o jsonpath='{.status.syncToken}')

# Trigger sync with authentication
curl -H "X-API-Key: $TOKEN" -X POST https://webhook.pages.example.com/sync/pages/my-website

Webhook Not Triggering#

Pushes to the repository don’t trigger updates.

1. Check the syncer logs:

kubectl logs -n kup6s-pages -l app.kubernetes.io/component=syncer

2. Verify webhook IngressRoute exists:

kubectl get ingressroute -n kup6s-pages

3. Verify webhook secret matches: The secret configured in Helm values must match the secret configured in your Git provider.

4. Test manually:

curl -v https://webhook.pages.example.com/health

Pods Not Starting#

Components fail to start or crash loop.

Check pod status:

kubectl get pods -n kup6s-pages
kubectl describe pod <pod-name> -n kup6s-pages

Common causes:

  • Image pull errors (check imagePullSecrets)
  • PVC not bound (check storage.storageClassName)
  • Resource limits too low
  • Security context issues (non-root user, read-only filesystem)
  • An nginx pod stays Pending with the event didn't match pod topology spread constraints: the nodes that can take the pod already run a replica, and another schedulable node cannot take it, for example because it lacks free resources. With minDomains: 2 this is expected while only one node is schedulable. See Architecture

View All Resources#

List all resources created by kup6s-pages:

# StaticSites
kubectl get staticsites -A

# Generated Traefik resources
kubectl get ingressroute,middleware -n kup6s-pages

# Certificates
kubectl get certificate -n kup6s-pages

# Core components
kubectl get deploy,svc,pvc -n kup6s-pages

Version 1.0.0-rc.8 | Built 2026-11-18
Copyright 2026 Klein & Partner KG, Völs, Austria and contributors