[tools] mrepo -ugvv problem

Marc Freulon marc.freulon at aems.net
Tue Mar 25 11:23:53 CET 2008


I run mrepo -ugvv and get a reject as:

 

[root at SSREFLNX ~]#

[root at SSREFLNX ~]#

[root at SSREFLNX ~]# mrepo -ugvv

Verbosity set to level 2

Using configfile /etc/mrepo.conf

Setting option confdir in section [main] to: /etc/mrepo.conf.d

Setting option htmldir in section [main] to: /usr/share/mrepo/html

Setting option pxelinux in section [main] to: /usr/lib/syslinux/pxelinux.0

Setting option srcdir in section [main] to: /var/mrepo

Setting option tftpdir in section [main] to: /tftpboot/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 metadata in section [main] to: repomd

Setting option hardlink in section [main] to: no

Setting option no_proxy in section [main] to: localhost,127.0.0.1

Setting option http_proxy in section [main] to: http://193.56.47.21:8080

Setting option https_proxy in section [main] to: http://193.56.47.21:8080

Setting option createrepocmd in section [main] to: /usr/bin/createrepo

Setting option genbasedircmd in section [main] to: /usr/bin/genbasedir

Setting option lftpcmd in section [main] to: /usr/bin/lftp

Setting option mountcmd in section [main] to: /bin/mount

Setting option rsynccmd in section [main] to: /usr/bin/rsync

Setting option umountcmd in section [main] to: /bin/umount

Setting option yumarchcmd in section [main] to: /usr/bin/mrepo

Setting option rhnlogin in section [main] to: Antoine.Lallemand:xba7WQYBs6

Setting option shareiso in section [main] to: yes

Setting option arch in section [4ES] to: i386

4ES-i386: Updating Red Hat Enterprise Linux ES 4 Update 6 (i386)

4ES-i386: Mirror packages from rhns:///rhel-i386-es-4 to
/var/mrepo/4ES-i386/updates

rhnget: Error subscribing to channel rhel-i386-es-4, skipping.

Error Class Code: 37

Error Class Info: You are not allowed to perform administrative tasks
on this system.

Explanation:

     An error has occurred while processing your request. If this problem

     persists please enter a bug report at bugzilla.redhat.com.

     If you choose to submit the bug report, please be sure to include

     details of what you were trying to do when this error occurred and

     details on how to reproduce this problem.

 

mrepo: Mirroring failed for rhns:///rhel-i386-es-4 with message:

  Failed with return code: 256

4ES-i386: Generating Red Hat Enterprise Linux ES 4 Update 6 (i386) meta-data

[root at SSREFLNX ~]#

 

 

Here is an extract of the /etc/mrepo.conf

 

 

 

[root at SSREFLNX ~]# cat /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 section defines paths, commands and what metada to generate

#

#    srcdir = /var/mrepo ---> The location of the ISO images and RPM files

#    wwwdir = /var/www/mrepo  --->  The location of the generated
repositories

#    confdir = /etc/mrepo.conf.d  --->

#    htmldir = /usr/share/mrepo/html The location of the examples .shtml
files

#    tftpdir = /tftpboot/mrepo ---> The location of the YAM TFTP files

#

#    arch = i386 --->  Default Architecture

#

#    Your username and password for RHN channel subscriptions

#    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.4/dists/.

#

#    pxelinux = /usr/lib/syslinux/pxelinux.0  --> The location of the
(latest) pxelinux bootcode

#

#    metadata = apt repomd yum --> What repository metadata do you want to
generate ?

 

[main]

srcdir = /var/mrepo

wwwdir = /var/www/mrepo

confdir = /etc/mrepo.conf.d

arch = i386

#

htmldir = /usr/share/mrepo/html

tftpdir = /tftpboot/mrepo

#

# The location of the different executables

#

createrepocmd = /usr/bin/createrepo

genbasedircmd = /usr/bin/genbasedir

lftpcmd = /usr/bin/lftp

mountcmd = /bin/mount

rsynccmd = /usr/bin/rsync

umountcmd = /bin/umount

#

#yumarchcmd = /usr/bin/yum-arch

yumarchcmd = /usr/bin/mrepo

#

mailto = root at localhost

smtp-server = localhost

#

rhnlogin = Antoine.Lallemand:xba7WQYBs6

#

pxelinux = /usr/lib/syslinux/pxelinux.0

#

metadata = repomd

 

## Specify the required proxy settings

#no_proxy = localhost,mrepo,webserver

#ftp_proxy = http://10.1.2.3:8080

#http_proxy = http://10.1.2.3:8080

#https_proxy = http://10.1.2.3:8080

#

no_proxy = localhost,127.0.0.1

#ftp_proxy =

http_proxy = http://193.56.47.21:8080

https_proxy = http://193.56.47.21:8080

 

## Hardlink files in the srcdir before ending Yam

hardlink = no

 

## Do you want to share the ISO files in wwwdir ?

shareiso = yes

 

## Do you want to create repo indexes ?

#repoindexcmd =

 

## Limit the bandwidth used by rsync in kilobytes per seconds

#rsync-bandwidth-limit =

 

## Clean up packages that are not on the sending side ?

#rsync-cleanup = yes

 

## Exclude debuginfo or source packages ?

#rsync-exclude-debug = yes

#rsync-exclude-srpm = yes

 

## Add extra options to rsync

#rsync-options = -rtHL --partial

 

## Set the I/O timeout in seconds

#rsync-timeout =

 

## Limit the bandwidth used by lftp (in B/secs)

#lftp-bandwidth-limit =

 

## Clean up packages that are not on the sending side ?

#lftp-cleanup = yes

 

## Exclude debuginfo or source packages ?

#lftp-exclude-debug = yes

#lftp-exclude-srpm = yes

 

## Add extra options to lftp (eg. -d for debugging lftp)

#lftp-options =

 

## Add extra options to lftp mirror command

#lftp-mirror-options = -a -P

 

## Set the I/O timeout in seconds

#lftp-timeout =

 

## Clean up packages that are not on the sending side ?

#mirrordir-cleanup = yes

 

## Exclude debuginfo or source packages ?

#mirrordir-exclude-debug = yes

#mirrordir-exclude-srpm = yes

 

## Add extra options to mirrordir

#mirrordir-options =

 

## Skip metadata generation for certain repositories

#skip-metadata = all

 

[4ES]

name = Red Hat Enterprise Linux ES $release Update 6 ($arch)

release = 4

arch = i386

iso = RHEL$release-U6-$arch-ES-disc?.iso

metadata = yum repomd

updates = rhns:///rhel-$arch-es-$release

#rpmforge = http://apt.sw.be/redhat/el4/en/$arch/RPMS.dag/

#

 

 

### Example1: Using ISO files (put ISOs in /var/mrepo/dist1-i386), i386 is
defau

#lt arch

#[dist1]

#name = Distribution example $release ($arch)

#release = 1

#metadata = apt

#iso = dist$release-$arch-disc?.iso

#updates = rsync://rsync.dist1.org/pub/dist/$release/$arch/$repo/

 

### Example2: Using multiple archs for a single definition

#[dist2]

#name = Distribution example $release ($arch)

#release = 2

#arch = i386 i586 i686 x86_64

#metadata = repomd

#os = rsync://rsync.dist2.org/pub/dist/$release/$arch/$repo/

#updates = rsync://rsync.dist2.org/pub/dist/$release/$arch/$repo/

 

### Example3: Using extra repositories and updates from Example1

#[dist3]

#name = Distribution example $release ($arch)

#release = 3

#arch = x86_64

#metadata = apt repomd

#iso = dist$release-$arch-disc?.iso

#os = rsync://rsync.dist3.org/pub/dist/$release/$arch/$repo/

#updates = mrepo://dist1-$arch/$repo/

#contrib = rsync://rsync.dist3.org/pub/dist/$release/$arch/$repo/

 

### Example4: Merging repositories

#[dist4]

#name = Distribution example $release ($arch)

#release = 4

#metadata = apt repomd yum

#contrib = rsync://rsync.dist4.org/dist/$release/$arch/$repo/

#extras = rsync://rsync.dist4.org/dist/$release/$arch/$repo/

#merge = mrepo://$nick/contrib/

#        mrepo://$nick/extras/

 

[root at SSREFLNX ~]#

 

 

Thanks for your help

 

Marc Freulon

 

Atos Euronext Market Solutions

6-8, Boulevard Haussmann

750009 Paris France

Tel      :+33(0)1 73 03 05 25

Mobile :+33(0)6 70 21 96 33

 

Email :  <mailto:marc.freulon at aems.net> marc.freulon at aems.net

            <http://www.aems.net> www.aems.net

 

 


  _____  

 


============= Atos Euronext Market Solutions Disclaimer
============================


The information contained in this e-mail is confidential and solely for the
intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful. If you have received this
email in error, please notify the sender immediately and delete it from your
system. The views expressed in this message do not necessarily reflect those
of Atos Euronext Market Solutions. Atos Euronext Market Solutions Limited -
Registered in England & Wales with registration no. 3962327.  Registered
office address at 25 Bank Street London E14 5NQ United Kingdom.  Atos
Euronext Market Solutions SAS - Registered in France with registration no.
425 100 294.  Registered office address at 6/8 Boulevard Haussmann 75009
Paris France.


L'information contenue dans cet e-mail est confidentielle et uniquement
destinee a la (aux) personne(s) a laquelle (auxquelle(s)) elle est adressee.
Toute copie, publication ou diffusion de cet e-mail est interdite. Si cet
e-mail vous parvient par erreur, nous vous prions de bien  vouloir prevenir
l'expediteur immediatement et d'effacer l'e-mail et les pieces jointes de
votre systeme. Le contenu de ce message electronique ne represente pas
necessairement la position ou le point de vue d'Atos Euronext Market
Solutions. Atos Euronext Market Solutions Limited Societe de droit anglais,
enregistree au Royaume Uni sousle numero 3962327, dont le siege social se
situe 25 Bank Street E14 5NQ Londres Royaume Uni.Atos Euronext Market
Solutions SAS, societe par actions simplifiee, enregistre au registre du
commerce et des societes sous le numero 425 100 294 RCS Paris et dont le
siege social se situe 6/8 Boulevard  Haussmann 75009 Paris France.


  _____  

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpmforge.net/pipermail/tools/attachments/20080325/278586c0/attachment-0001.html


More information about the tools mailing list