di-autobuilding: rsync being clumsy
Hello,
On armel di-autobuilding, rsync sometimes fails to transfer files
into ravel.d.o:
INFO: starting rsync
Read from remote host ravel: Connection reset by peer
rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (703 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
io.c(635) [sender=3.0.3]
INFO: cleanup schroot ...
The undesired above self-explained situation happens quite often:
< http://d-i.debian.org/daily-images/armel/ >
The following patch attempts to make a little more robust rsync
step, but maybe also in a clumsy way. If you have better ideas, please
let me know.
--- a/buildscript
+++ b/buildscript
@@ -94,6 +94,18 @@ upload_result() {
DIR=$(date -u '+%Y%m%d-%H:%M')
echo "INFO: starting rsync"
rsync "${INSTALLER_DIR}/checkout/build/dest/" d-i@ravel:${DIR} -a
+ exval=$?
+ if [ ${exval} != 0 ] ; then
+ # Retry
+ echo "INFO: rsync exit ${exval}, retrying one more time"
+ rsync "${INSTALLER_DIR}/checkout/build/dest/" d-i@ravel:${DIR} -a
+ exval=$?
+ if [ ${exval} != 0 ] ; then
+ echo "ERROR: rsync exit ${exval}, I'll try tomorrow..."
+ else
+ echo "INFO: rsync exit success"
+ fi}
+ fi
echo "INFO: unhide ${DIR}"
ssh d-i@ravel unhide ${DIR}
}
Best regards,
--
Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
<free spam>
-- Would you like to make a donation for Debian Conference?
** http://debconf11.debconf.org/payments.xhtml **
</free spam>
Reply to: