<?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>5941</bug_id>
          
          <creation_ts>2014-03-11 06:00:36 +0000</creation_ts>
          <short_desc>[1.4.3] [Build-Appliance] Hob can not startup</short_desc>
          <delta_ts>2014-03-27 11:51:01 +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>1.4.3</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>cristian.iorga</cc>
    
    <cc>ke.zou</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>41056</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-03-11 06:00:36 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/nightly/20140306-3/build-appliance/

Git rev: dylan/7ab82abcad9ede847c42c01d2a4f4c2c18877e6f

The Hob can not start up when boot up the build-appliance image in virtual machine.

I tried to run command &quot;hob&quot; in command line and got the following errors:
#######################
** (process:751): WARNING **: Trying to register gtype &apos;GMountMountFlags&apos; as enum when in fact it is of type &apos;GFlags&apos;

** (process:751): WARNING **: Trying to register gtype &apos;GDriveStartFlags&apos; as enum when in fact it is of type &apos;GFlags&apos;

** (process:751): WARNING **: Trying to register gtype &apos;GSocketMsgFlags&apos; as enum when in fact it is of type &apos;GFlags&apos;
Traceback (most recent call last):
  File &quot;/home/builder/poky/bitbake/bin/bitbake&quot;, line 352, in &lt;module&gt;
    ret = main()
  File &quot;/home/builder/poky/bitbake/bin/bitbake&quot;, line 301, in main
    server = start_server(servermodule, configParams, configuration)
  File &quot;/home/builder/poky/bitbake/bin/bitbake&quot;, line 213, in start_server
    server.initServer()
  File &quot;/home/builder/poky/bitbake/lib/bb/server/process.py&quot;, line 212, in initServer
    self.serverImpl = ProcessServer(self.server_channel, self.event_queue, self.featurelist)
  File &quot;/home/builder/poky/bitbake/lib/bb/server/process.py&quot;, line 92, in __init__
    self.event_handle = multiprocessing.Value(&quot;i&quot;)
  File &quot;/usr/lib/python2.7/multiprocessing/__init__.py&quot;, line 252, in Value
    from multiprocessing.sharedctypes import Value
  File &quot;/usr/lib/python2.7/multiprocessing/sharedctypes.py&quot;, line 36, in &lt;module&gt;
    import ctypes
ImportError: No module named ctypes
DEBUG: Removed the following variables from the environment: USERNAME, SUDO_COMMAND, SUDO_GID, TZ, BUILDDIR, PSEUDO_LOCALSTATEDIR, SHLVL, SUDO_UID, PSEUDO_PREFIX, PSEUDO_LIBDIR, MAIL, SUDO_USER, DISPLAY, _
#########################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41065</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-11 11:37:49 +0000</bug_when>
    <thetext>Looks like this needs a backport of d80a715e3763a0e2bea5c84a4132d70dceaa2044 to dylan.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41307</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-17 10:10:48 +0000</bug_when>
    <thetext>Fix merged to the dylan branch:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dylan&amp;id=97300d711dc307c930f3e0292b7c0a1f8ebda27f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41479</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-03-20 02:41:00 +0000</bug_when>
    <thetext>Still failed with 1.4.3 rc4.

Image location: http://autobuilder.yoctoproject.org/pub/nightly/20140318-5/build-appliance/

Error message:
###############
** (process:672): WARNING **: Trying to register gtype &apos;GMountMountFlags&apos; as enum when in fact it is of type &apos;GFlags&apos;

** (process:672): WARNING **: Trying to register gtype &apos;GDriveStartFlags&apos; as enum when in fact it is of type &apos;GFlags&apos;

** (process:672): WARNING **: Trying to register gtype &apos;GSocketMsgFlags&apos; as enum when in fact it is of type &apos;GFlags&apos;
Traceback (most recent call last):
  File &quot;/home/builder/poky/bitbake/bin/bitbake&quot;, line 352, in &lt;module&gt;
    ret = main()
  File &quot;/home/builder/poky/bitbake/bin/bitbake&quot;, line 301, in main
    server = start_server(servermodule, configParams, configuration)
  File &quot;/home/builder/poky/bitbake/bin/bitbake&quot;, line 213, in start_server
    server.initServer()
  File &quot;/home/builder/poky/bitbake/lib/bb/server/process.py&quot;, line 221, in initServer
    self.serverImpl = ProcessServer(self.server_channel, self.event_queue, None)
  File &quot;/home/builder/poky/bitbake/lib/bb/server/process.py&quot;, line 91, in __init__
    self.event_handle = multiprocessing.Value(&quot;i&quot;)
  File &quot;/usr/lib/python2.7/multiprocessing/__init__.py&quot;, line 252, in Value
    from multiprocessing.sharedctypes import Value
  File &quot;/usr/lib/python2.7/multiprocessing/sharedctypes.py&quot;, line 39, in &lt;module&gt;
    from multiprocessing import heap, RLock
  File &quot;/usr/lib/python2.7/multiprocessing/heap.py&quot;, line 36, in &lt;module&gt;
    import mmap
ImportError: No module named mmap
DEBUG: Removed the following variables from the environment: USERNAME, SUDO_COMMAND, SUDO_GID, TZ, BUILDDIR, PSEUDO_LOCALSTATEDIR, SHLVL, SUDO_UID, PSEUDO_PREFIX, PSEUDO_LIBDIR, MAIL, SUDO_USER, DISPLAY, _
             
##################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41496</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-03-20 08:53:30 +0000</bug_when>
    <thetext>It might be that this patch needs to be integrated into 1.4.3:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e38285f8f1a3d275107eb3c56dc729865d83dcdf

The issue seems to be that python mmap module is missing from BA build tools.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41504</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-20 10:07:44 +0000</bug_when>
    <thetext>Right, but for master we should also add a dependency to python-multiprocessing; multiprocessing seems to need mmap regardless of where it&apos;s being used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41507</commentid>
    <comment_count>6</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-03-20 10:17:12 +0000</bug_when>
    <thetext>Hi Paul,

I don&apos;t know about the python-multiprocessing and master-based BA issue (if any, maybe I misunderstood), care to add a bug report for it?? And a test case, please.

Regards,
Cristian</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41509</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-20 10:20:11 +0000</bug_when>
    <thetext>It won&apos;t be an issue with the build appliance in master because python-mmap already ends up in the build appliance via packagegroup-self-hosted. It will be an issue for someone who just installs python-multiprocessing into their image without explicitly installing python-mmap or something else that depends upon it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41566</commentid>
    <comment_count>8</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-21 11:33:58 +0000</bug_when>
    <thetext>Another backport to dylan has now merged:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dylan&amp;id=465a8605191e39be443fe999619a034ae49889d8

I&apos;ve tested booting the build appliance and Hob now starts properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41833</commentid>
    <comment_count>9</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-03-27 11:51:01 +0000</bug_when>
    <thetext>verified. BA can launch</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>