<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9314</bug_id>
          
          <creation_ts>2016-03-21 09:12:59 +0000</creation_ts>
          <short_desc>Yocto 2.1M3 rc1 Build Appliance: bitbake core-image-minimal with command-line failed</short_desc>
          <delta_ts>2016-03-31 09:00:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Runtime</product>
          <component>build-appliance</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ke Zou">ke.zou</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhangle.yang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60188</commentid>
    <comment_count>0</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2016-03-21 09:12:59 +0000</bug_when>
    <thetext>BA location:
http://autobuilder.yoctoproject.org/pub/releases/yocto-2.1_M3.rc1/build-appliance/

How to reproduce:

Download build appliance and execute virtual machine in vmplayer(ubuntu)
Since HOB has been dropped from Build Appliance,we have to bitbake core-image-minimal from command line. 
Fail message:
OperationalError: attempt to write a readonly database</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60418</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-03-25 00:19:29 +0000</bug_when>
    <thetext>I downloaded the Build Appliance from
http://autobuilder.yoctoproject.org/pub/releases/yocto-2.1_M3.rc1/build-appliance/

Uncompressed and ran using VMplayer/Ubuntu (had to configure the network first).
Then, in Terminal &lt;2&gt; I ran

$ bitbake core-image-minimal

I did get an error:
Unable to create &apos;/home/builder/poky/bitbake/lib/bb/pysh/pyshtables.py&apos;
[Errno 22] invalid mode (&apos;w&apos;) or filename &apos;/home/builder/poky/bitbake/lib/bb/pysh/pyshtables.py&apos;
I also got a two warnings, but those are expected:
1. Host distribution not validated
2. Build host not configured to process I/O statistics

So it would indicate some permissions/ownership is not set correctly.
I will look into that.

However, the build continued (still building, takes hours to finish it). 
I believe the above error was there even with previous (HOB) BA version, just not directly visible.

In any case, I could not reproduce the originally reported bug.
Can you please provide more details? (exact steps to reproduce, screenshots etc.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60428</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-03-25 23:20:21 +0000</bug_when>
    <thetext>I could not reproduce the bug, although there were some 
permissions related errors. The FS seems to be 
corrupted, for example I cannot create a directory in /home/builder/poky:

# cd /home/builder/poky
# mkdir aaa
mkdir: cannot create directory &apos;aaa&apos;: Invalid argument

(just in poky, I can create directories anywhere else though)

So I think the image on the web is somehow corrupted and hence the
problems (Yocto_Build_Appliance-20160314012314.zip).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60436</commentid>
    <comment_count>3</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-03-27 19:28:02 +0000</bug_when>
    <thetext>Correction. The image is not corrupted, it is a permission error.
Same error(s) were observed when the image was rebuilt locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60459</commentid>
    <comment_count>4</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-03-28 23:10:21 +0000</bug_when>
    <thetext>Merged:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7d251f75ebfb6d61c8576a1d7b371f1a0b82f75e

Tested the patch by building core-image-minimal in Build Appliance (using VMplayer) and then booting the resulting image in qemu (outside BA).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60569</commentid>
    <comment_count>5</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2016-03-31 09:00:33 +0000</bug_when>
    <thetext>verified with YOCTO build 2.1M3 rc2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>