dcj
Newbie
Posts: 5
|
|
« Reply #2 on: July 15, 2008, 09:44:47 AM » |
|
OK, my script seems to detect the broken pipe situation via the return code, re-try, and last night, the re-try succeeded.
Here is the tail end of the first attempt:
1 retries left, sleeping for 30 seconds Broken pipe: Broken pipe 0 retries left, sleeping for 30 seconds Ran out of retries; operations did not complete! Ran out of retries; operations did not complete! /usr/local/bin/s3sync.rb:286:in `s3TreeRecurse': undefined method `http_response' for nil:NilClass (NoMethodError) from /usr/local/bin/s3sync.rb:333:in `s3TreeRecurse' from /usr/local/bin/s3sync.rb:314:in `each' from /usr/local/bin/s3sync.rb:314:in `s3TreeRecurse' from /usr/local/bin/s3sync.rb:333:in `s3TreeRecurse' from /usr/local/bin/s3sync.rb:314:in `each' from /usr/local/bin/s3sync.rb:314:in `s3TreeRecurse' from /usr/local/bin/s3sync.rb:346:in `main' from /usr/local/bin/thread_generator.rb:79:in `call' from /usr/local/bin/thread_generator.rb:79:in `initialize' from /usr/local/bin/thread_generator.rb:76:in `new' from /usr/local/bin/thread_generator.rb:76:in `initialize' from /usr/local/bin/s3sync.rb:267:in `new' from /usr/local/bin/s3sync.rb:267:in `main' from /usr/local/bin/s3sync.rb:735 Update node awstats/awstats072008.mail2.clark-communications.com.txt Create node backup/db_2008-07-15.sql.gz
Return code from s3sync: 1
As the return code was non-zero, my script slept for 5 minutes, and then retried the s3sync command, the second time it worked.
So, I'll continue to monitor my script, but so far, this is a major improvement, my backup retries until it succeeds.
|