Skip to content
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

update-manager service should try to run the pip command after ubo-app loads completely #177

Open
sassanh opened this issue Oct 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sassanh
Copy link
Collaborator

sassanh commented Oct 4, 2024

It rarely happens that when the pod reboots to complete an update, the update-service removes the old ubo app just when ubo-app is loading, it makes the ubo-app fail to load. So while the update is in progress in the background, the user sees a blank screen and can't see the progress.

To fix this we need to make sure update-manager runs the pip install command after ubo-app has loaded completely.

One way to do so is using systemd api, but I'm not sure if it supports making a system-level service need a user-land service, and since update-manager is a system level and ubo-app is a user-land service, it may not work.

An alternative would be to have a signal mechanism (probably just creating a file in file-system or things like that) so that ubo-app can communicate it has been loaded successfully to the update manager.

Either way, we need to make sure update-manager doesn't stay waiting for ubo-app in case ubo-app has been corrupted and can't load, so we need a time out for this waiting, after which we continue the update process.

We can consider showing a message via a still image on the LCD, in case ubo-app doesn't load. Something like "the update process is in progress in the background, please be patient." This is to let the user know things are not broken.

@sassanh sassanh added this to Ubo App Oct 4, 2024
@sassanh sassanh self-assigned this Oct 4, 2024
@sassanh sassanh converted this from a draft issue Oct 4, 2024
@sassanh sassanh added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant