<?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>1759</bug_id>
          
          <creation_ts>2011-11-07 16:36:08 +0000</creation_ts>
          <short_desc>OperationalError: database is locked</short_desc>
          <delta_ts>2011-11-21 02:34:49 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.0 PointRelease</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Beth Flanagan">elizabeth.flanagan</reporter>
          <assigned_to name="Joshua Lock - Disabled">josh</assigned_to>
          <cc>elizabeth.flanagan</cc>
    
    <cc>josh</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17148</commentid>
    <comment_count>0</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-11-07 16:36:08 +0000</bug_when>
    <thetext>Narrowed down and able to consistently repeat on OpenSuse 11.4/Python 2.7/sqlite3 2.6.0:

bitbake poky-image-minimal poky-image-sato
Pseudo is not present but is required, building this first before the main build
NOTE: Error expanding variable WORKDIR                                                                                                                                        | ETA:  --:--:--
ERROR: Error parsing /srv/home/eflanagan/poky/meta/recipes-graphics/xorg-lib/libx11_git.bb: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception OperationalError: database is locked
ERROR: Command execution failed: Exited with 1
eflanagan@autobuilder01:~/poky/build&gt; env|grep PYTHON
PYTHONSTARTUP=/etc/pythonstart

----------------

Interesting issues:
1. Only occurs during first run. Subsequent runs do not have this issue
2. Does not occur during a strace of bitbake .....
3. Only occurring on the autobuilders

Obviously an issue with sqlite3 and bitbake here. The best thought I have for why it doesn&apos;t occur during a strace is that we&apos;re seeing a timing issue here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17154</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-11-08 08:43:24 +0000</bug_when>
    <thetext>Richard&apos;s intuition is that this error is caused by a floating SRCREV. Following this lead today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17156</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-11-08 12:04:16 +0000</bug_when>
    <thetext>Frustratingly I can&apos;t reproduce this on a stock OpenSUSE 11.4 install (with updates), I don&apos;t see any relevant floating SRCREV&apos;s yet either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17159</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-11-08 12:56:50 +0000</bug_when>
    <thetext>Workaround pushed to my bernard branch: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=josh/bernard&amp;id=85c18bd1f093011f711e3c43ff93d48e6a9c9c7e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17189</commentid>
    <comment_count>4</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-11-13 22:21:03 +0000</bug_when>
    <thetext>Fixed in bernard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17193</commentid>
    <comment_count>5</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-11-14 11:15:47 +0000</bug_when>
    <thetext>Reopening as 85c18bd1f093011f hasn&apos;t been pulled into bernard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17224</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-11-15 16:19:44 +0000</bug_when>
    <thetext>Update subject to reflect that this isn&apos;t OpenSuse specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17227</commentid>
    <comment_count>7</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-11-15 23:13:39 +0000</bug_when>
    <thetext>Were you able to replicate it outside of Opensuse?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17278</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-21 02:34:49 +0000</bug_when>
    <thetext>I&apos;m going to mark this as resolved since the pressing issue of failures has been identified and fixed for Barnard. There is a separate bug open for investigating why such large timeouts are required (http://bugzilla.pokylinux.org/show_bug.cgi?id=1761).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>