Repository navigation
Implement an automatic update mechanism that has options to preserve … - #60
Merged
Merged
Conversation
chiconws
reviewed
Oct 25, 2026
chiconws
left a comment
Collaborator
There was a problem hiding this comment.
Tested on a NanoKVM Pro (1.2.15, no update available): restarting nanokvm.service during the wait, it retries, re-logs in and times out cleanly. Couldn't test a real update.
Would you mind shortening the title and adding a short description?
antoniovazquezblanco
force-pushed
the
application-updates
branch
from
October 26, 2026 09:27
2a36373 to
31fb35f
Compare
Add install_application_update(), which updates the application when the device is out of date and waits until it runs the new version. The update restarts the device's server and ends the session, so the client logs in again with credentials it keeps in memory when created with keep_credentials=True. Logging out, changing the password, a failed login and closing the client drop them. update_application() now waits up to 15 minutes for the install. It also treats the restart as success: the dropped connection on non-Pro firmware before 2.5.1, and the 502 on 2.5.1 and newer.
antoniovazquezblanco
force-pushed
the
application-updates
branch
from
October 26, 2026 09:39
31fb35f to
bb8c138
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…a session