Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM Repository Missing filelists Metadata #1632

Closed
MattMencel opened this issue Nov 9, 2017 · 12 comments
Closed

RPM Repository Missing filelists Metadata #1632

MattMencel opened this issue Nov 9, 2017 · 12 comments

Comments

@MattMencel
Copy link

Infos:

  • Used Zammad version: 2.1.x
  • Used Zammad installation source: RPM Package
  • Operating system: CentOS 7.4

Zammad is installed using a Chef cookbook I created. I have a yum_repository Chef resource that sets up the Zammad repo file, but my Chef runs fail because of the two commands below.

It seems the zammad repo is not standard and is missing filelists.xml.gz metadata file?

Expected behavior:

  • yum makecache should work
  • needs-restarting should work

Actual behavior:

  • Neither works and causes Chef client to fail.

Steps to reproduce the behavior:

# yum -q -y makecache --disablerepo=* --enablerepo=zammad
Error: requested datatype filelists not available
# needs-restarting
Traceback (most recent call last):
  File "/bin/needs-restarting", line 240, in <module>
    sys.exit(main(sys.argv))
  File "/bin/needs-restarting", line 209, in main
    for oldpkg in my.pkgSack.searchFiles(just_fn): # ghostfiles are always bogons
  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 468, in searchFiles
    return self._computeAggregateListResult("searchFiles", name)
  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 595, in _computeAggregateListResult
    sackResult = apply(method, args)
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 46, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 957, in searchFiles
    self.populate(repo, mdtype='filelists')
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 251, in populate
    xml = repo_get_function()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1919, in getFileListsXML
    return self.retrieveMD('filelists')
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1816, in retrieveMD
    return self._retrieveMD(mdtype)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1824, in _retrieveMD
    thisdata = self.repoXML.getData(mdtype)
  File "/usr/lib/python2.7/site-packages/yum/repoMDObject.py", line 208, in getData
    raise RepoMDError, "requested datatype %s not available" % type
yum.Errors.RepoMDError: requested datatype filelists not available
@hanneshal
Copy link
Contributor

@monotek @rkaldung any ideas on this?

@rkaldung
Copy link
Contributor

Should an upstream problem with the package service, we don't create the repos on our own.

@MattMencel
Copy link
Author

Do I need to create an issue with the upstream package service instead?

@thorsteneckel
Copy link
Contributor

@MattMencel - yes please do so (if still required) over at https://github.com/crohr/pkgr/issues. Closing now since it's not directly Zammad related.

@lr1980
Copy link
Contributor

lr1980 commented Apr 27, 2018

Hi,

why is filelists.xml.gz missing on yum/rpm repos?

Best regards
Lutz Reinhardt

Hey Lutz,

Because these indexes are quite large and can slow indexing down, we let owners turn it on or off for their repositories at their discretion: https://packagecloud.io/docs/#disable_filelists

You'll have to contact the repository owner and ask them to turn it on if you'd like to use this index.

Cheers,
Julio

--
Julio Capote
support@packagecloud.io

@rkaldung
Copy link
Contributor

@monotek Let's enable indexing. I don't see any reason against it and using Chef is a always a good idea.

@monotek
Copy link
Member

monotek commented Apr 30, 2018

We're using packager.io not packagecloud.io

@rkaldung
Copy link
Contributor

rkaldung commented May 2, 2018

.oO That's right. I can't find anything related in the documentation. @monotek And you?

@monotek
Copy link
Member

monotek commented May 2, 2018

No.

@crohr
Copy link

crohr commented May 16, 2018

@lr1980 filelists are not generated on Packager.io, because we typically package rails apps with all their dependencies + ruby interpreter, and that results in thousands of files in the package. Over time with tens of package versions in the repo this results in filelists that take hundreds of MB and way too long to download and parse on the receiving server.

@monotek
Copy link
Member

monotek commented May 16, 2018

thanks for clarification :-)

@Charburner
Copy link

So we can safely ignore the error message now and in the future?

Error: requested datatype filelists not available

( I just got it for the zammad repo after running yum makecache)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants