Fixed this.

cobbler reposync worked fine from the command-line, but hung on a wget 
command if run from a cron job.

Turns out there is a web proxy setting in the log-in shell.  If you're 
logged in the proxy is configured and everything works; if not wget hangs.

Created a script that configures the proxy, then does the cobbler 
reposync. Call that from the cron job - everything fine.

Thought I'd record my stupidity in case it helps the next guy.


Andy

Andy Miller wrote:
> Folks,
>
> I've set up a Cobbler server to mirror CentOS 5.4. Everything seems OK,
> except that when I do a reposync things hang. 
>
> Having a poke arround seems to indicate that reposync is trying to wget
> comps.xml from the repos, but the CentOS repos don't have a comps.xml.
> If I kill the wget, then the rest of the reposync seems to procede OK,
> but this is kind of stops the reposync being an overnight task.
>
> Any ideas how I can cure this?
>
> Many Thanks
>
> Andy Miller
>   

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

Reply via email to