[K12OSN] Fwd: Cron <root at udjsvr02> /usr/sbin/update_squidguard_blacklists

k12ltsp at ramsele.dyndns.org k12ltsp at ramsele.dyndns.org
Wed Sep 1 11:55:00 UTC 2004


John Hansknecht <jhansknecht at hanstech.com> wrote ..
> Hi folks,
> 
> My squidguard update cron process is failing with the following error.
> Does 
> anyone have any suggestions on where to start looking for the source of
> the 
> problem.
> 
> rsync: failed to connect to squidguard.mesd.k12.or.us: Connection timed
> out
> rsync error: error in socket IO (code 10) at clientserver.c(83)
> 
> The script looks like this (as far as I know unmodified from installation)
> 
> TARGET=/var/squidGuard/blacklists
> 
> cd $TARGET || exit
> 
> # only run if squidGuard is active!
> [ "`ps auxw | grep squid[G]uard`" ] || exit
> 
> rsync -az squidguard.mesd.k12.or.us::filtering $TARGET
> 
> for DIR in `ls $TARGET`
> do
>         if [ -f $DIR/domains.include ]
>         then
>                 TMP=$RANDOM
>                 cat $DIR/domains $DIR/domains.include | sort | uniq > 
> $DIR/domains.$TMP
>                 mv -f $DIR/domains.$TMP $DIR/domains
>         fi
>         if [ -f $DIR/urls.include ]
>         then
>                 TMP=$RANDOM
>                 cat $DIR/urls $DIR/urls.include | sort | uniq > $DIR/urls.$TMP
>                 mv -f $DIR/urls.$TMP $DIR/urls
>         fi
> done
> 
> /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf  -C all
> # /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf  -u
> 
> chown -R squid.squid $TARGET
> chown -R squid.squid /var/log/squidGuard/
> # inserted by John Hansknecht 6/6/03
> chown -R squid.squid /home/squid/
> 
> sleep 5s
> 
> /usr/bin/killall -HUP squid
> 
> Thanks,
> 
> John Hansknecht


I think rsync needs tcp port 873 to be open in the firewall.
So my tip is check the firewall.

//Henning


More information about the K12OSN mailing list