[tools] mrepo and rhnget

Dag Wieers dag at wieers.com
Mon Oct 6 14:41:17 CEST 2008


On Mon, 6 Oct 2008, mogruith wrote:

> I'm trying to install a redhat Server 5 EL repository in my company. Every 
> thing seems rights but when I try to build the repo with the mrepo command, I 
> have errors:
>
> [root ~]# mrepo -uvvv
> 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: /mrepo
> Setting option wwwdir in section [main] to: /mrepo/www
> Setting option mailto in section [main] to: xxx at xxx.com
> Setting option smtp-server in section [main] to: localhost
> Setting option arch in section [main] to: i386 x86_64
> Setting option hardlink in section [main] to: yes
> Setting option hardlinkpluscmd in section [main] to: /usr/bin/hardlink++ 
> 2>/dev/null
> Setting option rhnlogin in section [main] to: xxxx:xxxx
> Setting option shareiso in section [main] to: yes
> Setting option arch in section [5Server] to: i386 x86_64
> 5Server-i386: No ISO files found !
> 5Server-i386: Updating Red Hat Enterprise Linux 5 Server (i386)
> 5Server-i386: Mirror packages from rhns:///rhel-i386-server-fastrack-5 to 
> /mrepo/5Server-i386/fastrack
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-i386-server-fastrack-5 with message:
> Failed with return code: 256
> 5Server-i386: Mirror packages from rhns:///rhel-i386-server-hts-5 to 
> /mrepo/5Server-i386/hts
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-i386-server-hts-5 with message:
> Failed with return code: 256
> 5Server-i386: Mirror packages from rhns:///rhn-tools-rhel-i386-server-5 to 
> /mrepo/5Server-i386/rhn-tools
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhn-tools-rhel-i386-server-5 with 
> message:
> Failed with return code: 256
> 5Server-i386: Mirror packages from rhns:///rhel-i386-server-supplementary-5 
> to /mrepo/5Server-i386/supplementary
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-i386-server-supplementary-5 with 
> message:
> Failed with return code: 256
> 5Server-i386: Mirror packages from rhns:///rhel-i386-server-5 to 
> /mrepo/5Server-i386/updates
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-i386-server-5 with message:
> Failed with return code: 256
> 5Server-i386: Mirror packages from rhns:///rhel-i386-server-vt-5 to 
> /mrepo/5Server-i386/vt
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-i386-server-vt-5 with message:
> Failed with return code: 256
> 5Server-x86_64: No ISO files found !
> 5Server-x86_64: Updating Red Hat Enterprise Linux 5 Server (x86_64)
> 5Server-x86_64: Mirror packages from rhns:///rhel-x86_64-server-fastrack-5 to 
> /mrepo/5Server-x86_64/fastrack
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-x86_64-server-fastrack-5 with 
> message:
> Failed with return code: 256
> 5Server-x86_64: Mirror packages from rhns:///rhel-x86_64-server-hts-5 to 
> /mrepo/5Server-x86_64/hts
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-x86_64-server-hts-5 with message:
> Failed with return code: 256
> 5Server-x86_64: Mirror packages from rhns:///rhn-tools-rhel-x86_64-server-5 
> to /mrepo/5Server-x86_64/rhn-tools
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhn-tools-rhel-x86_64-server-5 with 
> message:
> Failed with return code: 256
> 5Server-x86_64: Mirror packages from 
> rhns:///rhel-x86_64-server-supplementary-5 to 
> /mrepo/5Server-x86_64/supplementary
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-x86_64-server-supplementary-5 with 
> message:
> Failed with return code: 256
> 5Server-x86_64: Mirror packages from rhns:///rhel-x86_64-server-5 to 
> /mrepo/5Server-x86_64/updates
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-x86_64-server-5 with message:
> Failed with return code: 256
> 5Server-x86_64: Mirror packages from rhns:///rhel-x86_64-server-vt-5 to 
> /mrepo/5Server-x86_64/vt
> Traceback (most recent call last):
>  File "/usr/bin/rhnget", line 26, in ?
>   from up2date import config, rpcServer, wrapperUtils, up2dateErrors, 
> repoDirector
> ImportError: No module named up2date
> mrepo: Mirroring failed for rhns:///rhel-x86_64-server-vt-5 with message:
>  Failed with return code: 256
>
> Here is my redhat's version : Linux xxx 2.6.18-8.el5 #1 SMP Fri Jan 26 
> 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
>
> I know that up2date doesn't exist in RHEL5 , but I don't know how to modify 
> rhnget. I replaced up2date by yum but it doesn't work better ...
>
> Help will be really appreciated

You have to use the latest subversion release and do a make install to 
have the up2date/rhn code installed that is necessary for rhnget to work.

I will take some time this evening to release a new version of mrepo so 
people have less issues with installing mrepo.

Sorry for the mess.
-- 
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]


More information about the tools mailing list