When running kURL installer script and hit with error
An error occurred on line x
E.g.
configmap/kotsadm-restore-config created
secret/cloud-credentials created
deployment.apps/velero created
backupstoragelocation.velero.io/default created
service/kubernetes labeled
An error occurred on line 89
Determine if the installer step is already at Addons
installation
grep "Addon" /var/log/kurl/install<timestamp>.log | tail -n1
⚙ Addon velero 1.12.2
Locate the error line using this formula
https://github.com/replicatedhq/kURL/blob/main/addons/<addon>/<version>/install.sh#<line_number>
E.g. https://github.com/replicatedhq/kURL/blob/main/addons/velero/1.12.3/install.sh#L89
The line can also be located with
sed -n '<line>p' <kurl-install-directory>/addons/<addon>/<version>/install.sh
KURL default install directory is /var/lib/kurl/
Check if there’s any error related to Kubernetes manifests for the Addon.
export KUBECONFIG=/etc/kubernetes/admin.conf
kubectl get all -n velero
NAME READY STATUS RESTARTS AGE
pod/node-agent-jww5s 1/1 Running 0 58s
pod/velero-7c55f644d-n9xlb 0/1 Error 3 (35s ago) 58s
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/node-agent 1 1 1 1 1 <none> 58s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/velero 0/1 1 0 58s
NAME DESIRED CURRENT READY AGE
replicaset.apps/velero-7c55f644d 1 1 0 58s
Modify kURL Installer YAML spec accordingly if the error is related, e.g. typo/deprecated flags.
Open a support ticket and share a support bundle (if possible) if the issue can’t be resolved.