Error upgrading rancher from 2.5.3 to 2.5.5

hi, trying to upgrade rancher and getting the following error, till version 2.5.3 everything went fine
we are not using cert-manager.

~/rke# helm upgrade rancher rancher-stable/rancher --namespace cattle-system --version=v2.5.5 -f values.yaml

Error: UPGRADE FAILED: rendered manifests contain a new resource that already exists. Unable to continue with update: existing resource conflict: kind: Ingress, namespace: cattle-system, name: rancher

my values file:

hostname: rancher.mydomain.com
ingress:
tls:
source: secret

i have updated helm to 3.5.1 and getting this now:

Error: UPGRADE FAILED: rendered manifests contain a resource that already exists. Unable to continue with update: Ingress “rancher” in namespace “cattle-system” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key “app.kubernetes.io/managed-by”: must be set to “Helm”; annotation validation error: missing key “meta.helm.sh/release-name”: must be set to “rancher”; annotation validation error: missing key “meta.helm.sh/release-namespace”: must be set to “cattle-system”

1 Like

problem solved after reinstalling the same build with updated helm
and then upgraded to 2.5.5

1 Like

Thanks this saved my day :slight_smile: