From: Anton Farygin <rider@altlinux.com>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] E: Sisyphus sync problem
Date: Tue, 08 Nov 2011 15:08:51 +0400
Message-ID: <4EB90DC3.8010802@altlinux.com> (raw)
In-Reply-To: <20111108110108.GC3444@altlinux.org>
08.11.2011 15:01, Dmitry V. Levin пишет:
> On Tue, Nov 08, 2011 at 01:07:11PM +0400, Alexey Borisenkov wrote:
>> 08.11.2011 12:53, Michael Shigorin пишет:
>>> On Tue, Nov 08, 2011 at 11:16:55AM +0300, Grigory Milev wrote:
>>>>> --timeout 120
>>>> И чем он поможет? Просто прервет работу :(
>>>
>>> Хм, ты прав -- мне казалось, что там 60
>>> секунд по умолчанию;
>>> в мане: "The default is 0, which means no timeout."
>>
>> Там, возможно, и no timeout, но пока я *на
>> стороне сервера* не прописал параметр
>> timeout=1200, жизни с локальным зеркалом не
>> было никакой, отваливался по таймауту :( А
>> сейчас вроде нормально работает вот уж
>> несколько месяцев.
>
> На сервере rsync.altlinux timeout=600, но зеркалирующим это, судя по
> логам, не помогает - возникает ошибка вида
> rsync error: timeout in data send/receive (code 30) at io.c(137) [sender=3.0.9]
> заведомо до истечения этих 600 секунд.
В итоге мне помогает такое наколенное чудо-юдо, каждый может подправить
на свой вкус:
#!/bin/sh
PIDFILE="/tmp/`echo $@|md5sum|cut -f1 -d' '`.pid"
if [ -f $PIDFILE ];then
RSYNC_PID=`cat $PIDFILE`
if [ -n "$RSYNC_PID" ];then
ps --ppid `cat $PIDFILE` --no-heading -o pid|while read pid;do [ -n
"$pid" ] && kill -9 $pid ;done
[ -d "/proc/$RSYNC_PID" ] && exit 0
fi
fi
echo $$ >$PIDFILE
while ! rsync "$@"; do sleep 5s; done
rm -f /tmp/$PIDFILE.pid
next prev parent reply other threads:[~2011-11-08 11:08 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 23:06 Michael Pozhidaev
2011-11-08 0:21 ` Michael Shigorin
2011-11-08 5:48 ` Michael Pozhidaev
2011-11-08 7:14 ` Michael Pozhidaev
2011-11-08 7:20 ` Michael Shigorin
2011-11-08 8:16 ` Grigory Milev
2011-11-08 8:53 ` Michael Shigorin
2011-11-08 9:02 ` Grigory Milev
2011-11-08 9:07 ` Alexey Borisenkov
2011-11-08 9:31 ` Michael Shigorin
2011-11-08 9:34 ` Alexey Borisenkov
2011-11-08 10:52 ` Dmitry V. Levin
2011-11-08 11:01 ` Dmitry V. Levin
2011-11-08 11:08 ` Alexei Takaseev
2011-11-08 11:17 ` Anton Farygin
2011-11-08 11:08 ` Anton Farygin [this message]
2011-11-08 9:29 ` Michael Pozhidaev
2011-11-08 7:56 ` Andrey Liakhovets
2011-11-08 14:09 ` Pavel N. Solovyov
2011-11-18 16:33 ` Vyatcheslav Perevalov
2011-11-18 17:07 ` Pavel N. Solovyov
2011-11-18 18:00 ` Dubrovskiy Viacheslav
2011-11-18 18:07 ` Vyatcheslav Perevalov
2011-11-18 18:11 ` Dubrovskiy Viacheslav
2011-11-18 18:30 ` Vyatcheslav Perevalov
2011-11-18 18:44 ` Vyatcheslav Perevalov
2011-11-21 8:43 ` Sergei Epiphanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EB90DC3.8010802@altlinux.com \
--to=rider@altlinux.com \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git