Hello,
I’ve received a few emails today from cron - below the message:
/etc/cron.hourly/0yum-hourly.cron:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock: (28, ‘Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds’)
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock: (28, ‘Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds’)
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock: (28, ‘Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds’)
Traceback (most recent call last):
File “/usr/sbin/yum-cron”, line 729, in
main()
File “/usr/sbin/yum-cron”, line 726, in main
base.updatesCheck()
File “/usr/sbin/yum-cron”, line 618, in updatesCheck
self.populateUpdateMetadata()
File “/usr/sbin/yum-cron”, line 422, in populateUpdateMetadata
self.pkgSack # honor skip_if_unavailable
File “/usr/lib/python2.7/site-packages/yum/init.py”, line 1074, in
pkgSack = property(fget=lambda self: self._getSacks(),
File “/usr/lib/python2.7/site-packages/yum/init.py”, line 778, in _getSacks
self.repos.populateSack(which=repos)
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 347, in populateSack
self.doSetup()
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 158, in doSetup
self.ayum.plugins.run(‘postreposetup’)
File “/usr/lib/python2.7/site-packages/yum/plugins.py”, line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File “/usr/lib/yum-plugins/fastestmirror.py”, line 197, in postreposetup_hook
if downgrade_ftp and _len_non_ftp(repo.urls) == 1:
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 878, in
urls = property(fget=lambda self: self._geturls(),
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 875, in _geturls
self._baseurlSetup()
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 841, in _baseurlSetup
self.check()
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 559, in check
‘Cannot find a valid baseurl for repo: %s’ % self.ui_id
yum.Errors.RepoError: Cannot find a valid baseurl for repo: base/x86_64
This is the error that appears if I go the “system update” page on the WebUI.
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/storageadmin/views/command.py”, line 197, in post
return Response(update_check(subscription=subo))
File “/opt/rockstor/src/rockstor/system/pkg_mgmt.py”, line 164, in update_check
o, e, rc = run_command([YUM, ‘changelog’, date, pkg])
File “/opt/rockstor/src/rockstor/system/osi.py”, line 121, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/yum changelog 2018-Apr-17 rockstor. rc = 1. stdout = [‘Loaded plugins: changelog, fastestmirror’, ‘Loading mirror speeds from cached hostfile’, ’ * base: ftp.tugraz.at’, ’ * epel: mirror.miletic.net’, ’ * extras: ftp.tugraz.at’, ’ * updates: ftp.tugraz.at’, ‘’]. stderr = [‘’, ‘’, ’ One of the configured repositories failed (Unknown),‘, " and yum doesn’t have enough cached data to continue. At this point the only", ’ safe thing yum can do is fail. There are a few ways to work “fix” this:’, ‘’, ’ 1. Contact the upstream for the repository and get them to fix the problem.‘, ‘’, ’ 2. Reconfigure the baseurl/etc. for the repository, to point to a working’, ’ upstream. This is most often useful if you are using a newer’, ’ distribution release than is supported by the repository (and the’, ’ packages for the previous distribution release still work).‘, ‘’, ’ 3. Run the command with the repository temporarily disabled’, ’ yum --disablerepo= …‘, ‘’, " 4. Disable the repository permanently, so yum won’t use it by default. Yum", ’ will then just ignore the repository until you permanently enable it’, ’ again or use --enablerepo for temporary usage:‘, ‘’, ’ yum-config-manager --disable ’, ’ or’, ’ subscription-manager repos --disable=‘, ‘’, ’ 5. Configure the failing repository to be skipped, if it is unavailable.’, ’ Note that yum will try to contact the repo. when it runs most commands,‘, ’ so will have to try and fail each time (and thus. yum will be be much’, ’ slower). If it is a very temporary problem though, this is often a nice’, ’ compromise:‘, ‘’, ’ yum-config-manager --save --setopt=.skip_if_unavailable=true’, ‘’, ‘file is encrypted or is not a database’, ‘’]
Anyone having the same problem/error?
Thx