Coder Social home page Coder Social logo

tdnf makecache hangs on PhotonOS3 about photon HOT 8 CLOSED

sebma avatar sebma commented on August 23, 2024
tdnf makecache hangs on PhotonOS3

from photon.

Comments (8)

sebma avatar sebma commented on August 23, 2024

It somehow took 4 minutes to make the cache :

$ time sudo tdnf makecache
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64) Updates'
Refreshing metadata for: 'VMware Photon Extras 3.0 (x86_64)'
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64)'
Metadata cache created.                2498249   100%

real    3m58.512s
user    3m52.216s
sys     0m1.616s
$

from photon.

oliverkurth avatar oliverkurth commented on August 23, 2024

Can you send the content of the repo files in /etc/yum.repos.d/? Make sure you have skip_md_filelists=1 set, especially for /etc/yum.repos.d/photon-updates.repo which is the largest repo because it contains all versions.

Also, have you checked if network access is acceptable for other applications, or is it just tdnf?

from photon.

sshedi avatar sshedi commented on August 23, 2024

Can you send the content of the repo files in /etc/yum.repos.d/? Make sure you have skip_md_filelists=1 set, especially for /etc/yum.repos.d/photon-updates.repo which is the largest repo because it contains all versions.

Also, have you checked if network access is acceptable for other applications, or is it just tdnf?

Before doing this, you have to update tdnf to latest. It's a one time thing but there is no other option.

tdnf update -y tdnf

This might take a while to finish. Then add skip_md_filelists=1 in repo file.

Then try rm -rf /var/cache/tdnf/ and tdnf makecache --refresh

from photon.

oliverkurth avatar oliverkurth commented on August 23, 2024

Well yes, I was assuming that tdnf was updated to the latest what's available in Photon 3.0, maybe I shouldn't have. So which version is this? (tdnf --version)

Also, if this is an old version, there should be no need to edit the config file to add skip_md_filelists=1 , it will be done in the post install script of the package. But double check in any case.

from photon.

sebma avatar sebma commented on August 23, 2024

Here is my tdnf :

$ grep skip_md_filelists /etc/yum.repos.d/*.repo
$ sudo tdnf --version
tdnf: 3.1.0
$

from photon.

sebma avatar sebma commented on August 23, 2024

Now I've just updated it :

$ sudo tdnf update tdnf

Upgrading:
tdnf-cli-libs                                                   x86_64                          3.1.15-2.ph3                               photon-updates                           70.24k 71928
tdnf                                                            x86_64                          3.1.15-2.ph3                               photon-updates                         313.71k 321243

Total installed size: 383.96k 393171
Is this ok [y/N]: y

Downloading:
tdnf-cli-libs                            37007   100%
tdnf                                    123865   100%
Testing transaction
Running transaction
Installing/Updating: tdnf-cli-libs-3.1.15-2.ph3.x86_64
Installing/Updating: tdnf-3.1.15-2.ph3.x86_64
Removing: tdnf-3.1.0-1.ph3.x86_64
Removing: tdnf-cli-libs-3.1.0-1.ph3.x86_64

Complete!
$

The update of the tdnf package did not add the skip_md_filelists=1 line to the /etc/yum.repos.d/*.repo files :

$ grep skip_md_filelists /etc/yum.repos.d/*.repo
$

from photon.

sebma avatar sebma commented on August 23, 2024

Still have the same problem :

$ sudo rm -rf /var/cache/tdnf/
$ time sudo tdnf makecache --refresh
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64) Updates'
Refreshing metadata for: 'VMware Photon Extras 3.0 (x86_64)'
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64)'
Metadata cache created.                2498249   100%

real    3m38.129s
user    3m31.838s
sys     0m1.610s
$

On another vcenter, the exact same operation takes 1.5s.

from photon.

sebma avatar sebma commented on August 23, 2024

The issue was solved by manually appending the line skip_md_filelists=1 to the /etc/yum.repos.d/*.repo files.

Thanks a lot guys 👍

from photon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.