Index: [Article Count Order] [Thread]

Date:  Tue, 5 Feb 2008 11:34:27 -0800
From:  "Ken Marcus - Precision Web Hosting, Inc." <kenmarcus (at mark) precisionweb.net>
Subject:  [coba-e:11906] Re: run-parts /etc/cron.hourly
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <19f401c8682e$204bc500$6700a8c0@OfficeKen>
References:  <20080201233308.M98297 (at mark) domain-nameit.net>
X-Mail-Count: 11906




> Hi Gerald,
> I've been getting lots of these messages.
> Looks like the entire system has outgrown itself.
> Regards,
> Kenneth
>
> /etc/cron.hourly/yum_checker:
> http://wuarchive.wustl.edu/pub/linux/distributions/centos/4.6/addons/i386/repodata/repomd.xml:
> [Errno 14] HTTP Error 500: Internal Server Error
> Trying other mirror.
>
> /etc/cron.hourly/yum_checker:
> http://www.nuonce.net/repos/repodata/repomd.xml: [Errno 12] Timeout: 
> <urlopen error
> timed out>
> Trying other mirror.
> Cannot open/read repomd.xml file for repository: NuOnce Networks
> failure: repodata/repomd.xml from NuOnce Networks: [Errno 256] No more 
> mirrors to try.
> Error: failure: repodata/repomd.xml from NuOnce Networks: [Errno 256] No 
> more mirrors to
> try.
>
> /etc/cron.hourly/yum_checker:
> http://centos.cs.wisc.edu/pub/mirrors/linux/centos/4.6/os/i386/repodata/repomd.xml:
> [Errno 14]
> HTTP Error 503: Service Temporarily Unavailable
> Trying other mirror.
>
>
>


It might not be a bad idea to add a random delay to the
/etc/cron.hourly/yum_checker
/usr/sausalito/handlers/nuonce-solarspeed/yum/yum_checker
file so that it does not try to check at the exact same time as 100's of 
other machines.

Possibly you could add a random sleep time  like  "sleep 15" to change the 
file to:




#!/bin/bash
# Authors:
# Brian N. Smith  -      NuOnce Networks      - http://www.nuonce.net
# Michael Stauber - Stauber Multimedia Design - http://www.solarspeed.net
# Copyright 2006, NuOnce Networks & Stauber Multimedia Design. All rights 
reserved.

sleep 15

if [ -f /tmp/yum.updating ]; then
    find /tmp/yum.updating -type f -cmin +240 -print | xargs rm
fi

/usr/bin/yum check-update > /tmp/yum.check-update
/bin/chmod 444 /tmp/yum.check-update




----
Ken Marcus
Ecommerce Web Hosting by
Precision Web Hosting, Inc.
http://www.precisionweb.net