OK,,

this is a bit interesting... when running
/usr/bin/reposync -l -m -d
--config=/var/www/cobbler/repo_mirror/epel6-x86_64/.origin/epel6-x86_64.repo
--repoid=epel6-x86_64 --download_path=/var/www/cobbler/repo_mirror -a x86_64

as root the epel library starts to download. Is this an SELinux issue, and
if so... what would I need to do to fix this (without disabling SELinux
altogether)?

apologies in advance for the noob question :-)

- Jack



On Wed, Apr 4, 2012 at 3:34 PM, James Cammarata <[email protected]> wrote:

> On Wed, Apr 4, 2012 at 5:15 PM, Jack Peterson <[email protected]>
> wrote:
> > All,
> >
> > attempting to add EPEL by repo adding + reposync(ing) does not appear to
> > work:
> >
> > Add the repository
> > sudo cobbler repo add --name=epel6-x86_64 --breed=yum
> > --mirror=http://dl.fedoraproject.org/pub/epel/6/x86_64
> >
> > Attempting to reposync:
> > sudo cobbler reposync
> > task started: 2012-04-04_221206_reposync
> > task started (id=Reposync, time=Wed Apr  4 22:12:06 2012)
> > hello, reposync
> > run, reposync, run!
> > creating:
> > /var/www/cobbler/repo_mirror/epel6-x86_64/.origin/epel6-x86_64.repo
> > running: /usr/bin/reposync -l -m -d
> >
> --config=/var/www/cobbler/repo_mirror/epel6-x86_64/.origin/epel6-x86_64.repo
> > --repoid=epel6-x86_64 --download_path=/var/www/cobbler/repo_mirror -a
> x86_64
> > received on stdout:
> > received on stderr: error: cannot open Packages database in /var/lib/rpm
> > Traceback (most recent call last):
> >   File "/usr/bin/reposync", line 348, 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 887, 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 878, in
> > readStartupConfig
> >     startupconf.releasever = _getsysver(startupconf.installroot,
> > startupconf.distroverpkg)
> >   File "/usr/lib/python2.6/site-packages/yum/config.py", line 1023, in
> > _getsysver
> >     raise Errors.YumBaseError("Error: " + str(e))
> > yum.Errors.YumBaseError: Error: rpmdb open failed
>
> This seems to be the error - it's not able to open your RPM db in
> /var/lib/rpm. Are you running SELinux? I see you're running it via
> sudo, which could be the issue if you're running SELinux but not
> specifying the role in the sudoers file.
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>



-- 
Jack Peterson
[email protected]
(425) 372 - 8514 (Cell)
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to