Open Sahanaaks opened 3 months ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1524.
This message was autogenerated
Hello!
Can you provide the list of snaps running on this device? The output of snap list
should be good enough.
Name Version Rev Tracking Publisher Notes bare 1.0 5 latest/stable canonical✓ base checkbox 4.0.0-dev333 7695 latest/stable ce-certification-qa classic checkbox22 4.0.0-dev333 1010 latest/stable ce-certification-qa - core22 20240408 1380 latest/stable canonical✓ base firefox 125.0.2-1 4173 latest/stable/… mozilla✓ - firmware-updater 0+git.5007558 127 latest/stable/… canonical✓ - gnome-42-2204 0+git.510a601 176 latest/stable/… canonical✓ - gtk-common-themes 0.1-81-g442e511 1535 latest/stable/… canonical✓ - snap-store 0+git.1419621 1124 latest/stable/… canonical✓ - snapd 2.63 21759 latest/stable canonical✓ snapd snapd-desktop-integration 0.9 157 latest/stable/… canonical✓ -
The reason I asked your for the list of snaps is because I see this message in the systemd logs:
Aug 07 09:20:37 ubuntu checkbox.agent[2226]: Found port 18871 is open. Is Checkbox agent already running?
I was wondering if you had another version of Checkbox running as a snap.
Have you installed Checkbox as a Debian package in parallel of the snap version? Please check the output of dpkg -l | grep -i checkbox
.
Usually, we see this message when Checkbox has been installed by two different methods, and one of the agent is tripping over the other.
Last option: you have something else on that system using port 18871...?
Hi Pierre,
You are correct, we faced issue with snap checkbox installation and had to do debian installation. On a different RVP with the same environment - with just the debian installation this bug is no longer seen. Thanks a lot for the input :)
Also, can you please suggest the stable installation method for canonical installation - snap or debian? In past, snap installation was suggested over debian - so we are using it.
Note that at with snap installation we saw tests gets struck at below stage:
========[ Running job 31 / 35. Estimated time left (at least): 0:08:02 ]======== --------------------------------[ Warm reboot ]--------------------------------- ID: com.canonical.certification::power-management/warm-reboot Category: com.canonical.plainbox::power-management Waiting for the system to shut down or reboot... Created symlink /etc/systemd/system/multi-user.target.wants/plainbox-autostart.service → /etc/systemd/system/plainbox-autostart.service. ... 8< ------------------------------------------------------------------------- dbus-send: /lib/x86_64-linux-gnu/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.12.20' not found (required by dbus-send) ------------------------------------------------------------------------- >8 ---
Hello! Sorry for the late reply... see my answers below:
Hi Pierre,
You are correct, we faced issue with snap checkbox installation and had to do debian installation. On a different RVP with the same environment - with just the debian installation this bug is no longer seen. Thanks a lot for the input :)
Also, can you please suggest the stable installation method for canonical installation - snap or debian? In past, snap installation was suggested over debian - so we are using it.
We have a dedicated section in the Ubuntu Discourse to discuss about things related to Checkbox:
https://discourse.ubuntu.com/c/certification/checkbox/168
We post about new releases there, with some highlights on the new versions and some tips on how to run Checkbox. See for instance the last release notes for v4.1.0.
At that point, we recommend the snap version of Checkbox for most use cases. This is what we advertise in our tutorial, for instance.
Note that at with snap installation we saw tests gets struck at below stage:
========[ Running job 31 / 35. Estimated time left (at least): 0:08:02 ]======== --------------------------------[ Warm reboot ]--------------------------------- ID: com.canonical.certification::power-management/warm-reboot Category: com.canonical.plainbox::power-management Waiting for the system to shut down or reboot... Created symlink /etc/systemd/system/multi-user.target.wants/plainbox-autostart.service → /etc/systemd/system/plainbox-autostart.service. ... 8< ------------------------------------------------------------------------- dbus-send: /lib/x86_64-linux-gnu/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.12.20' not found (required by dbus-send) ------------------------------------------------------------------------- >8 ---
This is strange. If the DUT is running Ubuntu 24.04, could you install the checkbox24
snap instead of checkbox22
and see if you face the same issue or not?
Also, as I suggested in another issue, it's better to use Checkbox remote to run this kind of test:
checkbox.checkbox-cli control <IP address of the agent>
You will then be able to select the test plan you want, but it will be run on the DUT while you are controlling it from your laptop. The log and output of each test cases will be shown on your laptop's screen, which helps reviewing or investigating as well.
Let me know if this works.
Bug Description
power-management/post-warm-reboot and power-management/post-cold-reboot are failing as after the warm/coldboot test
To Reproduce
To Reproduce Install Checkbox via the following commands $ sudo snap install checkbox22 $ sudo snap install checkbox --classic
Run "power-management/post-warm-reboot" and "power-management/post-cold-reboot" job via the following steps:
$ checkbox.checkbox-cli
Environment
OS: 24.04 Ubuntu Desktop Checkbox Type: Snap Checkbox version :: 4.1.0.dev25
Relevant log output
Additional context
Other Warm and Cold boot tests without post checks are passing fine on the same environment, the issue is with the post checking of the checkbox agent. Checkbox agent is active for a short duration even when you manually start the service. The status is shown as failed within few seconds.