<?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>13877</bug_id>
          
          <creation_ts>2020-04-16 12:52:47 +0000</creation_ts>
          <short_desc>package manager not working</short_desc>
          <delta_ts>2020-08-26 10:46:10 +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>core</component>
          <version>3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Richardson">jon.richardson</reporter>
          <assigned_to name="Joe Slater">joe.slater</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87048</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2020-04-16 12:52:47 +0000</bug_when>
    <thetext>I haven&apos;t been able to get the package manager to work for a long time now. Using lighttpd this is my procedure (ubuntu distro):

sudo apt-get install lighttpd
cd /var/www
ln -s /home/jonathar/work/yocto/master/poky/build/tmp/deploy/rpm rpm
sudo service lighttpd restart

bitbake some-recipe
bitbake package-index

On target:
export PACKAGE_FEED=rpm
mkdir -p /etc/yum.repos.d/
echo -e &quot;[yocto-packages]\nname=Yocto packages\nbaseurl=http://10.136.4.151/${PACKAGE_FEED}\nenabled=1\ngpgcheck=0\n&quot; &gt; /etc/yum.repos.d/yocto-packages.repo

root@bcm958742k:~# dnf makecache
Yocto packages                                                                                          0.0  B/s |   0  B     00:00    
Failed to synchronize cache for repo &apos;yocto-packages&apos;
Ignoring repositories: yocto-packages
Metadata cache created.

The result is the same if I create the conf file automatically with these vars:
PACKAGE_FEED_URIS = &quot;https://10.136.4.151&quot;
PACKAGE_FEED_BASE_PATHS = &quot;rpm&quot;

I&apos;m not sure if there were changes in lighttpd or if the package manager changed at some point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87916</commentid>
    <comment_count>1</comment_count>
    <who name="Joe Slater">joe.slater</who>
    <bug_when>2020-08-12 12:12:26 +0000</bug_when>
    <thetext>dnf fetching from lighttpd works for me, but there are a couple of differences from the description.

Besides lighttpd I needed gamin on the host in order for lighttpd to start.

The rpm link should be /var/www/html/rpm.  And the directory pointed to must have been processed with something like createrepo.

If, on the target, &quot;wget http://&lt;host&gt;/rpm/repodata/repomd.xml&quot; works, &quot;dnf makecache&quot; should work, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87931</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-08-13 08:24:43 +0000</bug_when>
    <thetext>Jonathan,
Joe isn&apos;t able to reproduce the issue. Do you have lighttpd configure properly as Joe explained? If not and you&apos;re no longer able to reproduce the error, please close the bug. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87944</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2020-08-13 14:54:16 +0000</bug_when>
    <thetext>Putting the link in /var/www/html instead of /var/www solved the problem. Weird.. I used to create it in www and it worked for some reason. That&apos;s all it was. Thanks, this can be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87965</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-08-17 10:41:04 +0000</bug_when>
    <thetext>Thanks Jonathan.

Joe, Do the docs need to be updated to cover this usage?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87966</commentid>
    <comment_count>5</comment_count>
    <who name="Joe Slater">joe.slater</who>
    <bug_when>2020-08-17 11:28:12 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Thanks Jonathan.
&gt; 
&gt; Joe, Do the docs need to be updated to cover this usage?

Not that I can see.  The yocto &quot;tips &amp; tricks&quot; assumes the server data will be under /var/www/html.  I suppose the web server could be configured differently, but this looks like the default.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>