Re: Timing out on update

Dougie Nisbet <[email protected]> Wed, 21 Dec 2005 10:35:01 +0000
Newsgroups gmane.comp.web.sitecopy
Message-ID <[email protected]>
Stephan Petersen wrote:

>
> Hi guys,
>
> when updating my files with sitecopy, I often get time outs, typically 
> with about 2.5% of my files (around 5 files out of 200). Upgrading to 
> the latest V0.16.1 didn't help, so I'm wondering of there's maybe 
> something wrong on my ISP's side?
>
> Is there anything I can do to further investigate possible reasons?
>
> Below is an example cut from the output. It times out on file 
> direc_d.html, then proceeds successfully with the next one. I have to 
> run sitecopy again to retry the timed out files; retrying it again 
> once is usually enough. The inconvenience is that waiting for the time 
> outs of the initial run takes about 10 minutes.
>
> Thanks in advance for any pointers,
>
> Stephan

I get this quite a lot. It probably doesn't help you as you said the 
inconvenience is the time wasted, but in the end I gave up investigation 
and learned to live with it. I modified my scripts to cope. Here's a 
typical shell code snippet for how I cope with it. It seems quite robust 
and I just live with the timeouts.


((count=1))
until /usr/bin/sitecopy --update plusnet_photos
do
       echo "FAILED: /usr/bin/sitecopy --update plusnet_photos - 
Attempt: $count"
       ((count++))
       sleep 180
       /usr/bin/sitecopy --fetch plusnet_photos
done
if [[ $count -gt 1 ]] ; then
       echo "SUCCESS: /usr/bin/sitecopy --update plusnet_photos - 
Attempt: $count"
fi



Dougie

_______________________________________________
sitecopy maillist  -  [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy