https://rancher.com/ logo
Title
a

aloof-dog-75479

03/25/2023, 9:16 AM
Hi to all, I have an issue with k3s update controller`apply-server-plan-on-k3os-5272-with-3df70977393d76cb31ced-9npqp upgrade sha256sum: can't open '/hostsupervise-daemon': No such file or directory` I manually updated the server but the server-upgrade plan still fails I think there is an `/`after host missing
r

rich-cartoon-70161

03/25/2023, 10:25 AM
How does your plan look like? I think the command is part of it?
a

aloof-dog-75479

03/25/2023, 10:41 AM
it the default plan from: https://docs.k3s.io/upgrades/automated
# Server plan
apiVersion: <http://upgrade.cattle.io/v1|upgrade.cattle.io/v1>
kind: Plan
metadata:
  name: server-plan
  namespace: system-upgrade
spec:
  concurrency: 1
  cordon: true
  nodeSelector:
    matchExpressions:
    - key: <http://node-role.kubernetes.io/control-plane_|node-role.kubernetes.io/control-plane_>
      operator: In
      values:
      - "true"
  serviceAccountName: system-upgrade
  upgrade:
    image: rancher/k3s-upgrade
  channel: <https://update.k3s.io/v1-release/channels/stable>
---
# Agent plan
apiVersion: <http://upgrade.cattle.io/v1|upgrade.cattle.io/v1>
kind: Plan
metadata:
  name: agent-plan
  namespace: system-upgrade
spec:
  concurrency: 1
  cordon: true
  nodeSelector:
    matchExpressions:
    - key: <http://node-role.kubernetes.io/control-plane|node-role.kubernetes.io/control-plane>
      operator: DoesNotExist
  prepare:
    args:
    - prepare
    - server-plan
    image: rancher/k3s-upgrade
  serviceAccountName: system-upgrade
  upgrade:
    image: rancher/k3s-upgrade
  channel: <https://update.k3s.io/v1-release/channels/stable>
r

rich-cartoon-70161

03/25/2023, 10:42 AM
Hm. Okay I also use those. Which node OS and k3s version? Maybe that makes a difference
a

aloof-dog-75479

03/25/2023, 10:44 AM
the server is on an "old" k3os where k3s-service is disabled and k3s (v1.25.7+k3s1) installed and upgraded via
curl -sfL <https://get.k3s.io> | sh -
I tried to do a workaround by mounting a file to
/hostsupervise-daemon
but this fails a step later with something like, can create file because it already exists
c

creamy-pencil-82913

03/25/2023, 6:30 PM
You can't use the k3s-upgrade images on k3os. K3os is designed to use the embedded k3s version only and the k3s-upgrade images will not work right on it. You should stop using k3os as it hasn't been maintained for well over a year.
a

aloof-dog-75479

03/25/2023, 7:55 PM
I didnt say i want to upgrade k3os, i want to upgrade k3s running on this this system
It was working before, since more than one year
c

creamy-pencil-82913

03/25/2023, 9:19 PM
That might be but I would get off it asap
It's not being updated and we don't support it, nor was changing the bundled k3s version ever supported