Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 0ce9ab0f authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Retries with force

parent e900e166
......@@ -93,7 +93,7 @@ for dir in $(find . -maxdepth 3 -type d); do
continue
fi
log "[$KEY] local checksum: $local_sha" "debug"
log "[$KEY] idos checksum: $local_sha" "debug"
log "[$KEY] idos checksum: $irods_sha" "debug"
log "[$KEY] Local checksum differs from last dump. Let's dump it"
irm $KEY/previous.tar > /dev/null 2>&1 # Silently remove previous.tar, ignore errors
......@@ -112,11 +112,11 @@ for dir in $(find . -maxdepth 3 -type d); do
# {
iput \
--lfrestart $RESIFDD_WORKDIR/$KEY.lfrestart \
--retries 5 -T -K \
--retries 5 -T -K -f \
$RESIFDD_WORKDIR/$KEY.tar $KEY/latest.tar # 2>&1 1>&3 3>&- | logger -t 'resifdd' -p local3.error; } 3>&1 1>&2 | logger -t 'resifdd' -p local3.info
RC=$?
if [[ $RC -ne 0 ]]; then
log "[$KEY] Error sending file to irods. The command was: iput --lfrestart $RESIFDD_WORKDIR/$KEY.lfrestart --retries 5 -T -K $RESIFDD_WORKDIR/$KEY.tar $KEY/latest.tar" 'error'
log "[$KEY] Error sending file to irods. The command was: iput --lfrestart $RESIFDD_WORKDIR/$KEY.lfrestart --retries 5 -T -K -f $RESIFDD_WORKDIR/$KEY.tar $KEY/latest.tar" 'error'
log "[$KEY] Rolling back from $KEY/previous.tar to $KEY/latest.tar"
# Roll back
irm -f $KEY/latest.tar
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment