<?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>12898</bug_id>
          
          <creation_ts>2018-08-23 21:25:17 +0000</creation_ts>
          <short_desc>Bitbake does not print server errors when there is no TTY</short_desc>
          <delta_ts>2018-11-15 08:34:51 +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>5.99</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.e.witt</cc>
    
    <cc>randy.macleod</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>81425</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2018-08-23 21:25:17 +0000</bug_when>
    <thetext>If the bitbake server fails to start (e.g. because of a sanity test failure when processing the configuration) and there is no TTY (e.g. when running inside Docker without -t) then the last 10 lines of bitbake-cookerdaemon.log will not be printed. This appears to be because the start marker that we need to figure out where the last server&apos;s messages start in the logfile does not get written to the file when there is no TTY.

Log when there is no TTY:
https://travis-ci.org/crops/poky-container/jobs/419770906

Log when there is a TTY:
https://travis-ci.org/rewitt1/poky-container/jobs/419847827

(FYI the reason there is no TTY set normally for this container is because if there is one then you get progress/timer cruft in the output).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81455</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-08-30 14:38:28 +0000</bug_when>
    <thetext>We&apos;ve seen this on jenkins and on buildbot on our autobuilder too. Its confusing as the error doesn&apos;t show in the logs and the user gets confused.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82183</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2018-11-13 03:03:36 +0000</bug_when>
    <thetext>I tried:

$ echo &apos;HOSTTOOLS += \&quot;hello\&quot;&apos; &gt;&gt; conf/local.conf

$ nohup bitbake -p

It works as expected, there is a bitbake-cookerdaemon.log, and the last 10 logs printed.

I also tried docke run &lt;image&gt; without -t, it also worked as expected.

I suspect there is no bitbake-cookerdaemon.log when the error happened.

I need more info to go on this work:
* Do you still get the errors recently ?
* Would you please provide detailed steps on how to reproduce it?

I think that what can I do now is print an info when there is no bitbake-cookerdaemon.log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82204</commentid>
    <comment_count>3</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2018-11-13 18:11:59 +0000</bug_when>
    <thetext>I just did a bisect and it looks like this issue was fixed with 74feaddda3b7cd5b3ab18d2f25bf5ef9581c9c47.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82235</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2018-11-15 08:34:51 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I just did a bisect and it looks like this issue was fixed with
&gt; 74feaddda3b7cd5b3ab18d2f25bf5ef9581c9c47.

Great, thanks.

Fixed:

74feaddda3b7cd5b3ab18d2f25bf5ef9581c9c47</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>