[users] mrepo problem

Andy Kannberg andy.kannberg at gmail.com
Wed May 27 16:01:23 CEST 2009


Hi,

I'm setting up a mrepo server (RHEL5 only) for a company. So, I've
installed Apache2, mrepo (0.8.6) & createrepo, copied the up2date
stuff from the RHEL4 cd2. I copied the iso's from RHEL5 over to
/var/mrepo/iso and ran mrepo -ugv.
The iso's are mounted, but then an error is shown:

Here's the whole output:

[root at cpu01362 mrepo.conf.d]# mrepo -ugv
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option srcdir in section [main] to: /var/mrepo
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option mailto in section [main] to: root at localhost
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: i386
Setting option arch in section [rhel5-server] to: i386
rhel5-server-i386: Mount ISO rhel-server-5.3-i386-disc1.iso to
/var/www/mrepo/rhel5-server-i386/disc1
rhel5-server-i386: Mount ISO rhel-server-5.3-i386-disc2.iso to
/var/www/mrepo/rhel5-server-i386/disc2
rhel5-server-i386: Mount ISO rhel-server-5.3-i386-disc3.iso to
/var/www/mrepo/rhel5-server-i386/disc3
rhel5-server-i386: Mount ISO rhel-server-5.3-i386-disc4.iso to
/var/www/mrepo/rhel5-server-i386/disc4
rhel5-server-i386: Mount ISO rhel-server-5.3-i386-disc5.iso to
/var/www/mrepo/rhel5-server-i386/disc5
rhel5-server-i386: Updating Red Hat Server 5.3 (i386)
rhel5-server-i386: Mirror packages from ProvincieLimburg:hogeboom to
/var/mrepo/rhel5-server-i386/rhnlogin
rhel5-server-i386: Mirror packages from rhns:///rhel-i386-server-5 to
/var/mrepo/rhel5-server-i386/updates
mrepo: Mirroring failed for rhns:///rhel-i386-server-5 with message:
  Failed with return code: 65280
rhel5-server-i386: Generating Red Hat Server 5.3 (i386) meta-data
rhel5-server-i386: Create repomd repository for os
rhel5-server-i386: Create repomd repository for rhnlogin
rhel5-server-i386: Create repomd repository for updates


Googling on the error, or on the return code didn't give something
useful, so I ran mrepo with more verbose output.

mrepo -ugvvv
Verbosity set to level 3
Using configfile /etc/mrepo.conf
Reading config file /etc/mrepo.conf
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option srcdir in section [main] to: /var/mrepo
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option mailto in section [main] to: root at localhost
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: i386
Reading config file /etc/mrepo.conf.d/rhel5-server.conf
Setting option arch in section [rhel5-server] to: i386
rhel5-server-i386: Updating Red Hat Server 5.3 (i386)
rhel5-server-i386: Mirror packages from ProvincieLimburg:hogeboom to
/var/mrepo/rhel5-server-i386/rhnlogin
Ignoring mirror action for type provincielimburg
rhel5-server-i386: Mirror packages from rhns:///rhel-i386-server-5 to
/var/mrepo/rhel5-server-i386/updates
ERROR: can not find RHNS CA file:: /usr/share/mrepo/rhnRHNS-CA-CERT
mrepo: Mirroring failed for rhns:///rhel-i386-server-5 with message:
  Failed with return code: 65280
rhel5-server-i386: Generating Red Hat Server 5.3 (i386) meta-data

So, it appears it cannot find the file /usr/share/mrepo/rhnRHNS-CA-CERT.
Checking the directory shows that it indeed is not here....How can I
solve that problem ?



Below are the /etc/mrepo.conf and /etc/mrepo.conf.d/rhel5-server.conf:

/etc/mrepo.conf

### Configuration file for mrepo

### The [main] section allows to override mrepo's default settings
### The mrepo-example.conf gives an overview of all the possible settings
[main]
srcdir = /var/mrepo
wwwdir = /var/www/mrepo
confdir = /etc/mrepo.conf.d
arch = i386

mailto = root at localhost
smtp-server = localhost

#rhnlogin = username:password

### Any other section is considered a definition for a distribution
### You can put distribution sections in /etc/mrepo.conf.d/
### Examples can be found in the documentation at:
###     /usr/share/doc/mrepo-0.8.6/dists/.


/etc/mrepo.conf.d/

[rhel5-server]
name = Red Hat Server $release ($arch)
release = 5.3
arch = i386
metadata = repomd yum repoview

### ISO images
iso = rhel-server-$release-$arch-disc?.iso

### Additional repositories
### Your mileage may vary, depending on your entitlements
### If you try any other channel than updates, you might also need to
make sure you have the proper entitlements on RHN
updates = rhns:///rhel-$arch-server-5
#fastrack = rhns:///rhel-$arch-server-fastrack-$release
#supplementary = rhns:///rhel-$arch-server-supplementary-$release
#virtualization = rhns:///rhel-$arch-server-vt-$release
#rhn-tools = rhns:///rhn-tools-rhel-$arch-server-$release

## Your username and password for RHN channel subscriptions
rhnlogin = XXXXX:YYYYY


best regards,
Andy



More information about the users mailing list