Bug 4203 - 1.4 beta build appliance fails to launch Hob automatically
Summary: 1.4 beta build appliance fails to launch Hob automatically
Status: VERIFIED FIXED
Alias: None
Product: Runtime
Classification: Build System, Metadata & Runtime
Component: build-appliance (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: High critical
Target Milestone: 1.4 M6
Assignee: Cristian Iorga
QA Contact:
URL:
Whiteboard:
Depends on: 4179 4222
Blocks:
  Show dependency tree
 
Reported: 2013-04-04 21:30 UTC by Dave Stewart
Modified: 2013-04-12 09:31 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Stewart 2013-04-04 21:30:15 UTC
Build appliance from http://autobuilder.yoctoproject.org/pub/nightly/20130403-2/build-appliance/ boots into X, but I only get a root prompt. 

I did an "su builder" and manually did an oe-init-build-env in the poky directory, and then launched hob manually.

Note that it tries to do a network proxy test, which it fails.

This is on my MacOS system.
Comment 1 Cristian Iorga 2013-04-05 05:40:40 UTC
Investigation started.
Comment 2 Cristian Iorga 2013-04-05 07:10:21 UTC
Probable cause for the issue: builder_hob_start.sh script is not executed after X11 starts.
Comment 3 Cristian Iorga 2013-04-05 08:24:23 UTC
The issue is reproducible for the http://autobuilder.yoctoproject.org/pub/nightly/20130403-2/build-appliance/ BA image.

I tested on a locally-built BA image, with the SRCREV for poky set to:
c4329c91a5dee257af8e9499685f773f72abe6f7 commit.

The generated image ran correctly, and Hob starts OK.
Comment 4 Dave Stewart 2013-04-08 14:17:02 UTC
We need a working version for our beta test.  Please send me a link as soon as you can so I can test it.
Comment 6 Dave Stewart 2013-04-08 20:45:49 UTC
I downloaded one that Christian sent me and it still doesn't work. I downloaded http://autobuilder.yoctoproject.org/pub/nightly/20130406-2/build-appliance/Yocto_Build_Appliance-20130406225409.zip and booted it into VMWare.  

The proper screen came up with "Please wait …" and then the grey screen disappeared and I was left with Terminal 2 (the one with the builduser prompt) and no Hob. Still doesn't work. What kind of info do you want from my system to debug it?
Comment 7 Cristian Iorga 2013-04-09 08:02:45 UTC
Hello David.

Tested again with an BA image generated on my machine, not on AB.
The commit HEAD for poky sources was set to the latest master at that moment:
e57284abca76fe7e6c29484104ae4349459c63dc.
BA started OK.
I can provide a download link for that image.

At the same time, Stefan is working on testing the BA image generated by AB with the commit HEAD set to c4329c91a5dee257af8e9499685f773f72abe6f7, the same src rev as used in my initial testing.

Will keep you updated.

Regards,
Cristian
Comment 8 Stefan Stanacar 2013-04-09 11:48:57 UTC
So I can confirm the 1.4_M5.rc3 build: 
commit fe336b149552b1f4f24d979c40302653298b98cc 
AB link http://autobuilder.yoctoproject.org/pub/nightly/20130403-2/build-appliance/

has the problem Dave described in the first comment.

The commit Cristian mentioned in comment 3 (c4329c91a5dee257af8e9499685f773f72abe6f7) actually coresponds to this AB link: 
http://autobuilder.yoctoproject.org/pub/nightly/20130404-7/build-appliance/Yocto_Build_Appliance-20130405003930.zip

not the link in comment 5 (which I tried and I got the same result as Dave in comment 6).

So on commit c4329c91a5dee257af8e9499685f773f72abe6f7 / link http://autobuilder.yoctoproject.org/pub/nightly/20130404-7/build-appliance/Yocto_Build_Appliance-20130405003930.zip 
Hob does start and it builds (I'm building an image now), regardless if BA  has been built locally or downloaded from AB.


There is a direct connection between commits and AB links, unfortunately on the build considered for beta (fe336b149552b1f4f24d979c40302653298b98cc) Hob doesn't start in BA (regardless if it's built locally or by AutoBuilder).
Comment 9 Cristian Iorga 2013-04-10 08:18:31 UTC
Tested again BA using commit 307e860860badd4420a01ed781c6c845fc9bf603 as HEAD for both Yocto Linux and poky sources found in BA. This was the latest HEAD available when I started the build.

The BA builds OK and starts OK.

Stefan is working on testing the BA built by AB.
He will post the results here.
Comment 10 Stefan Stanacar 2013-04-10 10:40:18 UTC
Commit 307e860860badd4420a01ed781c6c845fc9bf603 
AB download link :
http://autobuilder.yoctoproject.org/pub/build-appliance/20130410-1/build-appliance/Yocto_Build_Appliance-20130410062547.zip
AB build:
http://autobuilder.yoctoproject.org:8011/builders/build-appliance/builds/97

It boots, then the screen with "Please wait while Bitbake initializes Hob " appers and then the grey screen disappears and I get the terminal.
This is the same behaviour as in comment 6.
As I said in my previous comment the working version is commit c4329c91a5dee257af8e9499685f773f72abe6f7 / link http://autobuilder.yoctoproject.org/pub/nightly/20130404-7/build-appliance/Yocto_Build_Appliance-20130405003930.zip - boots to Hob and builds an image succesfully.
Comment 11 Cristian Iorga 2013-04-10 12:56:49 UTC
The issue can be replicated only if the rpm backend is used for package management.

On my development machine, the ipk-based package management is used, so the issue is not visible.

Given that postinstall scripts aren't run, Hob does not recognize a PNG image used as an icon, so it crashes during start.
Comment 12 Alexandru Damian 2013-04-11 08:42:22 UTC
Blocked on upstream.
Comment 13 Richard Purdie 2013-04-11 11:38:37 UTC
I think this has been fixed with various fixes but finally http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8b29120a8cdd92a0429f383f4811f7f84c6c350e ?
Comment 15 Stefan Stanacar 2013-04-12 09:31:56 UTC
Verified with dylan:dab237bc6a7679dfeaa981c14736aedc7b04ecb9 and http://autobuilder.yoctoproject.org/pub/nightly/20130411-3/build-appliance/Yocto_Build_Appliance-20130411113308.zip