checkbox remote did not use env var DISPLAY
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Next Generation Checkbox (CLI) |
Fix Released
|
High
|
Sylvain Pineau |
Bug Description
The recent desktop sru jobs failed as a false alarm like this one
camera/
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
(camera_test:8297): Clutter-CRITICAL **: 06:35:32.231: Unable to initialize Clutter: Could not initialize Gdk
No protocol specified
Unable to init server: Could not connect: Connection refused
(camera_test:8297): Gtk-WARNING **: 06:35:32.231: cannot open display: :0
from
http://
I figured out it is because that way we enable checkbox slave differs for this merge request https:/
The merge request makes the slave process will be started by root rather than a typical user (e.g. ubuntu for desktop sru jobs)
[More Information]
By specifying User=ubuntu in [Service] session we could fix this issue for desktop. However it may be not a good solution because the user name will differ in the other jenkins jobs.
Related branches
- Devices Certification Bot: Needs Fixing
- Maciej Kisielewski: Approve
- Taihsiang Ho: Approve
-
Diff: 40 lines (+14/-1)1 file modifiedplainbox/impl/session/remote_assistant.py (+14/-1)
- Sylvain Pineau (community): Approve
- Jonathan Cave (community): Approve
-
Diff: 115 lines (+25/-5)2 files modifiedplainbox/impl/execution.py (+11/-5)
plainbox/impl/session/remote_assistant.py (+14/-0)
Changed in checkbox-ng: | |
milestone: | none → 1.6.0 |
assignee: | nobody → Sylvain Pineau (sylvain-pineau) |
importance: | Undecided → High |
status: | Triaged → In Progress |
Changed in checkbox-ng: | |
status: | In Progress → Fix Committed |
Changed in checkbox-ng: | |
status: | Fix Committed → Fix Released |
As a short term workaround, we could update the systemd file and reload/restart the corresponding service without touching checkbox-ng source.