Open mauriciocoder opened 1 month ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1599.
This message was autogenerated
It would be helpful to have a solution for the "unsupported" job status when launching checkbox-cli
. Perhaps invalidating the previous session and starting a new one could resolve the issue.
Sadly this is a feature, not a bug. The idea is that if you need to go back to a previous session, you can always do so because they are stored there, so purging them is not an option. Additionally, the fact that they auto-resumed is also a feature (that admittedly needs a bit of improvement). The idea is that if your session reboots the machine, upon it restarting, the session must go on, if it can't, that is an error condition worth a crash.
With all of this being said, this is a bug (the fact that Checkbox crashes on non-supported
), you were very unlucky here, but you were most likely running into another failure condition as changing the version of the providers mid-session (given that it was autoresuming it) will still crash Checkbox.
Enhancement Proposal
Description:
I encountered an issue with the Checkbox application where session data persisted even after purging the Checkbox Snap packages. After executing the following command to purge the packages:
I noticed that the session data in the directory
/var/tmp/checkbox-ng
was not removed. This led to complications when attempting to launch the Checkbox CLI, as the status of previously executed jobs remained in an "unsupported" state.When I tried to run the Checkbox CLI with the command:
I received the following output:
Despite purging and reinstalling the packages, the problem persisted. Upon investigating the source code, I discovered that Plainbox retains session data in
/var/tmp/checkbox-ng
. I manually removed the session data from this directory, and after doing so, the Checkbox CLI functioned as expected.Expected Behavior:
Steps to Reproduce:
sudo snap remove --purge checkbox checkbox22
.checkbox.checkbox-cli
.Additional Information:
Thank you for looking into this issue!