Skip to content

Implement an automatic update mechanism that has options to preserve … - #60

Merged
chiconws merged 1 commit into
puddly:devfrom
antoniovazquezblanco:application-updates
Oct 28, 2026
Merged

chiconws merged 1 commit into
puddly:devfrom
antoniovazquezblanco:application-updates

Conversation

@antoniovazquezblanco

Copy link
Copy Markdown
Contributor

…a session

@chiconws chiconws left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment thread nanokvm/components/services.py
Comment thread nanokvm/components/services.py Outdated
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.
@chiconws
chiconws merged commit 735cb9a into puddly:dev Oct 28, 2026
1 check passed
@antoniovazquezblanco
antoniovazquezblanco deleted the application-updates branch October 28, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants