I am running RHEL 6.3 with Cobbler 2.2.3.  Trying to run cobbler reposync, I 
get the following:

Fri Jul 13 07:12:46 2012 - INFO | hello, reposync
Fri Jul 13 07:12:46 2012 - INFO | run, reposync, run!
Fri Jul 13 07:12:46 2012 - DEBUG | creating: 
/var/www/cobbler/repo_mirror/epelrepo/.origin/epelrepo.repo
Fri Jul 13 07:12:46 2012 - INFO | running: /usr/bin/reposync -l -m -d 
--config=/var/www/cobbler/repo_mirror/epelrepo/.origin/epelrepo.repo 
--repoid=epelrepo --download_path=/var/www/cobbler/repo_mirror -a x86_64
Fri Jul 13 07:12:46 2012 - INFO | received on stdout:
Fri Jul 13 07:12:46 2012 - DEBUG | received on stderr: Error setting up 
repositories: Error making cache directory: /var/cache/yum/epelrepo error was: 
[Errno 13] Permission denied: '/var/cache/yum/epelrepo'

Fri Jul 13 07:12:46 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Fri Jul 13 07:12:46 2012 - INFO | Exception value: 'cobbler reposync failed'
Fri Jul 13 07:12:46 2012 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die
    raise CX(msg)

Fri Jul 13 07:12:46 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Fri Jul 13 07:12:46 2012 - INFO | Exception value: 'cobbler reposync failed'
Fri Jul 13 07:12:46 2012 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 125, 
in run
    self.sync(repo)
   File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 
169, in sync
    return self.yum_sync(repo)
   File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 
402, in yum_sync
    utils.die(self.logger,"cobbler reposync failed")
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die
    raise CX(msg)

Fri Jul 13 07:12:46 2012 - WARNING | reposync failed, tries left: 0
Fri Jul 13 07:12:46 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Fri Jul 13 07:12:46 2012 - INFO | Exception value: 'reposync failed, retry 
limit reached, aborting'
Fri Jul 13 07:12:46 2012 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die
    raise CX(msg)

Fri Jul 13 07:12:46 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Fri Jul 13 07:12:46 2012 - INFO | Exception value: 'reposync failed, retry 
limit reached, aborting'
Fri Jul 13 07:12:46 2012 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in run
    rc = self._run(self)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 251, in 
runner
    name=None, nofail=nofail, logger=self.logger)
   File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 758, in reposync
    return reposync.run(name)
   File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 
147, in run
    utils.die(self.logger,"reposync failed, retry limit reached, aborting")
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die
    raise CX(msg)

Fri Jul 13 07:12:46 2012 - ERROR | ### TASK FAILED ###

The immediate error is due to SELinux blocking /var/cache/yum/epelrepo, but I 
do not understand why this directory is being created.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart J. Newman
Engineer 4; Systems
Solar Dynamics Observatory (SDO)

Honeywell Technology Solutions Inc

NASA/Goddard Space Flight Center
Building 14, Room E222
Mail Stop 428.2
Greenbelt, MD 20771

Office: (301) 286-5145
EMail: [email protected]<mailto:[email protected]>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This communication, including any attachment, contains information that 
may be confidential or privileged, and is intended solely for the entity or 
individual to whom it is addressed.  If you are not the intended recipient, 
please notify the sender at once, and you should delete this message and are 
hereby notified that any disclosure, copying, or distribution of this message 
is strictly prohibited.  Nothing in this email, including any attachment, is 
intended to be a legally binding signature.

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
  • [cobble... Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
    • Re... Bob Cochran
      • ... Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]

Reply via email to