<?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>13936</bug_id>
          
          <creation_ts>2020-06-10 15:35:38 +0000</creation_ts>
          <short_desc>Intermittent HTTP Error 500: INTERNAL SERVER ERROR on autobuilder</short_desc>
          <delta_ts>2020-08-20 07:52:46 +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>OE-Core</product>
          <component>oe-core other</component>
          <version>3.1</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Sakoman">steve</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>mhalstead</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>87457</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-06-10 15:35:38 +0000</bug_when>
    <thetext>Typically in core-image-sato-sdk.bb:do_testimage

Seen in both dunfell and master

Recent examples:

https://autobuilder.yoctoproject.org/typhoon/#/builders/101/builds/906
https://autobuilder.yoctoproject.org/typhoon/#/builders/107/builds/595</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87878</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-08-04 07:09:14 +0000</bug_when>
    <thetext>After disappearing for quite some time it has occurred again on dunfell:

https://autobuilder.yoctoproject.org/typhoon/#/builders/101/builds/1143</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87901</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-08-08 15:54:00 +0000</bug_when>
    <thetext>Occurred again on dunfell:

https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/787

This time I was able to log into the builder before the build disappeared and run the failing command again manually:

[sakoman@centos7-ty-2 ~]$ /home/pokybuild/yocto-worker/qemumips-alt/yocto-autobuilder-helper/scripts/upload-error-reports /home/pokybuild/yocto-worker/qemumips-alt/build/build https://autobuilder.yoctoproject.org/typhoon/#builders/102/builds/787
[sakoman@centos7-ty-2 ~]$

The command completed without error messages, so perhaps these are intermittent infrastructure issues???</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87969</commentid>
    <comment_count>3</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-08-17 20:21:42 +0000</bug_when>
    <thetext>Richard and I found a couple of error reports that would consistently trigger the 500 error.  There were no errors in the http server log, however there was an error in the gunicorn server log that indicated an issue with encodings.

Michael Halstead updated the default collation on the DB to utf8_unicode_ci and now it handles the triggering error report without error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87993</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2020-08-20 07:52:46 +0000</bug_when>
    <thetext>The default collation did not allow storage of all needed unicode characters. Altering the settings as below took about 12 minutes to complete and resolved the errors. Django doesn&apos;t have a way to specify the collation for a table so I&apos;ll add this to the README.

ALTER DATABASE `error_report_web` CHARACTER SET &apos;utf8&apos; COLLATE &apos;utf8_unicode_ci&apos;
ALTER TABLE  Post_buildfailure convert to character set DEFAULT COLLATE DEFAULT;
ALTER TABLE  Post_build convert to character set DEFAULT COLLATE DEFAULT;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>