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

[bug] Sysupgrade returning non zero exit code some times but upgrade is performed anyway #246

Closed
nemesifier opened this issue Aug 21, 2023 · 0 comments · Fixed by #247
Closed
Labels
bug Something isn't working

Comments

@nemesifier
Copy link
Member

In some cases, for some unknown reason, the sysupgrade command returns a non zero exit code and the upgrade is flagged as failed, but it is carried out anyway, I believe we need to add a workaround in openwisp to recognize this false positive and ignore it.

Sample output:

Command failed: ubus call system sysupgrade { "prefix": "\/tmp\/root", "path": "\/tmp\/<file-name-here>", "backup": "\/tmp\/sysupgrade.tgz", "command": "\/lib\/upgrade\/do_stage2", "options": { "save_partitions": 1 } } (Connection failed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant