On Thursday 05 Apr 2012 15:29:22 Razi Khaja wrote:
> I've seen Jack Peterson's post
> https://fedorahosted.org/pipermail/cobbler/2012-April/007489.html,
> regarding adding and reposync'ing an EPEL repository.  I am also
> having errors with 'cobbler reposync'
...
> [root@cobbler ~]# cobbler reposync
> task started: 2012-04-05_092746_reposync
> task started (id=Reposync, time=Thu Apr  5 09:27:46 2012)
> hello, reposync
> run, reposync, run!
> creating:
> /var/www/cobbler/repo_mirror/Fedora-15-x86_64-Updates/.origin/Fedora-15-x8
> 6_64-Updates.repo running: /usr/bin/reposync -l -m -d
> --config=/var/www/cobbler/repo_mirror/Fedora-15-x86_64-Updates/.origin/Fedo
> ra-15-x86_64-Updates.repo --repoid=Fedora-15-x86_64-Updates
> --download_path=/var/www/cobbler/repo_mirror -a x86_64
> received on stdout:
> received on stderr: Error setting up repositories: Cannot retrieve
> repository metadata (repomd.xml) for repository:
> Fedora-15-x86_64-Updates. Please verify its path and try again
...
> !!! TASK FAILED !!!

Are you by any chance using a proxy?

I had the same problem just yesterday and it turned out `cobbler reposync` 
does pass http_proxy variable defined in environment to the 
`/usr/bin/reposync` command it runs.  I.e. in my case I was able to run the 
`/usr/bin/reposync ...` command with the same args as cobbler directly and it 
worked.

Not sure why that happens yet, but a workaround seems to be to add http_proxy 
variable to repo's environment, e.g.:

  cobbler repo edit --name=foo --environment="http_proxy=http://bar/";


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee and access to the email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail 
are subject to the terms and conditions expressed  in the governing client 
engagement leter or contract.
If you have received this email in error please notify 
[email protected]

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, 
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to