rancher: [BUG] Upgrade from rancher 2.8.5 to 2.9.0 failed
Rancher Server Setup
- Rancher version: 2.9.0
- Installation option (Docker install/Helm Chart): Docker standalone
- If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):
- Proxy/Cert Details:
We run rancher server as follow:
/usr/bin/docker run \
--name rancher-server \
--rm \
--volume /data/rancher-server:/var/lib/rancher --volume /etc/rancher/ssl/cert.pem:/etc/rancher/ssl/cert.pem:ro --volume /etc/rancher/ssl/key.pem:/etc/rancher/ssl/key.pem:ro --volume /etc/rancher/ssl/ca-bundle.pem:/etc/rancher/ssl/cacerts.pem:ro \
--publish 80:80 --publish 443:443 \
--privileged\
rancher/rancher:v2.9.0
Information about the Cluster
- Kubernetes version: 2.8
- Cluster Type (Local/Downstream): Local
- If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):
Describe the bug Rancher server crash when it start. The logs is here
Aug 08 09:57:41 SR090615CTI3700.hm.dm.ad systemd[1]: Started rancher-server.service.
Aug 08 09:57:41 SR090615CTI3700.hm.dm.ad rancher-server[64735]: INFO: Running k3s server --cluster-init --cluster-reset
Aug 08 09:57:56 SR090615CTI3700.hm.dm.ad rancher-server[64735]: Doing /etc/rancher/ssl
Aug 08 09:57:56 SR090615CTI3700.hm.dm.ad rancher-server[64735]: WARNING: key.pem does not contain a certificate or CRL: skipping
Aug 08 09:57:56 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:57:56 [INFO] Rancher version v2.9.0 (9e0cc54e7e3a924cf0ed5c5d4db0a6e53805c75e) is starting
Aug 08 09:57:56 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:57:56 [INFO] Rancher arguments {ACMEDomains:[] AddLocal:true Embedded:false BindHost: HTTPListenPort:80 HTTPSListenPort:443 K8sMode:auto Debug:false Trace:false NoCACerts:false AuditLogPath:/var/log/auditlog/rancher-api-audit.log AuditLogMaxage:10 AuditLogMaxsize:100 AuditLogMaxbackup:10 AuditLevel:0 Features: ClusterRegistry:}
Aug 08 09:57:56 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:57:56 [INFO] Listening on /tmp/log.sock
Aug 08 09:57:56 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:57:56 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.1:6444: connect: connection refused
Aug 08 09:57:58 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:57:58 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.1:6444: connect: connection refused
Aug 08 09:58:00 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:58:00 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.1:6444: connect: connection refused
Aug 08 09:58:02 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:58:02 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.1:6444: connect: connection refused
Aug 08 09:58:04 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:58:04 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.1:6444: connect: connection refused
Aug 08 09:58:06 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:58:06 [INFO] Waiting for server to become available: Get "https://127.0.0.1:6444/version?timeout=15m0s": dial tcp 127.0.0.1:6444: connect: connection refused
Aug 08 09:58:08 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:58:08 [INFO] Running in single server mode, will not peer connections
Aug 08 09:58:14 SR090615CTI3700.hm.dm.ad rancher-server[64735]: 2024/08/08 07:58:14 [FATAL] Internal error occurred: failed calling webhook "rancher.cattle.io.namespaces.create-non-kubesystem": failed to call webhook: Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation/namespaces?timeout=10s": proxy error from 127.0.0.1:6443 while dialing 10.42.0.9:9443, code 502: 502 Bad Gateway
To Reproduce Not sure how to reproduce the bug. In my case, I start from rancher 2.8.5 and upgrade to rancher 2.9.0.
I started from the very olL version of rancher that I upgrade from a long time before
Result
Expected Result
Screenshots
Additional context
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 12
- Comments: 38
I wound up taking a backup, then executed the commands individually using the kubectl shell from the Rancher dashboard that were mentioned by @jmcglock because the command complained about kubectl missing on the second and third commands.
I stopped the container, and installed the latest 2.9.3 release and it came up correctly.
The only issue that I’m waiting to see if it resolves itself is that the Fleet status icon is in red See: #https://github.com/rancher/dashboard/issues/11181
Hi, same error Upgrading from rancher 2.8.5 to 2.9.1 latest version
@apoca I have solved this issue. I deleted rancher-webhook apps before updating. After the update to 2.9.2 rancher reinstalled this app. Everything works well
Yes, still the same error as mentioned in the first post. 502 on webhook call. I haven’t tried my workaround as it is not clear way how to update. My expectation is that Rancher provides a version that includes some fixes.
We get the exact same error. We’ve tried https://github.com/rancher/rancher/issues/45841 but it fails with the error described in this issue. We are in v.2.8.5
Working well, thanks!
Same issue , Tried upgrading to 2.9.3 and I am running into the same issue described above
@BBQigniter do you think it’s possible that those two issues are not actually connected to each other? I’m asking because #46859 sounds very similar to your problem
Still the same issue for 2.8.5 -> 2.9.2
2.9.2 still the same but after a multiple restarts it works.
tested on our lab-environment the upgrade from v2.8.5 -> 2.9.1
same issue
tried the workaround and yes it makes Rancher get online and at first it looks fine - but it seems cluster-management is broken afterwards. If I edit a cluster in cluster-management and click “save”, a blank page is shown afterwards.
the clusters themself show up in Rancher like always, but digging deeper in “More Resources” checking “Fleet” and then opening “Clusters” it shows the managed and local cluster with an error indicating it cannot reach those.
so we rolled back for the time being and hopefully it will be fixed in v2.9.2 - see https://github.com/rancher/webhook/pull/446
Doesn’t work for me too. 2.8.5 -> 2.9.1. Exact same issue
Upgrade works after doing this https://github.com/rancher/rancher/issues/45841#issuecomment-2189038054
Same here. I also tried to upgrade to v2.9-head without success