[tools] synching rhel-i386-client-workstation-5 using mrepo

Oliver Falk oliver at linux-kernel.at
Fri Jul 6 15:02:35 CEST 2007


On 07/06/2007 02:51 PM, Dag Wieers wrote:
> On Fri, 6 Jul 2007, Bjoern Engels wrote:
> 
>> I'm new on the list, so first "hello to all" :)
>>
>> I'm using mrepo-0.8.4svn-1 to synchronize Redhat Enterprise 5 in
>> different flavours. (Server/Client/i386/x86_64)
>>
>> Now I'm having a problem downloading packages from subchannels:
>>
>> For example I can't download rhn-tools packages which are not very
>> interesting for me, but also the Workstation sub channel of
>> rhel-i386-client-5 doesn't work. (The system/systemid I'm using is
>> entitled to download these packages.)
>>
>> Using Dag's sample configuration config/dists/rhel5c.conf I get the
>> following message:
>>
>> # mrepo -vvvu rhel5c
>> [...]
>> rhel5c-i386: Mirror packages from rhns://rhel-i386-client-workstation-5
>> to /var/mrepo/rhel5c-i386/workstation
>> Traceback (most recent call last):
>>   File "/usr/bin/rhnget", line 501, in ?
>>     main()
>>   File "/usr/bin/rhnget", line 480, in main
>>     mirrorrhn(op.uri, op.destination)
>>   File "/usr/bin/rhnget", line 349, in mirrorrhn
>>     systemid = rhnlogin(url, path)
>>   File "/usr/bin/rhnget", line 316, in rhnlogin
>>     li = rpcServer.doCall(server.up2date.login, systemid)
>>   File "/usr/share/rhn/up2date_client/rpcServer.py", line 246, in doCall
>>     raise up2dateErrors.CommunicationError(e.args[1])
>> up2date_client.up2dateErrors.CommunicationError: Error communicating
>> with server. The message was:
>> Name or service not known
>> mrepo: Mirroring failed for rhns://rhel-i386-client-workstation-5 with
>> message:
>>   Failed with return code: 256
>>
>> Is there any way to get these packages using mrepo?
> 
> You have a syntax error in your URL. There is a missing / and that makes 
> the URL be parsed using rhel-i386-client-workstation-5 as the servername.
> 
> The syntax is:
> 
> 	rhns://server:port/channel
> 
> so in your case that needs to be:
> 
> 	rhns:///rhel-i386-client-workstation-5
> 
> not
> 
> 	rhns://rhel-i386-client-workstation-5

:-) We always run into the same error again and again... :-)

-of


More information about the tools mailing list