-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tee: /usr/local/bin/k0s: Text file busy #357
Comments
I was able to reproduce it (the "tee" error) without the upscale, i.e. running k0sctl again on a single node that has already been provisioned via a prior run of k0sctl. I noticed that k0sctl wants to upgrade even if the target host is already running the correct version.
|
Yes, this always happens when |
I wonder how this happens. The |
The only possible explanation for this is that k0s is still running when trying to replace the binary. |
I had the exact same problem. |
This is definitely some timing issue. There's the check if k0s is still running, but maybe this check just races when the actual process is about to terminate but not quite terminated. When rerunning k0sctl apply again (after some seconds), the binary can be uploaded again, but will fail later on when trying to invoke I see multiple ways of fixing this:
|
Hmmm, this is a forced upgrade because of the presence of |
Reopening as this is not yet resolved. |
Upgrading a cluster from one node to three nodes failed with the following log line:
Target OS: Alpine 3.15
k0sctl version: 0.13.0-rc.1-1-gaf2f60b (af2f60b)
k0sctl.log
A second run of k0sctl also fails because it tries to join new controllers by requesting a token from the wrong node (the newly created one which hasn't been joined):
Logs from the second run: k0sctl_2.log
Config used:
The text was updated successfully, but these errors were encountered: