I am running cobbler 2.2.3 on RHEL 6.3.  When I run cobbler reposync from the 
command line, the command aborts with

Tue Jul 10 08:12:15 2012 - INFO | hello, reposync
Tue Jul 10 08:12:15 2012 - INFO | run, reposync, run!
Tue Jul 10 08:12:15 2012 - DEBUG | creating: 
/var/www/cobbler/repo_mirror/epel/.origin/epel.repo
Tue Jul 10 08:12:15 2012 - INFO | running: /usr/bin/reposync -l -m -d 
--config=/var/www/cobbler/repo_mirror/epel/.origin/epel.repo --repoid=epel 
--download_path=/var/www/cobbler/repo_mirror -a x86_64
Tue Jul 10 08:12:16 2012 - INFO | received on stdout:
Tue Jul 10 08:12:16 2012 - DEBUG | received on stderr: error: db3 error(13) 
from dbenv->open: Permission denied
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
  File "/usr/bin/reposync", line 352, in <module>
    main()
  File "/usr/bin/reposync", line 148, in main
    my.doConfigSetup(fn=opts.config, init_plugins=opts.plugins)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 244, in 
doConfigSetup
    return self.conf
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 901, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 295, in 
_getConfig
    startupconf = config.readStartupConfig(fn, root)
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 880, in 
readStartupConfig
    startupconf.releasever = _getsysver(startupconf.installroot, 
startupconf.distroverpkg)
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 1025, in 
_getsysver
    raise Errors.YumBaseError("Error: " + str(e))
yum.Errors.YumBaseError: Error: rpmdb open failed

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

Tue Jul 10 08:12:16 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Tue Jul 10 08:12:16 2012 - INFO | Exception value: 'cobbler reposync failed'
Tue Jul 10 08:12:16 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)

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

Tue Jul 10 08:12:16 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Tue Jul 10 08:12:16 2012 - INFO | Exception value: 'reposync failed, retry 
limit reached, aborting'
Tue Jul 10 08:12:16 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)

Tue Jul 10 08:12:16 2012 - ERROR | ### TASK FAILED ###

In the log.  Additional, /var/log/messages contains the following:


Jul 10 08:12:16 fiat abrt: detected unhandled Python exception in 
'/usr/bin/reposync'
Jul 10 08:12:16 fiat abrtd: New client connected
Jul 10 08:12:16 fiat abrtd: Directory 'pyhook-2012-07-10-08:12:16-2946' 
creation detected
Jul 10 08:12:16 fiat abrt-server[2947]: Saved Python crash dump of pid 2946 to 
/var/spool/abrt/pyhook-2012-07-10-08:12:16-2946
Jul 10 08:12:16 fiat abrtd: sosreport run failed with exit code 127, log 
follows:
Jul 10 08:12:16 fiat abrtd: nice: sosreport: No such file or directory
Jul 10 08:12:16 fiat abrtd: 'post-create' on 
'/var/spool/abrt/pyhook-2012-07-10-08:12:16-2946' exited with 1
Jul 10 08:12:16 fiat abrtd: Corrupted or bad directory 
/var/spool/abrt/pyhook-2012-07-10-08:12:16-2946, deleting


There are no Selinux errors logged.  SELinux is in enforcing mode.  When 
SELinux is in permissive mode, the error does not occur.  Also, the reposync 
command can be run as is from the command line with only "Repository epel is 
listed more than once in the configuration" showing as an error

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to