-
Notifications
You must be signed in to change notification settings - Fork 18
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
Applying firmware update errors #8
Comments
Thanks @coop. Looking over a bit, this is actually an unchanged line from In theory, we shouldn't have a HTTPFwupStream process still hanging around when he device is told to update (it should either fail in the stream, fail applying the firmware, or download and update successfully), which is what is failing here. In your case, the device seems to have gotten an update message when it was 38% into updating from the last message. Since it didn't realize it was already in the process of updating, it crashed trying to do it again. That update message from nerves-hub.org could have been triggered by a few different things:
Did any of these happen while your device was updating? Do you potentially have more log data to be reviewed? A quick fix would be to adjust your client to only |
Fixes #8 Some events in nerves-hub.org will trigger an update message to be sent, such as editing a deployment/device (changing the name and saving, etc). If a device gets that message while it is already updating, things will crash. This shouldn't be too much of an issue because the whole channel crashes, reconnects, and gets the update message again. But it produces some nasty error that might be confusing to the user. So to help avoid this edge-case, let's just ignore update messages while in the process of updating. Should it actually be new/required, we'll get the message again on next startup after rebooting.
Fixes #8 Some events in nerves-hub.org will trigger an update message to be sent, such as editing a deployment/device (changing the name and saving, etc). If a device gets that message while it is already updating, things will crash. This shouldn't be too much of an issue because the whole channel crashes, reconnects, and gets the update message again. But it produces some nasty error that might be confusing to the user. So to help avoid this edge-case, let's just ignore update messages while in the process of updating. Should it actually be new/required, we'll get the message again on next startup after rebooting.
Fixes #8 Some events in nerves-hub.org will trigger an update message to be sent, such as editing a deployment/device (changing the name and saving, etc). If a device gets that message while it is already updating, things will crash. This shouldn't be too much of an issue because the whole channel crashes, reconnects, and gets the update message again. But it produces some nasty error that might be confusing to the user. So to help avoid this edge-case, let's just ignore update messages while in the process of updating. Should it actually be new/required, we'll get the message again on next startup after rebooting.
I have recently switched over from
nerves_hub
- after returning:apply
from my client I see the following exception in my logs:Here are the interesting deps:
Thanks!
The text was updated successfully, but these errors were encountered: