<?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>14676</bug_id>
          
          <creation_ts>2022-01-07 22:05:36 +0000</creation_ts>
          <short_desc>Unable to add a layer to the layer index: meta-lat</short_desc>
          <delta_ts>2022-04-11 02:58:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index</component>
          <version>4.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>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>4.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>konrad.scherer</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>TicoTimo</cc>
    
    <cc>tim.orling</cc>
          
          <qa_contact name="apoorv sangal">apoorvsangal</qa_contact>
          <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>92256</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-01-07 22:05:36 +0000</bug_when>
    <thetext>Hongux sent an email in December to have https://github.com/Wind-River/meta-lat added to the layer index. Tim Orling and others have tried to update the layer index and are seeing problems as described in the irc logs below.


[11:46] &lt;vmeson&gt; Several weeks ago, Hongxu asked to have meta-lat added to the layer index but there hasn&apos;t been any response. Who is taking care of that now? I&apos;d ask Paul E but he&apos;s likely sleeping now.
[11:48] &lt;vmeson&gt; We _might_ be able to volunteer someone since we make use of the LI code for our product.
[11:49] &lt;RP&gt; vmeson: Paul E is the best we have right now, or maybe moto-timo
[11:49] &lt;RP&gt; sakoman: not sure
[11:49] &lt;RP&gt; sakoman: probably still early for maint
[11:50] &lt;moto-timo&gt; I saw the layer request but forgot to follow up
[11:50] &lt;moto-timo&gt; ross is also an admin
[11:50] &lt;rburton&gt; hm i thought i pressed approve on that
[11:52] &lt;rburton&gt; so the layer index says no unpublished layers to review
[11:52] &lt;rburton&gt; but if you go to it, the layer index crashes
[11:55] &lt;moto-timo&gt; halstead: I&apos;m getting &apos;Internal Error&apos; logging in to layer index. can we restart it?
[11:56] &lt;abelloni&gt; RP: in https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2862/steps/14/logs/stdio
[11:56] &lt;abelloni&gt; you have seen the gdb failure
[11:56] &lt;abelloni&gt; but what about Inconsistency detected by ld.so: dl-open.c: 560: dl_open_worker: Assertion `_dl_debug_initialize (0, args-&gt;nsid)-&gt;r_state == RT_CONSISTENT&apos; failed!
[11:56] &lt;abelloni&gt; it seems to be a different issue
[11:56] &lt;moto-timo&gt; rburton: yeah, now that I tried I remember the error and decided to wait until after holidays... which means I forgot about it
[12:02] &lt;RP&gt; abelloni: I didn&apos;t spot that, no. That sounds bad :(
[12:02] &lt;RP&gt; abelloni: not sure on a cause :/
[12:03] &lt;rburton&gt; vmeson: i suggest filing a bug that http://layers.openembedded.org/layerindex/branch/master/layer/meta-lat/ produces an error, and copy me/paul/tim
[12:03] &lt;rburton&gt; and halstead
[12:04] &lt;rburton&gt; and hopefully someone can get to the django logs, as i don&apos;t know how to
[12:06] &lt;halstead&gt; Yes, I&apos;ll restart it and pull logs. 
[12:06] &lt;halstead&gt; And check on what&apos;s up with the docs
[12:08] &lt;RP&gt; abelloni: I think that is some kind of comment against all of them now. Hopefully the others I did are more accurate that the assertion one! 
[12:16] &lt;abelloni&gt; well I checked before triaging ;)
[12:20] &lt;RP&gt; abelloni: cool :)
[12:55] &lt;vmeson&gt; rburton: I&apos;ll do that after I get  lunch.
[12:57] &lt;rburton&gt; cool
[12:57] &lt;rburton&gt; I&apos;ll be gone shortly so will look monday unless some beats me
[13:03] &lt;halstead&gt; moto-timo: I have captured logs and logged in successfully myself. Watching logs now. I&apos;m curious if you can reproduce now.
[13:06] &lt;moto-timo&gt; halstead: https://layers.openembedded.org/layerindex/review/meta-lat/
[13:07] &lt;moto-timo&gt; halstead: as I recall if a layer was already added it used to go to a screen saying so...
[13:08] &lt;moto-timo&gt; halstead: sometimes the Internal Server warnings came from Django (which is likely the case here and a bug) or from nginx (which is usually &quot;Bad Gateway&quot;)
[13:09] &lt;halstead&gt; moto-timo: That page response if big enough it starts buffering to a tmpfile and then I&apos;m not sure why it fails after that.
[13:10] &lt;halstead&gt; moto-timo: So you&apos;ve logged in successfully at least?
[13:12] &lt;moto-timo&gt; halstead: indeed
[13:12] &lt;moto-timo&gt; halstead: the original reason for today&apos;s query was vmeson asking about meta-lat
[13:13] &lt;halstead&gt; moto-timo: So disabling the tmpfile it&apos;s immediately returning a 500. I&apos;ll need to raise the debug log level.
[13:13] &lt;moto-timo&gt; halstead: I still don&apos;t see it in the layers, so I wonder if the data input was malformed somehow
[13:14] &lt;moto-timo&gt; halstead: strange, it&apos;s in Layers in the admin interface...
[13:14] &lt;halstead&gt; The layer update process is looping with &quot;FileExistsError: [Errno 17] File exists: &apos;python2&apos; -&gt; &apos;/tmp/tmpc2hwzx78/tmp-glibc/hosttools/python&apos;&quot;
[13:14] &lt;moto-timo&gt; oh gee isn&apos;t that fantastic?
[13:14] &lt;moto-timo&gt; python2 die die die
[13:18] &lt;moto-timo&gt; halstead: any thing in the log to indicate which layer is causing that or more hints?
[13:19] &lt;halstead&gt; Still reading.
[13:19] &lt;moto-timo&gt; this is likely in a part of the code I haven&apos;t touched much
[15:12] &lt;moto-timo&gt; fwiw I have acces to login to the vm running layer index now. Some of the inner workings are still only in Paul’s head though
[15:14] &lt;moto-timo&gt; There are some wonky things from older releases. The ‘python2’ file already exists is come from base.bbclass
[15:15] &lt;moto-timo&gt; https://git.yoctoproject.org/poky/tree/meta/classes/base.bbclass?h=zeus#n141</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92257</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-01-07 22:39:27 +0000</bug_when>
    <thetext>The layer exists in the database (via the &apos;admin&apos; interface of Django), but something is causing the update layers job to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92322</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-01-14 06:47:51 +0000</bug_when>
    <thetext>One problem here is that the layerindex uses &quot;master&quot; to both represent the oe-core branch _and_ the branch of the layer. Since the branch for meta-lat is &quot;main&quot; this breaks the current data model.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92323</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-01-14 07:00:48 +0000</bug_when>
    <thetext>Attempt to force the layer to load:
$ docker exec &lt;container_id&gt; sh -c &quot;/opt/layerindex/layerindex/update.py -l meta-lat -b main -r&quot;

https://layers.openembedded.org/layerindex/updates/33936/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92947</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-04-07 16:25:57 +0000</bug_when>
    <thetext>Assigning to Randy to have someone within WR work on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92955</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-07 21:04:05 +0000</bug_when>
    <thetext>Robert, Please rebase our local patches that make sense to be upstreamed and work with Tim to try to get this issue resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92962</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-04-10 05:10:23 +0000</bug_when>
    <thetext>Through the admin interface, you can set the actual branch name (if it is different than &quot;master&quot;).

Changed layer branch meta-lat: master layer collection to &apos;lat-layer&apos;, actual branch to &apos;main&apos;
Changed layer meta-lat status to &apos;New&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92963</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-04-10 05:11:00 +0000</bug_when>
    <thetext>https://layers.openembedded.org/layerindex/branch/master/layer/meta-lat/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92966</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-10 16:33:06 +0000</bug_when>
    <thetext>Thanks Tim!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92970</commentid>
    <comment_count>9</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-04-11 02:58:39 +0000</bug_when>
    <thetext>NOTE: we are still working through some issues with layer updates, so this might take a couple days before it finally populates (but that is a meta-data problem).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>