Originally posted by: dmj12031
Just getting started with yum, and it seems to work fine with the AIX Toolbox or internally-created repos. But when trying to use it with JFrog Artifactory, we get the error below There are some posts about this error possibly being caused by an incompatible version of libxml2, but I don't think that's the case here. It seems to be because Artifactory does not generate the sqlite files in their repodata (https://www.jfrog.com/jira/browse/RTFACT-7067), because I can replicate the issue by creating an internal repo with the --no-database flag.
Traceback (most recent call last):
File "/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
errcode = main(args)
File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
result, resultmsgs = base.doCommands()
File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/opt/freeware/share/yum-cli/yumcommands.py", line 864, in doCommand
base.repos.populateSack()
File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 186, in populate
dobj = repo_cache_function(xml, csum)
File "/opt/freeware/lib/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found
I believe yum is supposed to fall back to using the XML repodata files if the sqlite files are not present, but it seems like AIX yum may not be doing that, or may not be doing it properly? There's also a (new-ish?) yum.conf option mddownloadpolicy to only use the XML files, but that doesn't seem to work either.
mddownloadpolicy You can select which kinds of repodata you
would prefer yum to download:
`sqlite' - Download the .sqlite files, if available. This is
currently slightly faster, once they are downloaded. However
these files tend to be bigger, and thus. take longer to
download.
`xml' - Download the .XML files, which yum will do anyway as a
fallback on the other options. These files tend to be smaller,
but they require parsing/converting locally after download and
some aditional checks are performed on them each time they are
used.
Any suggestions would be appreciated. I'm not optimistic about JFrog supporting sqlite files any time soon.