Closed shesek closed 12 years ago
Hi, can you send me the full script output in DEBUG mode? Il giorno 31/ott/2012 18:09, "Nadav" notifications@github.com ha scritto:
When uploading a large file in chunks, the first few chunks works fine, than I'm getting an 502 error with one of the chunks. This is the response I'm getting:
HTTP/1.1 502 Bad Gateway Server: nginx/1.2.3 Date: Wed, 31 Oct 2012 17:02:38 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: keep-alive Cache-Control: no-cache
Dropbox - 5xx
Error
Something went wrong. Don't worry, your files are still safe and the Dropboxers have been notified. Check out our Help Center and forums for help, or head back to home. I'm not sure if that's a problem on your side or on Dropbox's, but I thought you might want to take a look. — Reply to this email directly or view it on GitHubhttps://github.com/andreafabrizi/Dropbox-Uploader/issues/20.shesek commented 12 years agoSure. I also added an
cat $RESPONSE_FILE
when there's an error, to see the exact response.+ RESPONSE_FILE=/tmp/du_resp_debug + for i in '$BIN_DEPS' + which curl + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which sed + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which basename + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which grep + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which cut + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which stat + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which dd + '[' 0 -ne 0 ']' + '[' -f /root/.dropbox_uploader ']' ++ sed -n 's/APPKEY:\([a-z A-Z 0-9]*\)/\1/p' /root/.dropbox_uploader + APPKEY=XXXXXXXXXX ++ sed -n 's/APPSECRET:\([a-z A-Z 0-9]*\)/\1/p' /root/.dropbox_uploader + APPSECRET=XXXXXXXXXX ++ sed -n 's/ACCESS_LEVEL:\([A-Z]*\)/\1/p' /root/.dropbox_uploader + ACCESS_LEVEL= ++ sed -n 's/OAUTH_ACCESS_TOKEN_SECRET:\([a-z A-Z 0-9]*\)/\1/p' /root/.dropbox_uploader + OAUTH_ACCESS_TOKEN_SECRET=XXXXXXXXXX ++ sed -n 's/OAUTH_ACCESS_TOKEN:\([a-z A-Z 0-9]*\)/\1/p' /root/.dropbox_uploader + OAUTH_ACCESS_TOKEN=XXXXXXXXXX + '[' -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXXX ']' + '[' -z '' ']' + ACCESS_LEVEL=dropbox + COMMAND=upload + case $COMMAND in + FILE_SRC=/home/nadav/2012-10-31.tar.gz.gpg ++ urlencode test90.gpg ++ str=test90.gpg ++ echo test90.gpg + FILE_DST=test90.gpg + '[' '!' -f /home/nadav/2012-10-31.tar.gz.gpg ']' + '[' -z test90.gpg ']' ++ file_size /home/nadav/2012-10-31.tar.gz.gpg ++ '[' linux-gnu == linux-gnu -o linux-gnu == cygwin ']' ++ stat --format=%s /home/nadav/2012-10-31.tar.gz.gpg ++ return + FILE_SIZE=279246665 + '[' 279246665 -gt 157286000 ']' + COMMAND=ckupload + case "$COMMAND" in + print ' > Uploading "/home/nadav/2012-10-31.tar.gz.gpg" to "test90.gpg"' + '[' 1 -eq 1 ']' + echo -ne ' > Uploading "/home/nadav/2012-10-31.tar.gz.gpg" to "test90.gpg"' > Uploading "/home/nadav/2012-10-31.tar.gz.gpg" to "test90.gpg"++ file_size /home/nadav/2012-10-31.tar.gz.gpg ++ '[' linux-gnu == linux-gnu -o linux-gnu == cygwin ']' ++ stat --format=%s /home/nadav/2012-10-31.tar.gz.gpg ++ return + FILE_SIZE=279246665 + OFFSET=0 + UPLOAD_ID= + true + let OFFSET_MB=0/1024/1024 + dd if=/home/nadav/2012-10-31.tar.gz.gpg of=/tmp/du_chunk_29782 bs=1M skip=0 count=50 + '[' 0 -ne 0 ']' ++ utime +++ date +%s ++ echo 1351705020 + time=1351705020 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_29782 'https://api-content.dropbox.com/1/chunked_upload?&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1351705020&oauth_nonce=XXXXXXXXXX' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=NCC5sISlMYpIBXClFfQjaA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=52428800 + '[' 52428800 -eq 279246665 ']' + true + let OFFSET_MB=52428800/1024/1024 + dd if=/home/nadav/2012-10-31.tar.gz.gpg of=/tmp/du_chunk_29782 bs=1M skip=50 count=50 + '[' 52428800 -ne 0 ']' + CHUNK_PARAMS='upload_id=XXXXXXXXXX&offset=52428800' ++ utime +++ date +%s ++ echo 1351705929 + time=1351705929 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_29782 'https://api-content.dropbox.com/1/chunked_upload?upload_id=XXXXXXXXXX&offset=52428800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1351705929&oauth_nonce=XXXXXXXXXX' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=XXXXXXXXXX ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=104857600 + '[' 104857600 -eq 279246665 ']' + true + let OFFSET_MB=104857600/1024/1024 + dd if=/home/nadav/2012-10-31.tar.gz.gpg of=/tmp/du_chunk_29782 bs=1M skip=100 count=50 + '[' 104857600 -ne 0 ']' + CHUNK_PARAMS='upload_id=XXXXXXXXXX&offset=104857600' ++ utime +++ date +%s ++ echo 1351706928 + time=1351706928 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_29782 'https://api-content.dropbox.com/1/chunked_upload?upload_id=XXXXXXXXXX&offset=XXXXXXXXXX&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1351706928&oauth_nonce=XXXXXXXXXX' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print ' > FAILED\n' + '[' 1 -eq 1 ']' + echo -ne ' > FAILED\n' > FAILED + print ' An error occurred requesting /chunked_upload\n' + '[' 1 -eq 1 ']' + echo -ne ' An error occurred requesting /chunked_upload\n' An error occurred requesting /chunked_upload + cat /tmp/du_resp_debug HTTP/1.1 100 Continue HTTP/1.1 502 Bad Gateway Server: nginx/1.2.3 Date: Wed, 31 Oct 2012 18:26:29 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: keep-alive Cache-Control: no-cache <html> <head><title>Dropbox - 5xx</title> <link href="https://www.dropbox.com/static/css/main.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="/static/images/favicon.ico"/> </head> <body style="background-color:#fff"> <br/><br/> <div align="center"> <table><tr><td width="600px"> <center><img id="errorimage" src="/static/images/sickbox.png"/></center> <div id="errorbox"> <h1>Error</h1>Something went wrong. Don't worry, your files are still safe and the Dropboxers have been notified. Check out our <a href="https://www.dropbox.com/help">Help Center</a> and <a href="http://forums.dropbox.com">forums</a> for help, or head back to <a href="https://www.dropbox.com/home">home</a>. </div> </td></tr></table> </div> <script type="text/javascript" src="/static/javascript/external/prototype.js"></script> <script> message = {"fr": "\x3ch1>Error\x3c/h1>Something went wrong. Don't worry, your files are still safe and the Dropboxers have been notified. Check out our \x3ca href=\"https://www.dropbox.com/help\">Help Center\x3c/a> and \x3ca href=\"http://forums.dropbox.com\">forums\x3c/a> for help, or head back to \x3ca href=\"https://www.dropbox.com/home\">home\x3c/a>.", "de": "\x3ch1>Fehler\x3c/h1>Es ist etwas schief gelaufen. Keine Angst, deine Dateien sind weiterhin sicher und die Dropboxer wurden benachrichtigt. Suche im \x3ca href=\"https://www.dropbox.com/help\">Hilfecenter\x3c/a> oder in den \x3ca href=\"http://forums.dropbox.com\">Foren\x3c/a> nach Hilfe. Oder geh zur\u00fcck zur \x3ca href=\"https://www.dropbox.com/home\">Startseite\x3c/a>.", "ko": "\x3ch1>\uc624\ub958\x3c/h1>\ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \ud30c\uc77c\uc774 \uc190\uc0c1\ub418\uc9c0 \uc54a\uc558\uc73c\ubbc0\ub85c \uc548\uc2ec\ud558\uc2dc\uae30 \ubc14\ub77c\uba70, \uc774 \ubb38\uc81c\ub294 Dropboxer \uc0ac\uc6a9\uc790\uc5d0\uac8c \ud1b5\ubcf4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub3c4\uc6c0\uc774 \ud544\uc694\ud55c \uacbd\uc6b0 Dropbox\uc758 \x3ca href=\"https://www.dropbox.com/help\">\ub3c4\uc6c0\ub9d0 \uc13c\ud130\x3c/a> \ubc0f \x3ca href=\"http://forums.dropbox.com\">\ud3ec\ub7fc\x3c/a>\uc744 \ucc38\uc870\ud558\uac70\ub098 \x3ca href=\"https://www.dropbox.com/home\">\ud648\x3c/a>\uc73c\ub85c \ub3cc\uc544\uac00\uc138\uc694.", "ja": "\x3ch1>\u30a8\u30e9\u30fc\x3c/h1>\u6240\u5b9a\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3054\u5229\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u5b89\u5168\u306b\u4fdd\u5b58\u3055\u308c\u3066\u304a\u308a\u3001Dropbox \u30b9\u30bf\u30c3\u30d5\u306b\u554f\u984c\u306e\u901a\u77e5\u304c\u9001\u3089\u308c\u3066\u3044\u307e\u3059\u3002\x3ca href=\"https://www.dropbox.com/help\">\u30d8\u30eb\u30d7\u30bb\u30f3\u30bf\u30fc\x3c/a>\u3068\x3ca href=\"http://forums.dropbox.com\">\u30d5\u30a9\u30fc\u30e9\u30e0\x3c/a>\u3067\u4e0d\u660e\u306a\u70b9\u3092\u304a\u8abf\u3079\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u306f\u3001\x3ca href=\"https://www.dropbox.com/home\">\u30db\u30fc\u30e0\x3c/a>\u306b\u623b\u3063\u3066\u304f\u3060\u3055\u3044\u3002", "es": "\x3ch1>Error\x3c/h1>Algo sali\u00f3 mal. No te preocupes; tus archivos a\u00fan est\u00e1n a salvo y los dropboxers han recibido una notificaci\u00f3n. Consulta el \x3ca href=\"https://www.dropbox.com/help\">Centro de ayuda\x3c/a> y los \x3ca href=\"http://forums.dropbox.com\">foros\x3c/a> para obtener ayuda o vuelve al \x3ca href=\"https://www.dropbox.com/home\">Inicio\x3c/a>."}; function read_cookie (name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; } Event.observe(document, 'dom:loaded', function () { var locale = read_cookie('locale'); if (locale) { var msg = message[locale]; if (msg) { $('errorbox').update(msg); } } }); </script> </body> </html>+ remove_temp_files + '[' 1 -eq 0 ']' + exit 1
(Sensitive data replaced with XXXXX)
topher200 commented 12 years agoI'm having the same issue. Some uploads succeed, but it seems like the larger the file the higher chance it has to fail. Here's my debug log:
[XXXXXX ~] ./dropbox_uploader.sh upload downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv + RESPONSE_FILE=/tmp/du_resp_debug + for i in '$BIN_DEPS' + which curl + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which sed + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which basename + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which grep + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which cut + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which stat + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which dd + '[' 0 -ne 0 ']' + '[' -f /media/XXXXXXX/home/XXXXXXX/.dropbox_uploader ']' ++ sed -n 's/APPKEY:\([a-z A-Z 0-9]*\)/\1/p' /media/XXXXXXX/home/XXXXXXX/.dropbox_uploader + APPKEY=XXXXXXX ++ sed -n 's/APPSECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/XXXXXXX/home/XXXXXXX/.dropbox_uploader + APPSECRET=XXXXXXX ++ sed -n 's/ACCESS_LEVEL:\([A-Z]*\)/\1/p' /media/XXXXXXX/home/XXXXXXX/.dropbox_uploader + ACCESS_LEVEL=sandbox ++ sed -n 's/OAUTH_ACCESS_TOKEN_SECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/XXXXXXX/home/XXXXXXX/.dropbox_uploader + OAUTH_ACCESS_TOKEN_SECRET=XXXXXXX ++ sed -n 's/OAUTH_ACCESS_TOKEN:\([a-z A-Z 0-9]*\)/\1/p' /media/XXXXXXX/home/XXXXXXX/.dropbox_uploader + OAUTH_ACCESS_TOKEN=XXXXXXX + '[' -z XXXXXXX -o -z XXXXXXX -o -z XXXXXXX -o -z XXXXXXX ']' + '[' -z sandbox ']' + COMMAND=upload + case $COMMAND in + FILE_SRC=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv ++ urlencode '' ++ str= ++ echo + FILE_DST= + '[' '!' -f downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv ']' + '[' -z '' ']' ++ basename downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv + FILE_DST=NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv ++ file_size downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv ++ '[' linux-gnu == linux-gnu -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv ++ return + FILE_SIZE=4446465750 + '[' 4446465750 -gt 157286000 ']' + COMMAND=ckupload + case "$COMMAND" in + print ' > Uploading "downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv" to "NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv"' + '[' 1 -eq 1 ']' + echo -ne ' > Uploading "downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv" to "NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv"' ++ file_size downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv ++ '[' linux-gnu == linux-gnu -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv ++ return + FILE_SIZE=4446465750 + OFFSET=0 + UPLOAD_ID= + true + let OFFSET_MB=0/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=0 count=50 + '[' 0 -ne 0 ']' ++ utime +++ date +%s ++ echo 1351867950 + time=1351867950 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351867950&oauth_nonce=17847' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=52428800 + '[' 52428800 -eq 4446465750 ']' + true + let OFFSET_MB=52428800/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=50 count=50 + '[' 52428800 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=52428800' ++ utime +++ date +%s ++ echo 1351868002 + time=1351868002 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=52428800&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868002&oauth_nonce=12420' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=104857600 + '[' 104857600 -eq 4446465750 ']' + true + let OFFSET_MB=104857600/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=100 count=50 + '[' 104857600 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=104857600' ++ utime +++ date +%s ++ echo 1351868052 + time=1351868052 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=104857600&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868052&oauth_nonce=18157' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=157286400 + '[' 157286400 -eq 4446465750 ']' + true + let OFFSET_MB=157286400/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=150 count=50 + '[' 157286400 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=157286400' ++ utime +++ date +%s ++ echo 1351868130 + time=1351868130 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=157286400&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868130&oauth_nonce=9413' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=209715200 + '[' 209715200 -eq 4446465750 ']' + true + let OFFSET_MB=209715200/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=200 count=50 + '[' 209715200 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=209715200' ++ utime +++ date +%s ++ echo 1351868186 + time=1351868186 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=209715200&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868186&oauth_nonce=5388' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=262144000 + '[' 262144000 -eq 4446465750 ']' + true + let OFFSET_MB=262144000/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=250 count=50 + '[' 262144000 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=262144000' ++ utime +++ date +%s ++ echo 1351868235 + time=1351868235 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=262144000&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868235&oauth_nonce=29983' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=314572800 + '[' 314572800 -eq 4446465750 ']' + true + let OFFSET_MB=314572800/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=300 count=50 + '[' 314572800 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=314572800' ++ utime +++ date +%s ++ echo 1351868297 + time=1351868297 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=314572800&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868297&oauth_nonce=27598' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=367001600 + '[' 367001600 -eq 4446465750 ']' + true + let OFFSET_MB=367001600/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=350 count=50 + '[' 367001600 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=367001600' ++ utime +++ date +%s ++ echo 1351868354 + time=1351868354 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=367001600&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868354&oauth_nonce=23561' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=419430400 + '[' 419430400 -eq 4446465750 ']' + true + let OFFSET_MB=419430400/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=400 count=50 + '[' 419430400 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=419430400' ++ utime +++ date +%s ++ echo 1351868417 + time=1351868417 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=419430400&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868417&oauth_nonce=23100' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=471859200 + '[' 471859200 -eq 4446465750 ']' + true + let OFFSET_MB=471859200/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=450 count=50 + '[' 471859200 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=471859200' ++ utime +++ date +%s ++ echo 1351868498 + time=1351868498 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=471859200&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868498&oauth_nonce=12842' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=eZUs_8poFb8syA4HSuyOtg ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=524288000 + '[' 524288000 -eq 4446465750 ']' + true + let OFFSET_MB=524288000/1024/1024 + dd if=downloads/NBA.2012.10.31.Grizzlies@Clippers.720p60.mkv of=/tmp/du_chunk_4656 bs=1M skip=500 count=50 + '[' 524288000 -ne 0 ']' + CHUNK_PARAMS='upload_id=eZUs_8poFb8syA4HSuyOtg&offset=524288000' ++ utime +++ date +%s ++ echo 1351868550 + time=1351868550 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_4656 'https://api-content.dropbox.com/1/chunked_upload?upload_id=eZUs_8poFb8syA4HSuyOtg&offset=524288000&oauth_consumer_key=XXXXXXX&oauth_token=XXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXX&oauth_timestamp=1351868550&oauth_nonce=3936' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print ' > FAILED\n' + '[' 1 -eq 1 ']' + echo -ne ' > FAILED\n' + print ' An error occurred requesting /chunked_upload\n' + '[' 1 -eq 1 ']' + echo -ne ' An error occurred requesting /chunked_upload\n' + cat /tmp/du_resp_debug + remove_temp_files + '[' 1 -eq 0 ']' + exit 1
topher200 commented 12 years agoAccording to the Dropbox api reference, 502 error is a Server Error. Perhaps the script should just try that chunk again?
topher200 commented 12 years agoThe chunked_upload docs say "Chunks can be any size up to 150 MB. A typical chunk is 4 MB." I know 150 MB should work fine, but perhaps using a smaller chunk size would result in fewer errors?
andreafabrizi commented 12 years agoPlease, try the latest version. Now, if an error occurs during a chunk uploading, the upload is retried for a maximum of three times. Let me know.
shesek commented 12 years agoSeems like its working fine for me when it re-tries. Thanks!
topher200 commented 12 years agoGreat change! I have seen several instances where my uploads would have failed before, but continued anyway due to the three attempts.
I'm still having issues though. I no longer have issues with chunked_upload, but instead commit_chunked_upload. I hoped to fix it a similar way (repeat commit_chunked_upload until it went through), but it doesn't seem to be working. Here I ran an upload, where it loops and tries again (up to 20 (!!) times) if it fails on commit. I also added the
cat $RESPONSE_FILE
to the error output, as suggested above.+ RESPONSE_FILE=/tmp/du_resp_debug + for i in '$BIN_DEPS' + which curl + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which sed + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which basename + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which date + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which grep + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which cut + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which stat + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which dd + '[' 0 -ne 0 ']' + '[' -f /media/sdg1/home/topher200/.dropbox_uploader ']' ++ sed -n 's/APPKEY:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + APPKEY=XXXXXXXXXX ++ sed -n 's/APPSECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + APPSECRET=XXXXXXXXXX ++ sed -n 's/ACCESS_LEVEL:\([A-Z]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + ACCESS_LEVEL=sandbox ++ sed -n 's/OAUTH_ACCESS_TOKEN_SECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + OAUTH_ACCESS_TOKEN_SECRET=XXXXXXXXXX ++ sed -n 's/OAUTH_ACCESS_TOKEN:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + OAUTH_ACCESS_TOKEN=XXXXXXXXX + '[' -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXX ']' + '[' -z sandbox ']' + COMMAND=upload + case $COMMAND in + FILE_SRC=downloads/31.10.2012.DEN@PHI.540p.mkv + FILE_DST= + '[' '!' -f downloads/31.10.2012.DEN@PHI.540p.mkv ']' + '[' -z '' ']' ++ basename downloads/31.10.2012.DEN@PHI.540p.mkv + FILE_DST=/31.10.2012.DEN@PHI.540p.mkv ++ file_size downloads/31.10.2012.DEN@PHI.540p.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/31.10.2012.DEN@PHI.540p.mkv ++ return + FILE_SIZE=1192261627 + '[' 1192261627 -gt 157286000 ']' + db_ckupload downloads/31.10.2012.DEN@PHI.540p.mkv /31.10.2012.DEN@PHI.540p.mkv + local FILE_SRC=downloads/31.10.2012.DEN@PHI.540p.mkv ++ urlencode /31.10.2012.DEN@PHI.540p.mkv ++ local data +++ curl -s -o /dev/null -w '%{url_effective}' --get --data-urlencode /31.10.2012.DEN@PHI.540p.mkv '' ++ data='/?' ++ '[' 3 '!=' 3 ']' ++ echo '' + local FILE_DST= + print ' > Uploading "downloads/31.10.2012.DEN@PHI.540p.mkv" to "/31.10.2012.DEN@PHI.540p.mkv"' + '[' 1 -eq 1 ']' + echo -ne ' > Uploading "downloads/31.10.2012.DEN@PHI.540p.mkv" to "/31.10.2012.DEN@PHI.540p.mkv"' > Uploading "downloads/31.10.2012.DEN@PHI.540p.mkv" to "/31.10.2012.DEN@PHI.540p.mkv"++ file_size downloads/31.10.2012.DEN@PHI.540p.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/31.10.2012.DEN@PHI.540p.mkv ++ return + local FILE_SIZE=1192261627 + local OFFSET=0 + local UPLOAD_ID= + local UPLOAD_ERROR=0 + '[' 0 -ne 1192261627 ']' + let OFFSET_MB=0/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=0 count=50 + '[' 0 -ne 0 ']' ++ utime +++ date +%s ++ echo 1352427058 + time=1352427058 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427058&oauth_nonce=31421' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=52428800 + '[' 52428800 -ne 1192261627 ']' + let OFFSET_MB=52428800/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=50 count=50 + '[' 52428800 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=52428800' ++ utime +++ date +%s ++ echo 1352427344 + time=1352427344 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=52428800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427344&oauth_nonce=13390' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=104857600 + '[' 104857600 -ne 1192261627 ']' + let OFFSET_MB=104857600/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=100 count=50 + '[' 104857600 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=104857600' ++ utime +++ date +%s ++ echo 1352427655 + time=1352427655 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=104857600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427655&oauth_nonce=6318' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=157286400 + '[' 157286400 -ne 1192261627 ']' + let OFFSET_MB=157286400/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=150 count=50 + '[' 157286400 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=157286400' ++ utime +++ date +%s ++ echo 1352427963 + time=1352427963 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=157286400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427963&oauth_nonce=31869' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=209715200 + '[' 209715200 -ne 1192261627 ']' + let OFFSET_MB=209715200/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=200 count=50 + '[' 209715200 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=209715200' ++ utime +++ date +%s ++ echo 1352428261 + time=1352428261 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=209715200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428261&oauth_nonce=12122' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=262144000 + '[' 262144000 -ne 1192261627 ']' + let OFFSET_MB=262144000/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=250 count=50 + '[' 262144000 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=262144000' ++ utime +++ date +%s ++ echo 1352428505 + time=1352428505 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=262144000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428505&oauth_nonce=25017' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=314572800 + '[' 314572800 -ne 1192261627 ']' + let OFFSET_MB=314572800/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=300 count=50 + '[' 314572800 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=314572800' ++ utime +++ date +%s ++ echo 1352428702 + time=1352428702 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=314572800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428702&oauth_nonce=16529' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=367001600 + '[' 367001600 -ne 1192261627 ']' + let OFFSET_MB=367001600/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=350 count=50 + '[' 367001600 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=367001600' ++ utime +++ date +%s ++ echo 1352428866 + time=1352428866 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=367001600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428866&oauth_nonce=32533' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=419430400 + '[' 419430400 -ne 1192261627 ']' + let OFFSET_MB=419430400/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=400 count=50 + '[' 419430400 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=419430400' ++ utime +++ date +%s ++ echo 1352429041 + time=1352429041 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=419430400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429041&oauth_nonce=22916' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=471859200 + '[' 471859200 -ne 1192261627 ']' + let OFFSET_MB=471859200/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=450 count=50 + '[' 471859200 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=471859200' ++ utime +++ date +%s ++ echo 1352429211 + time=1352429211 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=471859200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429211&oauth_nonce=28739' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=524288000 + '[' 524288000 -ne 1192261627 ']' + let OFFSET_MB=524288000/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=500 count=50 + '[' 524288000 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=524288000' ++ utime +++ date +%s ++ echo 1352429365 + time=1352429365 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=524288000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429365&oauth_nonce=16184' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=576716800 + '[' 576716800 -ne 1192261627 ']' + let OFFSET_MB=576716800/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=550 count=50 + '[' 576716800 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=576716800' ++ utime +++ date +%s ++ echo 1352429505 + time=1352429505 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=576716800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429505&oauth_nonce=30368' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=629145600 + '[' 629145600 -ne 1192261627 ']' + let OFFSET_MB=629145600/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=600 count=50 + '[' 629145600 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=629145600' ++ utime +++ date +%s ++ echo 1352429637 + time=1352429637 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=629145600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429637&oauth_nonce=12168' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=681574400 + '[' 681574400 -ne 1192261627 ']' + let OFFSET_MB=681574400/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=650 count=50 + '[' 681574400 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=681574400' ++ utime +++ date +%s ++ echo 1352429762 + time=1352429762 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=681574400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429762&oauth_nonce=14121' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=734003200 + '[' 734003200 -ne 1192261627 ']' + let OFFSET_MB=734003200/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=700 count=50 + '[' 734003200 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=734003200' ++ utime +++ date +%s ++ echo 1352429898 + time=1352429898 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=734003200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429898&oauth_nonce=32224' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=786432000 + '[' 786432000 -ne 1192261627 ']' + let OFFSET_MB=786432000/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=750 count=50 + '[' 786432000 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=786432000' ++ utime +++ date +%s ++ echo 1352430026 + time=1352430026 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=786432000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430026&oauth_nonce=12436' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=838860800 + '[' 838860800 -ne 1192261627 ']' + let OFFSET_MB=838860800/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=800 count=50 + '[' 838860800 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=838860800' ++ utime +++ date +%s ++ echo 1352430139 + time=1352430139 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=838860800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430139&oauth_nonce=26338' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=891289600 + '[' 891289600 -ne 1192261627 ']' + let OFFSET_MB=891289600/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=850 count=50 + '[' 891289600 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=891289600' ++ utime +++ date +%s ++ echo 1352430283 + time=1352430283 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=891289600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430283&oauth_nonce=9721' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=943718400 + '[' 943718400 -ne 1192261627 ']' + let OFFSET_MB=943718400/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=900 count=50 + '[' 943718400 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=943718400' ++ utime +++ date +%s ++ echo 1352430432 + time=1352430432 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=943718400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430432&oauth_nonce=13123' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=996147200 + '[' 996147200 -ne 1192261627 ']' + let OFFSET_MB=996147200/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=950 count=50 + '[' 996147200 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=996147200' ++ utime +++ date +%s ++ echo 1352430589 + time=1352430589 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=996147200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430589&oauth_nonce=4565' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1048576000 + '[' 1048576000 -ne 1192261627 ']' + let OFFSET_MB=1048576000/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=1000 count=50 + '[' 1048576000 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1048576000' ++ utime +++ date +%s ++ echo 1352430724 + time=1352430724 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1048576000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430724&oauth_nonce=26073' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1101004800 + '[' 1101004800 -ne 1192261627 ']' + let OFFSET_MB=1101004800/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=1050 count=50 + '[' 1101004800 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1101004800' ++ utime +++ date +%s ++ echo 1352430859 + time=1352430859 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1101004800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430859&oauth_nonce=10254' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1153433600 + '[' 1153433600 -ne 1192261627 ']' + let OFFSET_MB=1153433600/1024/1024 + dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=1100 count=50 + '[' 1153433600 -ne 0 ']' + CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1153433600' ++ utime +++ date +%s ++ echo 1352431018 + time=1352431018 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1153433600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431018&oauth_nonce=23896' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1192261627 + '[' 1192261627 -ne 1192261627 ']' + true ++ utime +++ date +%s ++ echo 1352431106 + time=1352431106 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431106&oauth_nonce=16613' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:22 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 0 -gt 20 ']' + let UPLOAD_ERROR=0+1 + continue + true ++ utime +++ date +%s ++ echo 1352431107 + time=1352431107 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431107&oauth_nonce=8915' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:24 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 1 -gt 20 ']' + let UPLOAD_ERROR=1+1 + continue + true ++ utime +++ date +%s ++ echo 1352431110 + time=1352431110 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431110&oauth_nonce=21984' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:27 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 2 -gt 20 ']' + let UPLOAD_ERROR=2+1 + continue + true ++ utime +++ date +%s ++ echo 1352431112 + time=1352431112 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431112&oauth_nonce=28926' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:29 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 3 -gt 20 ']' + let UPLOAD_ERROR=3+1 + continue + true ++ utime +++ date +%s ++ echo 1352431114 + time=1352431114 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431114&oauth_nonce=28377' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:31 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 4 -gt 20 ']' + let UPLOAD_ERROR=4+1 + continue + true ++ utime +++ date +%s ++ echo 1352431117 + time=1352431117 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431117&oauth_nonce=8498' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:34 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 5 -gt 20 ']' + let UPLOAD_ERROR=5+1 + continue + true ++ utime +++ date +%s ++ echo 1352431119 + time=1352431119 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431119&oauth_nonce=1011' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:36 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 6 -gt 20 ']' + let UPLOAD_ERROR=6+1 + continue + true ++ utime +++ date +%s ++ echo 1352431122 + time=1352431122 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431122&oauth_nonce=19111' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:40 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 7 -gt 20 ']' + let UPLOAD_ERROR=7+1 + continue + true ++ utime +++ date +%s ++ echo 1352431125 + time=1352431125 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431125&oauth_nonce=8977' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:42 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 8 -gt 20 ']' + let UPLOAD_ERROR=8+1 + continue + true ++ utime +++ date +%s ++ echo 1352431128 + time=1352431128 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431128&oauth_nonce=28746' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:45 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 9 -gt 20 ']' + let UPLOAD_ERROR=9+1 + continue + true ++ utime +++ date +%s ++ echo 1352431131 + time=1352431131 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431131&oauth_nonce=15783' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:47 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 10 -gt 20 ']' + let UPLOAD_ERROR=10+1 + continue + true ++ utime +++ date +%s ++ echo 1352431133 + time=1352431133 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431133&oauth_nonce=20940' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:49 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 11 -gt 20 ']' + let UPLOAD_ERROR=11+1 + continue + true ++ utime +++ date +%s ++ echo 1352431135 + time=1352431135 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431135&oauth_nonce=15151' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:52 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 12 -gt 20 ']' + let UPLOAD_ERROR=12+1 + continue + true ++ utime +++ date +%s ++ echo 1352431137 + time=1352431137 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431137&oauth_nonce=11467' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:54 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 13 -gt 20 ']' + let UPLOAD_ERROR=13+1 + continue + true ++ utime +++ date +%s ++ echo 1352431140 + time=1352431140 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431140&oauth_nonce=30783' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:57 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 14 -gt 20 ']' + let UPLOAD_ERROR=14+1 + continue + true ++ utime +++ date +%s ++ echo 1352431143 + time=1352431143 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431143&oauth_nonce=3003' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:00 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 15 -gt 20 ']' + let UPLOAD_ERROR=15+1 + continue + true ++ utime +++ date +%s ++ echo 1352431145 + time=1352431145 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431145&oauth_nonce=17733' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:04 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 16 -gt 20 ']' + let UPLOAD_ERROR=16+1 + continue + true ++ utime +++ date +%s ++ echo 1352431149 + time=1352431149 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431149&oauth_nonce=19451' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:06 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 17 -gt 20 ']' + let UPLOAD_ERROR=17+1 + continue + true ++ utime +++ date +%s ++ echo 1352431152 + time=1352431152 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431152&oauth_nonce=21520' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:09 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 18 -gt 20 ']' + let UPLOAD_ERROR=18+1 + continue + true ++ utime +++ date +%s ++ echo 1352431154 + time=1352431154 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431154&oauth_nonce=2621' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:11 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 19 -gt 20 ']' + let UPLOAD_ERROR=19+1 + continue + true ++ utime +++ date +%s ++ echo 1352431156 + time=1352431156 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431156&oauth_nonce=12328' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:13 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 20 -gt 20 ']' + let UPLOAD_ERROR=20+1 + continue + true ++ utime +++ date +%s ++ echo 1352431158 + time=1352431158 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431158&oauth_nonce=18869' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/ + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:15 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache {"error": "Internal Server Error"}+ '[' 21 -gt 20 ']' + print ' > FAILED\n' + '[' 1 -eq 1 ']' + echo -ne ' > FAILED\n' > FAILED + print ' An error occurred requesting /commit_chunked_upload\n' + '[' 1 -eq 1 ']' + echo -ne ' An error occurred requesting /commit_chunked_upload\n' An error occurred requesting /commit_chunked_upload + remove_temp_files + '[' 1 -eq 0 ']' + exit 1
I might be doing something wrong with my failure looping for the "commit_" instruction - I can show you that code if you'd like. Any suggestions on what else to try?
andreafabrizi commented 12 years agoHi Topher, do you experience this issue only with a specific file? Or always?
Andrea
On Fri, Nov 9, 2012 at 8:23 AM, Topher Brown notifications@github.comwrote:
Great change! I have seen several instances where my uploads would have failed before, but continued anyway due to the three attempts.
I'm still having issues though. I no longer have issues with chunked_upload, but instead commit_chunked_upload. I hoped to fix it a similar way (repeat commit_chunked_upload until it went through), but it doesn't seem to be working. Here I ran an upload, where it loops and tries again (up to 20 (!!) times) if it fails on commit. I also added the cat $RESPONSE_FILE to the error output, as suggested above.
- RESPONSE_FILE=/tmp/du_resp_debug
- for i in '$BIN_DEPS'
- which curl
- '[' 0 -ne 0 ']'
- for i in '$BIN_DEPS'
- which sed
- '[' 0 -ne 0 ']'
- for i in '$BIN_DEPS'
- which basename
- '[' 0 -ne 0 ']'
- for i in '$BIN_DEPS'
- which date
- '[' 0 -ne 0 ']'
- for i in '$BIN_DEPS'
- which grep
- '[' 0 -ne 0 ']'
- for i in '$BIN_DEPS'
- which cut
- '[' 0 -ne 0 ']'
- for i in '$BIN_DEPS'
- which stat
- '[' 0 -ne 0 ']'
- for i in '$BIN_DEPS'
- which dd
- '[' 0 -ne 0 ']'
- '[' -f /media/sdg1/home/topher200/.dropbox_uploader ']' ++ sed -n 's/APPKEY:([a-z A-Z 0-9]*)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader
- APPKEY=XXXXXXXXXX ++ sed -n 's/APPSECRET:([a-z A-Z 0-9]*)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader
- APPSECRET=XXXXXXXXXX ++ sed -n 's/ACCESS_LEVEL:([A-Z]*)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader
- ACCESS_LEVEL=sandbox ++ sed -n 's/OAUTH_ACCESS_TOKEN_SECRET:([a-z A-Z 0-9]*)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader
- OAUTH_ACCESS_TOKEN_SECRET=XXXXXXXXXX ++ sed -n 's/OAUTH_ACCESS_TOKEN:([a-z A-Z 0-9]*)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader
- OAUTH_ACCESS_TOKEN=XXXXXXXXX
- '[' -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXX ']'
- '[' -z sandbox ']'
- COMMAND=upload
- case $COMMAND in
- FILE_SRC=downloads/31.10.2012.DEN@PHI.540p.mkv
- FILE_DST=
- '[' '!' -f downloads/31.10.2012.DEN@PHI.540p.mkv ']'
- '[' -z '' ']' ++ basename downloads/31.10.2012.DEN@PHI.540p.mkv
- FILE_DST=/31.10.2012.DEN@PHI.540p.mkv ++ file_size downloads/31.10.2012.DEN@PHI.540p.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/31.10.2012.DEN@PHI.540p.mkv ++ return
- FILE_SIZE=1192261627
- '[' 1192261627 -gt 157286000 ']'
- db_ckupload downloads/31.10.2012.DEN@PHI.540p.mkv /31.10.2012.DEN@PHI.540p.mkv
- local FILE_SRC=downloads/31.10.2012.DEN@PHI.540p.mkv ++ urlencode /31.10.2012.DEN@PHI.540p.mkv ++ local data +++ curl -s -o /dev/null -w '%{url_effective}' --get --data-urlencode /31.10.2012.DEN@PHI.540p.mkv '' ++ data='/?' ++ '[' 3 '!=' 3 ']' ++ echo ''
- local FILE_DST=
- print ' > Uploading "downloads/31.10.2012.DEN@PHI.540p.mkv" to "/31.10.2012.DEN@PHI.540p.mkv"'
- '[' 1 -eq 1 ']'
- echo -ne ' > Uploading "downloads/31.10.2012.DEN@PHI.540p.mkv" to "/31.10.2012.DEN@PHI.540p.mkv"'
Uploading "downloads/31.10.2012.DEN@PHI.540p.mkv" to "/31.10.2012.DEN@PHI.540p.mkv"++ file_size downloads/31.10.2012.DEN@PHI.540p.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/31.10.2012.DEN@PHI.540p.mkv ++ return
- local FILE_SIZE=1192261627
- local OFFSET=0
- local UPLOAD_ID=
- local UPLOAD_ERROR=0
- '[' 0 -ne 1192261627 ']'
- let OFFSET_MB=0/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=0 count=50
- '[' 0 -ne 0 ']' ++ utime +++ date +%s ++ echo 1352427058
- time=1352427058
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427058&oauth_nonce=31421'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=52428800
- '[' 52428800 -ne 1192261627 ']'
- let OFFSET_MB=52428800/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=50 count=50
- '[' 52428800 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=52428800' ++ utime +++ date +%s ++ echo 1352427344
- time=1352427344
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=52428800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427344&oauth_nonce=13390'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=104857600
- '[' 104857600 -ne 1192261627 ']'
- let OFFSET_MB=104857600/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=100 count=50
- '[' 104857600 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=104857600' ++ utime +++ date +%s ++ echo 1352427655
- time=1352427655
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=104857600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427655&oauth_nonce=6318'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=157286400
- '[' 157286400 -ne 1192261627 ']'
- let OFFSET_MB=157286400/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=150 count=50
- '[' 157286400 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=157286400' ++ utime +++ date +%s ++ echo 1352427963
- time=1352427963
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=157286400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352427963&oauth_nonce=31869'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=209715200
- '[' 209715200 -ne 1192261627 ']'
- let OFFSET_MB=209715200/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=200 count=50
- '[' 209715200 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=209715200' ++ utime +++ date +%s ++ echo 1352428261
- time=1352428261
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=209715200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428261&oauth_nonce=12122'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=262144000
- '[' 262144000 -ne 1192261627 ']'
- let OFFSET_MB=262144000/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=250 count=50
- '[' 262144000 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=262144000' ++ utime +++ date +%s ++ echo 1352428505
- time=1352428505
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=262144000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428505&oauth_nonce=25017'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=314572800
- '[' 314572800 -ne 1192261627 ']'
- let OFFSET_MB=314572800/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=300 count=50
- '[' 314572800 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=314572800' ++ utime +++ date +%s ++ echo 1352428702
- time=1352428702
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=314572800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428702&oauth_nonce=16529'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=367001600
- '[' 367001600 -ne 1192261627 ']'
- let OFFSET_MB=367001600/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=350 count=50
- '[' 367001600 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=367001600' ++ utime +++ date +%s ++ echo 1352428866
- time=1352428866
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=367001600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352428866&oauth_nonce=32533'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=419430400
- '[' 419430400 -ne 1192261627 ']'
- let OFFSET_MB=419430400/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=400 count=50
- '[' 419430400 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=419430400' ++ utime +++ date +%s ++ echo 1352429041
- time=1352429041
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=419430400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429041&oauth_nonce=22916'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=471859200
- '[' 471859200 -ne 1192261627 ']'
- let OFFSET_MB=471859200/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=450 count=50
- '[' 471859200 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=471859200' ++ utime +++ date +%s ++ echo 1352429211
- time=1352429211
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=471859200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429211&oauth_nonce=28739'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=524288000
- '[' 524288000 -ne 1192261627 ']'
- let OFFSET_MB=524288000/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=500 count=50
- '[' 524288000 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=524288000' ++ utime +++ date +%s ++ echo 1352429365
- time=1352429365
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=524288000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429365&oauth_nonce=16184'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=576716800
- '[' 576716800 -ne 1192261627 ']'
- let OFFSET_MB=576716800/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=550 count=50
- '[' 576716800 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=576716800' ++ utime +++ date +%s ++ echo 1352429505
- time=1352429505
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=576716800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429505&oauth_nonce=30368'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=629145600
- '[' 629145600 -ne 1192261627 ']'
- let OFFSET_MB=629145600/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=600 count=50
- '[' 629145600 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=629145600' ++ utime +++ date +%s ++ echo 1352429637
- time=1352429637
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=629145600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429637&oauth_nonce=12168'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=681574400
- '[' 681574400 -ne 1192261627 ']'
- let OFFSET_MB=681574400/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=650 count=50
- '[' 681574400 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=681574400' ++ utime +++ date +%s ++ echo 1352429762
- time=1352429762
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=681574400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429762&oauth_nonce=14121'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=734003200
- '[' 734003200 -ne 1192261627 ']'
- let OFFSET_MB=734003200/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=700 count=50
- '[' 734003200 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=734003200' ++ utime +++ date +%s ++ echo 1352429898
- time=1352429898
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=734003200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352429898&oauth_nonce=32224'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=786432000
- '[' 786432000 -ne 1192261627 ']'
- let OFFSET_MB=786432000/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=750 count=50
- '[' 786432000 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=786432000' ++ utime +++ date +%s ++ echo 1352430026
- time=1352430026
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=786432000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430026&oauth_nonce=12436'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=838860800
- '[' 838860800 -ne 1192261627 ']'
- let OFFSET_MB=838860800/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=800 count=50
- '[' 838860800 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=838860800' ++ utime +++ date +%s ++ echo 1352430139
- time=1352430139
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=838860800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430139&oauth_nonce=26338'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=891289600
- '[' 891289600 -ne 1192261627 ']'
- let OFFSET_MB=891289600/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=850 count=50
- '[' 891289600 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=891289600' ++ utime +++ date +%s ++ echo 1352430283
- time=1352430283
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=891289600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430283&oauth_nonce=9721'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=943718400
- '[' 943718400 -ne 1192261627 ']'
- let OFFSET_MB=943718400/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=900 count=50
- '[' 943718400 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=943718400' ++ utime +++ date +%s ++ echo 1352430432
- time=1352430432
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=943718400&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430432&oauth_nonce=13123'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=996147200
- '[' 996147200 -ne 1192261627 ']'
- let OFFSET_MB=996147200/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=950 count=50
- '[' 996147200 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=996147200' ++ utime +++ date +%s ++ echo 1352430589
- time=1352430589
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=996147200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430589&oauth_nonce=4565'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=1048576000
- '[' 1048576000 -ne 1192261627 ']'
- let OFFSET_MB=1048576000/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=1000 count=50
- '[' 1048576000 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1048576000' ++ utime +++ date +%s ++ echo 1352430724
- time=1352430724
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1048576000&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430724&oauth_nonce=26073'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=1101004800
- '[' 1101004800 -ne 1192261627 ']'
- let OFFSET_MB=1101004800/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=1050 count=50
- '[' 1101004800 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1101004800' ++ utime +++ date +%s ++ echo 1352430859
- time=1352430859
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1101004800&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352430859&oauth_nonce=10254'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=1153433600
- '[' 1153433600 -ne 1192261627 ']'
- let OFFSET_MB=1153433600/1024/1024
- dd if=downloads/31.10.2012.DEN@PHI.540p.mkv of=/tmp/du_chunk_20510 bs=1M skip=1100 count=50
- '[' 1153433600 -ne 0 ']'
- CHUNK_PARAMS='upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1153433600' ++ utime +++ date +%s ++ echo 1352431018
- time=1352431018
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_20510 'https://api-content.dropbox.com/1/chunked_upload?upload_id=jKfMbh61uQDuXCNrnFzdWA&offset=1153433600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431018&oauth_nonce=23896'
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 0 -ne 0 ']'
- print .
- '[' 1 -eq 1 ']'
- echo -ne . .+ UPLOADERROR=0 ++ sed -n 's/."uploadid": *"([^"])".*/\1/p' /tmp/du_resp_debug
- UPLOADID=jKfMbh61uQDuXCNrnFzdWA ++ sed -n 's/."offset": ([^}]_)./\1/p' /tmp/du_resp_debug
- OFFSET=1192261627
- '[' 1192261627 -ne 1192261627 ']'
- true ++ utime +++ date +%s ++ echo 1352431106
- time=1352431106
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431106&oauth_nonce=16613' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:22 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 0 -gt 20 ']'
- let UPLOAD_ERROR=0+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431107
- time=1352431107
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431107&oauth_nonce=8915' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:24 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 1 -gt 20 ']'
- let UPLOAD_ERROR=1+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431110
- time=1352431110
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431110&oauth_nonce=21984' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:27 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 2 -gt 20 ']'
- let UPLOAD_ERROR=2+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431112
- time=1352431112
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431112&oauth_nonce=28926' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:29 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 3 -gt 20 ']'
- let UPLOAD_ERROR=3+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431114
- time=1352431114
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431114&oauth_nonce=28377' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:31 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 4 -gt 20 ']'
- let UPLOAD_ERROR=4+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431117
- time=1352431117
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431117&oauth_nonce=8498' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:34 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 5 -gt 20 ']'
- let UPLOAD_ERROR=5+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431119
- time=1352431119
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431119&oauth_nonce=1011' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:36 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 6 -gt 20 ']'
- let UPLOAD_ERROR=6+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431122
- time=1352431122
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431122&oauth_nonce=19111' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:40 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 7 -gt 20 ']'
- let UPLOAD_ERROR=7+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431125
- time=1352431125
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431125&oauth_nonce=8977' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:42 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 8 -gt 20 ']'
- let UPLOAD_ERROR=8+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431128
- time=1352431128
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431128&oauth_nonce=28746' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:45 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 9 -gt 20 ']'
- let UPLOAD_ERROR=9+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431131
- time=1352431131
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431131&oauth_nonce=15783' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:47 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 10 -gt 20 ']'
- let UPLOAD_ERROR=10+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431133
- time=1352431133
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431133&oauth_nonce=20940' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:49 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 11 -gt 20 ']'
- let UPLOAD_ERROR=11+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431135
- time=1352431135
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431135&oauth_nonce=15151' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:52 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 12 -gt 20 ']'
- let UPLOAD_ERROR=12+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431137
- time=1352431137
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431137&oauth_nonce=11467' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:54 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 13 -gt 20 ']'
- let UPLOAD_ERROR=13+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431140
- time=1352431140
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431140&oauth_nonce=30783' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:18:57 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 14 -gt 20 ']'
- let UPLOAD_ERROR=14+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431143
- time=1352431143
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431143&oauth_nonce=3003' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:00 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 15 -gt 20 ']'
- let UPLOAD_ERROR=15+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431145
- time=1352431145
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431145&oauth_nonce=17733' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:04 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 16 -gt 20 ']'
- let UPLOAD_ERROR=16+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431149
- time=1352431149
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431149&oauth_nonce=19451' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:06 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 17 -gt 20 ']'
- let UPLOAD_ERROR=17+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431152
- time=1352431152
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431152&oauth_nonce=21520' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:09 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 18 -gt 20 ']'
- let UPLOAD_ERROR=18+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431154
- time=1352431154
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431154&oauth_nonce=2621' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:11 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 19 -gt 20 ']'
- let UPLOAD_ERROR=19+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431156
- time=1352431156
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431156&oauth_nonce=12328' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:13 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 20 -gt 20 ']'
- let UPLOAD_ERROR=20+1
- continue
- true ++ utime +++ date +%s ++ echo 1352431158
- time=1352431158
- curl -s --show-error --globoff -i -o /tmp/du_resp_debug --data 'upload_id=jKfMbh61uQDuXCNrnFzdWA&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX&oauth_timestamp=1352431158&oauth_nonce=18869' https://api-content.dropbox.com/1/commit_chunked_upload/sandbox/
- grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- '[' 1 -ne 0 ']'
- print '*'
- '[' 1 -eq 1 ']'
- echo -ne '' + cat /tmp/du_resp_debug HTTP/1.1 500 Internal Server Error Server: nginx/1.2.3 Date: Fri, 09 Nov 2012 03:19:15 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive pragma: no-cache cache-control: no-cache
{"error": "Internal Server Error"}+ '[' 21 -gt 20 ']'
- print ' > FAILED\n'
- '[' 1 -eq 1 ']'
- echo -ne ' > FAILED\n'
FAILED
- print ' An error occurred requesting /commit_chunked_upload\n'
- '[' 1 -eq 1 ']'
- echo -ne ' An error occurred requesting /commit_chunked_upload\n' An error occurred requesting /commit_chunked_upload
- remove_temp_files
- '[' 1 -eq 0 ']'
- exit 1
I might be doing something wrong with my failure looping for the "commit_" instruction - I can show you that code if you'd like. Any suggestions on what else to try?
Reply to this email directly or view it on GitHubhttps://github.com/andreafabrizi/Dropbox-Uploader/issues/20#issuecomment-10217482.
topher200 commented 11 years agoI experience it nearly every time with large files. Small files upload fine. I haven't tried a medium sized file (ie: one that is greater than 150mb but not super large). The files I'm uploading are around 1gb - 4gb in size.
Here is the output from trying another file. This is on your script unmodified (other than to turn on debug mode). I've scrubbed my private dropbox data, but that's the only modifitication.
+ RESPONSE_FILE=/tmp/du_resp_debug + for i in '$BIN_DEPS' + which curl + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which sed + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which basename + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which date + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which grep + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which cut + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which stat + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which dd + '[' 0 -ne 0 ']' + '[' -f /media/sdg1/home/topher200/.dropbox_uploader ']' ++ sed -n 's/APPKEY:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + APPKEY=XXXXXXXXX ++ sed -n 's/APPSECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + APPSECRET=XXXXXXXX ++ sed -n 's/ACCESS_LEVEL:\([A-Z]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + ACCESS_LEVEL=sandbox ++ sed -n 's/OAUTH_ACCESS_TOKEN_SECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + OAUTH_ACCESS_TOKEN_SECRET=XXXXXXXXX ++ sed -n 's/OAUTH_ACCESS_TOKEN:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + OAUTH_ACCESS_TOKEN=XXXXXXXXX + '[' -z XXXXXXX -o -z XXXXXXXX -o -z XXXXXXXXX -o -z XXXXXXXXX ']' + '[' -z sandbox ']' + COMMAND=upload + case $COMMAND in + FILE_SRC=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv + FILE_DST= + '[' '!' -f downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ']' + '[' -z '' ']' ++ basename downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv + FILE_DST=/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ file_size downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ return + FILE_SIZE=3694739132 + '[' 3694739132 -gt 157286000 ']' + db_ckupload downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv /NBA.2012.11.02.Heat@Knicks.720p60.mkv + local FILE_SRC=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ urlencode /NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ local data +++ curl -s -o /dev/null -w '%{url_effective}' --get --data-urlencode /NBA.2012.11.02.Heat@Knicks.720p60.mkv '' ++ data='/?' ++ '[' 3 '!=' 3 ']' ++ echo '' + local FILE_DST= + print ' > Uploading "downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv" to "/NBA.2012.11.02.Heat@Knicks.720p60.mkv"' + '[' 1 -eq 1 ']' + echo -ne ' > Uploading "downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv" to "/NBA.2012.11.02.Heat@Knicks.720p60.mkv"' > Uploading "downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv" to "/NBA.2012.11.02.Heat@Knicks.720p60.mkv"++ file_size downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ return + local FILE_SIZE=3694739132 + local OFFSET=0 + local UPLOAD_ID= + local UPLOAD_ERROR=0 + true + let OFFSET_MB=0/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=0 count=50 + '[' 0 -ne 0 ']' ++ utime +++ date +%s ++ echo 1352650326 + time=1352650326 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650326&oauth_nonce=530' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=52428800 + '[' 52428800 -eq 3694739132 ']' + true + let OFFSET_MB=52428800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=50 count=50 + '[' 52428800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=52428800' ++ utime +++ date +%s ++ echo 1352650413 + time=1352650413 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=52428800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650413&oauth_nonce=4096' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=104857600 + '[' 104857600 -eq 3694739132 ']' + true + let OFFSET_MB=104857600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=100 count=50 + '[' 104857600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=104857600' ++ utime +++ date +%s ++ echo 1352650511 + time=1352650511 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=104857600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650511&oauth_nonce=6493' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=157286400 + '[' 157286400 -eq 3694739132 ']' + true + let OFFSET_MB=157286400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=150 count=50 + '[' 157286400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=157286400' ++ utime +++ date +%s ++ echo 1352650617 + time=1352650617 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=157286400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650617&oauth_nonce=19653' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=209715200 + '[' 209715200 -eq 3694739132 ']' + true + let OFFSET_MB=209715200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=200 count=50 + '[' 209715200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=209715200' ++ utime +++ date +%s ++ echo 1352650705 + time=1352650705 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=209715200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650705&oauth_nonce=22099' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ '[' 0 -gt 2 ']' + let UPLOAD_ERROR=0+1 + continue + true + let OFFSET_MB=209715200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=200 count=50 + '[' 209715200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=209715200' ++ utime +++ date +%s ++ echo 1352650769 + time=1352650769 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=209715200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650769&oauth_nonce=29116' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=262144000 + '[' 262144000 -eq 3694739132 ']' + true + let OFFSET_MB=262144000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=250 count=50 + '[' 262144000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=262144000' ++ utime +++ date +%s ++ echo 1352650843 + time=1352650843 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=262144000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650843&oauth_nonce=11185' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=314572800 + '[' 314572800 -eq 3694739132 ']' + true + let OFFSET_MB=314572800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=300 count=50 + '[' 314572800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=314572800' ++ utime +++ date +%s ++ echo 1352650949 + time=1352650949 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=314572800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352650949&oauth_nonce=9505' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=367001600 + '[' 367001600 -eq 3694739132 ']' + true + let OFFSET_MB=367001600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=350 count=50 + '[' 367001600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=367001600' ++ utime +++ date +%s ++ echo 1352651039 + time=1352651039 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=367001600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651039&oauth_nonce=18748' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=419430400 + '[' 419430400 -eq 3694739132 ']' + true + let OFFSET_MB=419430400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=400 count=50 + '[' 419430400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=419430400' ++ utime +++ date +%s ++ echo 1352651108 + time=1352651108 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=419430400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651108&oauth_nonce=16932' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=471859200 + '[' 471859200 -eq 3694739132 ']' + true + let OFFSET_MB=471859200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=450 count=50 + '[' 471859200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=471859200' ++ utime +++ date +%s ++ echo 1352651178 + time=1352651178 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=471859200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651178&oauth_nonce=31690' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=524288000 + '[' 524288000 -eq 3694739132 ']' + true + let OFFSET_MB=524288000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=500 count=50 + '[' 524288000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=524288000' ++ utime +++ date +%s ++ echo 1352651234 + time=1352651234 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=524288000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651234&oauth_nonce=18978' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=576716800 + '[' 576716800 -eq 3694739132 ']' + true + let OFFSET_MB=576716800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=550 count=50 + '[' 576716800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=576716800' ++ utime +++ date +%s ++ echo 1352651299 + time=1352651299 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=576716800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651299&oauth_nonce=26606' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=629145600 + '[' 629145600 -eq 3694739132 ']' + true + let OFFSET_MB=629145600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=600 count=50 + '[' 629145600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=629145600' ++ utime +++ date +%s ++ echo 1352651349 + time=1352651349 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=629145600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651349&oauth_nonce=29327' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=681574400 + '[' 681574400 -eq 3694739132 ']' + true + let OFFSET_MB=681574400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=650 count=50 + '[' 681574400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=681574400' ++ utime +++ date +%s ++ echo 1352651424 + time=1352651424 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=681574400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651424&oauth_nonce=19849' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=734003200 + '[' 734003200 -eq 3694739132 ']' + true + let OFFSET_MB=734003200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=700 count=50 + '[' 734003200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=734003200' ++ utime +++ date +%s ++ echo 1352651479 + time=1352651479 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=734003200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651479&oauth_nonce=10578' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=786432000 + '[' 786432000 -eq 3694739132 ']' + true + let OFFSET_MB=786432000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=750 count=50 + '[' 786432000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=786432000' ++ utime +++ date +%s ++ echo 1352651538 + time=1352651538 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=786432000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651538&oauth_nonce=8956' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=838860800 + '[' 838860800 -eq 3694739132 ']' + true + let OFFSET_MB=838860800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=800 count=50 + '[' 838860800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=838860800' ++ utime +++ date +%s ++ echo 1352651614 + time=1352651614 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=838860800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651614&oauth_nonce=4564' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=891289600 + '[' 891289600 -eq 3694739132 ']' + true + let OFFSET_MB=891289600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=850 count=50 + '[' 891289600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=891289600' ++ utime +++ date +%s ++ echo 1352651683 + time=1352651683 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=891289600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651683&oauth_nonce=6202' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=943718400 + '[' 943718400 -eq 3694739132 ']' + true + let OFFSET_MB=943718400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=900 count=50 + '[' 943718400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=943718400' ++ utime +++ date +%s ++ echo 1352651756 + time=1352651756 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=943718400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651756&oauth_nonce=19874' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=996147200 + '[' 996147200 -eq 3694739132 ']' + true + let OFFSET_MB=996147200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=950 count=50 + '[' 996147200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=996147200' ++ utime +++ date +%s ++ echo 1352651833 + time=1352651833 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=996147200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651833&oauth_nonce=25838' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1048576000 + '[' 1048576000 -eq 3694739132 ']' + true + let OFFSET_MB=1048576000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1000 count=50 + '[' 1048576000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1048576000' ++ utime +++ date +%s ++ echo 1352651913 + time=1352651913 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1048576000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651913&oauth_nonce=2234' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1101004800 + '[' 1101004800 -eq 3694739132 ']' + true + let OFFSET_MB=1101004800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1050 count=50 + '[' 1101004800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1101004800' ++ utime +++ date +%s ++ echo 1352651982 + time=1352651982 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1101004800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352651982&oauth_nonce=5034' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1153433600 + '[' 1153433600 -eq 3694739132 ']' + true + let OFFSET_MB=1153433600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1100 count=50 + '[' 1153433600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1153433600' ++ utime +++ date +%s ++ echo 1352652037 + time=1352652037 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1153433600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652037&oauth_nonce=13270' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1205862400 + '[' 1205862400 -eq 3694739132 ']' + true + let OFFSET_MB=1205862400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1150 count=50 + '[' 1205862400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1205862400' ++ utime +++ date +%s ++ echo 1352652098 + time=1352652098 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1205862400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652098&oauth_nonce=18637' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1258291200 + '[' 1258291200 -eq 3694739132 ']' + true + let OFFSET_MB=1258291200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1200 count=50 + '[' 1258291200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1258291200' ++ utime +++ date +%s ++ echo 1352652177 + time=1352652177 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1258291200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652177&oauth_nonce=26821' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1310720000 + '[' 1310720000 -eq 3694739132 ']' + true + let OFFSET_MB=1310720000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1250 count=50 + '[' 1310720000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1310720000' ++ utime +++ date +%s ++ echo 1352652236 + time=1352652236 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1310720000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652236&oauth_nonce=8191' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1363148800 + '[' 1363148800 -eq 3694739132 ']' + true + let OFFSET_MB=1363148800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1300 count=50 + '[' 1363148800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1363148800' ++ utime +++ date +%s ++ echo 1352652318 + time=1352652318 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1363148800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652318&oauth_nonce=20940' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ '[' 0 -gt 2 ']' + let UPLOAD_ERROR=0+1 + continue + true + let OFFSET_MB=1363148800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1300 count=50 + '[' 1363148800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1363148800' ++ utime +++ date +%s ++ echo 1352652357 + time=1352652357 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1363148800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652357&oauth_nonce=27498' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ '[' 1 -gt 2 ']' + let UPLOAD_ERROR=1+1 + continue + true + let OFFSET_MB=1363148800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1300 count=50 + '[' 1363148800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1363148800' ++ utime +++ date +%s ++ echo 1352652411 + time=1352652411 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1363148800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652411&oauth_nonce=19802' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1415577600 + '[' 1415577600 -eq 3694739132 ']' + true + let OFFSET_MB=1415577600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1350 count=50 + '[' 1415577600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1415577600' ++ utime +++ date +%s ++ echo 1352652477 + time=1352652477 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1415577600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652477&oauth_nonce=30793' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1468006400 + '[' 1468006400 -eq 3694739132 ']' + true + let OFFSET_MB=1468006400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1400 count=50 + '[' 1468006400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1468006400' ++ utime +++ date +%s ++ echo 1352652567 + time=1352652567 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1468006400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652567&oauth_nonce=13443' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1520435200 + '[' 1520435200 -eq 3694739132 ']' + true + let OFFSET_MB=1520435200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1450 count=50 + '[' 1520435200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1520435200' ++ utime +++ date +%s ++ echo 1352652625 + time=1352652625 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1520435200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652625&oauth_nonce=14352' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1572864000 + '[' 1572864000 -eq 3694739132 ']' + true + let OFFSET_MB=1572864000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1500 count=50 + '[' 1572864000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1572864000' ++ utime +++ date +%s ++ echo 1352652693 + time=1352652693 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1572864000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652693&oauth_nonce=31171' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1625292800 + '[' 1625292800 -eq 3694739132 ']' + true + let OFFSET_MB=1625292800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1550 count=50 + '[' 1625292800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1625292800' ++ utime +++ date +%s ++ echo 1352652770 + time=1352652770 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1625292800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652770&oauth_nonce=16739' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1677721600 + '[' 1677721600 -eq 3694739132 ']' + true + let OFFSET_MB=1677721600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1600 count=50 + '[' 1677721600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1677721600' ++ utime +++ date +%s ++ echo 1352652842 + time=1352652842 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1677721600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652842&oauth_nonce=4194' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ '[' 0 -gt 2 ']' + let UPLOAD_ERROR=0+1 + continue + true + let OFFSET_MB=1677721600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1600 count=50 + '[' 1677721600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1677721600' ++ utime +++ date +%s ++ echo 1352652897 + time=1352652897 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1677721600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652897&oauth_nonce=22774' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1730150400 + '[' 1730150400 -eq 3694739132 ']' + true + let OFFSET_MB=1730150400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1650 count=50 + '[' 1730150400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1730150400' ++ utime +++ date +%s ++ echo 1352652982 + time=1352652982 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1730150400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352652982&oauth_nonce=23523' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1782579200 + '[' 1782579200 -eq 3694739132 ']' + true + let OFFSET_MB=1782579200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1700 count=50 + '[' 1782579200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1782579200' ++ utime +++ date +%s ++ echo 1352653044 + time=1352653044 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1782579200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653044&oauth_nonce=13187' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1835008000 + '[' 1835008000 -eq 3694739132 ']' + true + let OFFSET_MB=1835008000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1750 count=50 + '[' 1835008000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1835008000' ++ utime +++ date +%s ++ echo 1352653118 + time=1352653118 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1835008000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653118&oauth_nonce=6336' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1887436800 + '[' 1887436800 -eq 3694739132 ']' + true + let OFFSET_MB=1887436800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1800 count=50 + '[' 1887436800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1887436800' ++ utime +++ date +%s ++ echo 1352653228 + time=1352653228 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1887436800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653228&oauth_nonce=3074' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1939865600 + '[' 1939865600 -eq 3694739132 ']' + true + let OFFSET_MB=1939865600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1850 count=50 + '[' 1939865600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1939865600' ++ utime +++ date +%s ++ echo 1352653309 + time=1352653309 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1939865600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653309&oauth_nonce=1902' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=1992294400 + '[' 1992294400 -eq 3694739132 ']' + true + let OFFSET_MB=1992294400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1900 count=50 + '[' 1992294400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1992294400' ++ utime +++ date +%s ++ echo 1352653395 + time=1352653395 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=1992294400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653395&oauth_nonce=3324' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2044723200 + '[' 2044723200 -eq 3694739132 ']' + true + let OFFSET_MB=2044723200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=1950 count=50 + '[' 2044723200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2044723200' ++ utime +++ date +%s ++ echo 1352653474 + time=1352653474 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2044723200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653474&oauth_nonce=17456' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2097152000 + '[' 2097152000 -eq 3694739132 ']' + true + let OFFSET_MB=2097152000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2000 count=50 + '[' 2097152000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2097152000' ++ utime +++ date +%s ++ echo 1352653549 + time=1352653549 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2097152000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653549&oauth_nonce=25872' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2149580800 + '[' 2149580800 -eq 3694739132 ']' + true + let OFFSET_MB=2149580800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2050 count=50 + '[' 2149580800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2149580800' ++ utime +++ date +%s ++ echo 1352653625 + time=1352653625 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2149580800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653625&oauth_nonce=19458' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2202009600 + '[' 2202009600 -eq 3694739132 ']' + true + let OFFSET_MB=2202009600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2100 count=50 + '[' 2202009600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2202009600' ++ utime +++ date +%s ++ echo 1352653707 + time=1352653707 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2202009600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653707&oauth_nonce=25392' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2254438400 + '[' 2254438400 -eq 3694739132 ']' + true + let OFFSET_MB=2254438400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2150 count=50 + '[' 2254438400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2254438400' ++ utime +++ date +%s ++ echo 1352653766 + time=1352653766 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2254438400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653766&oauth_nonce=14673' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2306867200 + '[' 2306867200 -eq 3694739132 ']' + true + let OFFSET_MB=2306867200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2200 count=50 + '[' 2306867200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2306867200' ++ utime +++ date +%s ++ echo 1352653857 + time=1352653857 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2306867200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653857&oauth_nonce=15676' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2359296000 + '[' 2359296000 -eq 3694739132 ']' + true + let OFFSET_MB=2359296000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2250 count=50 + '[' 2359296000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2359296000' ++ utime +++ date +%s ++ echo 1352653916 + time=1352653916 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2359296000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653916&oauth_nonce=24753' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2411724800 + '[' 2411724800 -eq 3694739132 ']' + true + let OFFSET_MB=2411724800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2300 count=50 + '[' 2411724800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2411724800' ++ utime +++ date +%s ++ echo 1352653988 + time=1352653988 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2411724800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352653988&oauth_nonce=10079' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2464153600 + '[' 2464153600 -eq 3694739132 ']' + true + let OFFSET_MB=2464153600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2350 count=50 + '[' 2464153600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2464153600' ++ utime +++ date +%s ++ echo 1352654046 + time=1352654046 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2464153600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654046&oauth_nonce=802' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2516582400 + '[' 2516582400 -eq 3694739132 ']' + true + let OFFSET_MB=2516582400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2400 count=50 + '[' 2516582400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2516582400' ++ utime +++ date +%s ++ echo 1352654152 + time=1352654152 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2516582400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654152&oauth_nonce=1002' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2569011200 + '[' 2569011200 -eq 3694739132 ']' + true + let OFFSET_MB=2569011200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2450 count=50 + '[' 2569011200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2569011200' ++ utime +++ date +%s ++ echo 1352654213 + time=1352654213 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2569011200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654213&oauth_nonce=15737' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2621440000 + '[' 2621440000 -eq 3694739132 ']' + true + let OFFSET_MB=2621440000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2500 count=50 + '[' 2621440000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2621440000' ++ utime +++ date +%s ++ echo 1352654280 + time=1352654280 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2621440000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654280&oauth_nonce=7181' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2673868800 + '[' 2673868800 -eq 3694739132 ']' + true + let OFFSET_MB=2673868800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2550 count=50 + '[' 2673868800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2673868800' ++ utime +++ date +%s ++ echo 1352654362 + time=1352654362 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2673868800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654362&oauth_nonce=22295' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2726297600 + '[' 2726297600 -eq 3694739132 ']' + true + let OFFSET_MB=2726297600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2600 count=50 + '[' 2726297600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2726297600' ++ utime +++ date +%s ++ echo 1352654432 + time=1352654432 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2726297600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654432&oauth_nonce=22128' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ '[' 0 -gt 2 ']' + let UPLOAD_ERROR=0+1 + continue + true + let OFFSET_MB=2726297600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2600 count=50 + '[' 2726297600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2726297600' ++ utime +++ date +%s ++ echo 1352654482 + time=1352654482 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2726297600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654482&oauth_nonce=9783' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 1 -ne 0 ']' + print '*' + '[' 1 -eq 1 ']' + echo -ne '*' *+ '[' 1 -gt 2 ']' + let UPLOAD_ERROR=1+1 + continue + true + let OFFSET_MB=2726297600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2600 count=50 + '[' 2726297600 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2726297600' ++ utime +++ date +%s ++ echo 1352654538 + time=1352654538 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2726297600&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654538&oauth_nonce=3753' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2778726400 + '[' 2778726400 -eq 3694739132 ']' + true + let OFFSET_MB=2778726400/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2650 count=50 + '[' 2778726400 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2778726400' ++ utime +++ date +%s ++ echo 1352654614 + time=1352654614 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2778726400&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654614&oauth_nonce=6391' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2831155200 + '[' 2831155200 -eq 3694739132 ']' + true + let OFFSET_MB=2831155200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2700 count=50 + '[' 2831155200 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2831155200' ++ utime +++ date +%s ++ echo 1352654680 + time=1352654680 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2831155200&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654680&oauth_nonce=18860' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2883584000 + '[' 2883584000 -eq 3694739132 ']' + true + let OFFSET_MB=2883584000/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2750 count=50 + '[' 2883584000 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2883584000' ++ utime +++ date +%s ++ echo 1352654771 + time=1352654771 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2883584000&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654771&oauth_nonce=29583' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=-QorMBJ5eDcMoM1WgRWn1g ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=2936012800 + '[' 2936012800 -eq 3694739132 ']' + true + let OFFSET_MB=2936012800/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_23238 bs=1M skip=2800 count=50 + '[' 2936012800 -ne 0 ']' + CHUNK_PARAMS='upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2936012800' ++ utime +++ date +%s ++ echo 1352654870 + time=1352654870 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_23238 'https://api-content.dropbox.com/1/chunked_upload?upload_id=-QorMBJ5eDcMoM1WgRWn1g&offset=2936012800&oauth_consumer_key=XXXXXXXXX&oauth_token=XXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXX&oauth_timestamp=1352654870&oauth_nonce=406' + grep
andreafabrizi commented 11 years agoCan you try the latest version please?
topher200 commented 11 years agoStill failing with 0.11.1.
+ RESPONSE_FILE=/tmp/du_resp_debug + '[' -z '' ']' + BIN_DEPS='sed basename date grep cut stat dd curl' + CURL_BIN=curl + for i in '$BIN_DEPS' + which sed + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which basename + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which date + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which grep + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which cut + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which stat + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which dd + '[' 0 -ne 0 ']' + for i in '$BIN_DEPS' + which curl + '[' 0 -ne 0 ']' + '[' -f /media/sdg1/home/topher200/.dropbox_uploader ']' ++ sed -n 's/APPKEY:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + APPKEY=XXXXXXXXXX ++ sed -n 's/APPSECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + APPSECRET=XXXXXXXXXX ++ sed -n 's/ACCESS_LEVEL:\([A-Z]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + ACCESS_LEVEL=sandbox ++ sed -n 's/OAUTH_ACCESS_TOKEN_SECRET:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + OAUTH_ACCESS_TOKEN_SECRET=XXXXXXXXXX ++ sed -n 's/OAUTH_ACCESS_TOKEN:\([a-z A-Z 0-9]*\)/\1/p' /media/sdg1/home/topher200/.dropbox_uploader + OAUTH_ACCESS_TOKEN=XXXXXXXXXX + '[' -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXXX -o -z XXXXXXXXXX ']' + '[' -z sandbox ']' + COMMAND=upload + case $COMMAND in + FILE_SRC=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv + FILE_DST= + '[' '!' -f downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ']' + '[' -z '' ']' ++ basename downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv + FILE_DST=/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ file_size downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ return + FILE_SIZE=3694739132 + '[' 3694739132 -gt 157286000 ']' + db_ckupload downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv /NBA.2012.11.02.Heat@Knicks.720p60.mkv + local FILE_SRC=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ urlencode /NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ local data +++ curl -s -o /dev/null -w '%{url_effective}' --get --data-urlencode /NBA.2012.11.02.Heat@Knicks.720p60.mkv '' ++ data='/?' ++ '[' 3 '!=' 3 ']' ++ echo '' + local FILE_DST= + print ' > Uploading "downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv" to "/NBA.2012.11.02.Heat@Knicks.720p60.mkv"' + '[' 1 -eq 1 ']' + echo -ne ' > Uploading "downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv" to "/NBA.2012.11.02.Heat@Knicks.720p60.mkv"' > Uploading "downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv" to "/NBA.2012.11.02.Heat@Knicks.720p60.mkv"++ file_size downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ '[' linux == linux -o linux-gnu == cygwin ']' ++ stat --format=%s downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv ++ return + local FILE_SIZE=3694739132 + local OFFSET=0 + local UPLOAD_ID= + local UPLOAD_ERROR=0 + '[' 0 -ne 3694739132 ']' + let OFFSET_MB=0/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=0 count=4 + '[' 0 -ne 0 ']' ++ utime +++ date +%s ++ echo 1352740922 + time=1352740922 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352740922&oauth_nonce=23506' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=4194304 + '[' 4194304 -ne 3694739132 ']' + let OFFSET_MB=4194304/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=4 count=4 + '[' 4194304 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=4194304' ++ utime +++ date +%s ++ echo 1352740937 + time=1352740937 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=4194304&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352740937&oauth_nonce=19369' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=8388608 + '[' 8388608 -ne 3694739132 ']' + let OFFSET_MB=8388608/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=8 count=4 + '[' 8388608 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=8388608' ++ utime +++ date +%s ++ echo 1352740951 + time=1352740951 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=8388608&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352740951&oauth_nonce=24378' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=12582912 + '[' 12582912 -ne 3694739132 ']' + let OFFSET_MB=12582912/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=12 count=4 + '[' 12582912 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=12582912' ++ utime +++ date +%s ++ echo 1352740965 + time=1352740965 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=12582912&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352740965&oauth_nonce=31082' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=16777216 + '[' 16777216 -ne 3694739132 ']' + let OFFSET_MB=16777216/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=16 count=4 + '[' 16777216 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=16777216' ++ utime +++ date +%s ++ echo 1352740980 + time=1352740980 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=16777216&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352740980&oauth_nonce=9232' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=20971520 + '[' 20971520 -ne 3694739132 ']' + let OFFSET_MB=20971520/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=20 count=4 + '[' 20971520 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=20971520' ++ utime +++ date +%s ++ echo 1352740997 + time=1352740997 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=20971520&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352740997&oauth_nonce=7323' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=25165824 + '[' 25165824 -ne 3694739132 ']' + let OFFSET_MB=25165824/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=24 count=4 + '[' 25165824 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=25165824' ++ utime +++ date +%s ++ echo 1352741008 + time=1352741008 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=25165824&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741008&oauth_nonce=10722' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=29360128 + '[' 29360128 -ne 3694739132 ']' + let OFFSET_MB=29360128/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=28 count=4 + '[' 29360128 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=29360128' ++ utime +++ date +%s ++ echo 1352741016 + time=1352741016 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=29360128&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741016&oauth_nonce=20423' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=33554432 + '[' 33554432 -ne 3694739132 ']' + let OFFSET_MB=33554432/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=32 count=4 + '[' 33554432 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=33554432' ++ utime +++ date +%s ++ echo 1352741029 + time=1352741029 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=33554432&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741029&oauth_nonce=9449' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=37748736 + '[' 37748736 -ne 3694739132 ']' + let OFFSET_MB=37748736/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=36 count=4 + '[' 37748736 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=37748736' ++ utime +++ date +%s ++ echo 1352741037 + time=1352741037 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=37748736&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741037&oauth_nonce=31604' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=41943040 + '[' 41943040 -ne 3694739132 ']' + let OFFSET_MB=41943040/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=40 count=4 + '[' 41943040 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=41943040' ++ utime +++ date +%s ++ echo 1352741049 + time=1352741049 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=41943040&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741049&oauth_nonce=7503' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=46137344 + '[' 46137344 -ne 3694739132 ']' + let OFFSET_MB=46137344/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=44 count=4 + '[' 46137344 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=46137344' ++ utime +++ date +%s ++ echo 1352741067 + time=1352741067 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=46137344&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741067&oauth_nonce=12009' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=50331648 + '[' 50331648 -ne 3694739132 ']' + let OFFSET_MB=50331648/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=48 count=4 + '[' 50331648 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=50331648' ++ utime +++ date +%s ++ echo 1352741086 + time=1352741086 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=50331648&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741086&oauth_nonce=182' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=54525952 + '[' 54525952 -ne 3694739132 ']' + let OFFSET_MB=54525952/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=52 count=4 + '[' 54525952 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=54525952' ++ utime +++ date +%s ++ echo 1352741097 + time=1352741097 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=54525952&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741097&oauth_nonce=23901' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=58720256 + '[' 58720256 -ne 3694739132 ']' + let OFFSET_MB=58720256/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=56 count=4 + '[' 58720256 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=58720256' ++ utime +++ date +%s ++ echo 1352741116 + time=1352741116 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=58720256&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741116&oauth_nonce=7560' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=62914560 + '[' 62914560 -ne 3694739132 ']' + let OFFSET_MB=62914560/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=60 count=4 + '[' 62914560 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=62914560' ++ utime +++ date +%s ++ echo 1352741124 + time=1352741124 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=62914560&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741124&oauth_nonce=30197' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=67108864 + '[' 67108864 -ne 3694739132 ']' + let OFFSET_MB=67108864/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=64 count=4 + '[' 67108864 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=67108864' ++ utime +++ date +%s ++ echo 1352741133 + time=1352741133 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=67108864&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741133&oauth_nonce=22266' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=71303168 + '[' 71303168 -ne 3694739132 ']' + let OFFSET_MB=71303168/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=68 count=4 + '[' 71303168 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=71303168' ++ utime +++ date +%s ++ echo 1352741145 + time=1352741145 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=71303168&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741145&oauth_nonce=27624' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=75497472 + '[' 75497472 -ne 3694739132 ']' + let OFFSET_MB=75497472/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=72 count=4 + '[' 75497472 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=75497472' ++ utime +++ date +%s ++ echo 1352741157 + time=1352741157 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=75497472&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741157&oauth_nonce=32349' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=79691776 + '[' 79691776 -ne 3694739132 ']' + let OFFSET_MB=79691776/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=76 count=4 + '[' 79691776 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=79691776' ++ utime +++ date +%s ++ echo 1352741165 + time=1352741165 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=79691776&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741165&oauth_nonce=7091' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=83886080 + '[' 83886080 -ne 3694739132 ']' + let OFFSET_MB=83886080/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=80 count=4 + '[' 83886080 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=83886080' ++ utime +++ date +%s ++ echo 1352741174 + time=1352741174 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=83886080&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741174&oauth_nonce=14783' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=88080384 + '[' 88080384 -ne 3694739132 ']' + let OFFSET_MB=88080384/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=84 count=4 + '[' 88080384 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=88080384' ++ utime +++ date +%s ++ echo 1352741184 + time=1352741184 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=88080384&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741184&oauth_nonce=13209' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=92274688 + '[' 92274688 -ne 3694739132 ']' + let OFFSET_MB=92274688/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=88 count=4 + '[' 92274688 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=92274688' ++ utime +++ date +%s ++ echo 1352741193 + time=1352741193 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=92274688&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741193&oauth_nonce=10808' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=96468992 + '[' 96468992 -ne 3694739132 ']' + let OFFSET_MB=96468992/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=92 count=4 + '[' 96468992 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=96468992' ++ utime +++ date +%s ++ echo 1352741202 + time=1352741202 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=96468992&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741202&oauth_nonce=25042' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=100663296 + '[' 100663296 -ne 3694739132 ']' + let OFFSET_MB=100663296/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=96 count=4 + '[' 100663296 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=100663296' ++ utime +++ date +%s ++ echo 1352741216 + time=1352741216 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=100663296&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741216&oauth_nonce=16095' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=104857600 + '[' 104857600 -ne 3694739132 ']' + let OFFSET_MB=104857600/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=100 count=4 + '[' 104857600 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=104857600' ++ utime +++ date +%s ++ echo 1352741224 + time=1352741224 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=104857600&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741224&oauth_nonce=13285' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=109051904 + '[' 109051904 -ne 3694739132 ']' + let OFFSET_MB=109051904/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=104 count=4 + '[' 109051904 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=109051904' ++ utime +++ date +%s ++ echo 1352741236 + time=1352741236 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=109051904&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741236&oauth_nonce=6264' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=113246208 + '[' 113246208 -ne 3694739132 ']' + let OFFSET_MB=113246208/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=108 count=4 + '[' 113246208 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=113246208' ++ utime +++ date +%s ++ echo 1352741245 + time=1352741245 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=113246208&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741245&oauth_nonce=3319' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=117440512 + '[' 117440512 -ne 3694739132 ']' + let OFFSET_MB=117440512/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=112 count=4 + '[' 117440512 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=117440512' ++ utime +++ date +%s ++ echo 1352741257 + time=1352741257 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=117440512&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741257&oauth_nonce=19798' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=121634816 + '[' 121634816 -ne 3694739132 ']' + let OFFSET_MB=121634816/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=116 count=4 + '[' 121634816 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=121634816' ++ utime +++ date +%s ++ echo 1352741277 + time=1352741277 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=121634816&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741277&oauth_nonce=26976' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=125829120 + '[' 125829120 -ne 3694739132 ']' + let OFFSET_MB=125829120/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=120 count=4 + '[' 125829120 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=125829120' ++ utime +++ date +%s ++ echo 1352741289 + time=1352741289 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=125829120&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741289&oauth_nonce=9131' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=130023424 + '[' 130023424 -ne 3694739132 ']' + let OFFSET_MB=130023424/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=124 count=4 + '[' 130023424 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=130023424' ++ utime +++ date +%s ++ echo 1352741310 + time=1352741310 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=130023424&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741310&oauth_nonce=23221' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=134217728 + '[' 134217728 -ne 3694739132 ']' + let OFFSET_MB=134217728/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=128 count=4 + '[' 134217728 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=134217728' ++ utime +++ date +%s ++ echo 1352741324 + time=1352741324 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=134217728&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741324&oauth_nonce=19271' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=138412032 + '[' 138412032 -ne 3694739132 ']' + let OFFSET_MB=138412032/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=132 count=4 + '[' 138412032 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=138412032' ++ utime +++ date +%s ++ echo 1352741332 + time=1352741332 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=138412032&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741332&oauth_nonce=14701' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=142606336 + '[' 142606336 -ne 3694739132 ']' + let OFFSET_MB=142606336/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=136 count=4 + '[' 142606336 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=142606336' ++ utime +++ date +%s ++ echo 1352741341 + time=1352741341 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=142606336&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741341&oauth_nonce=14011' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=146800640 + '[' 146800640 -ne 3694739132 ']' + let OFFSET_MB=146800640/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=140 count=4 + '[' 146800640 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=146800640' ++ utime +++ date +%s ++ echo 1352741351 + time=1352741351 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=146800640&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741351&oauth_nonce=17315' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=150994944 + '[' 150994944 -ne 3694739132 ']' + let OFFSET_MB=150994944/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=144 count=4 + '[' 150994944 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=150994944' ++ utime +++ date +%s ++ echo 1352741364 + time=1352741364 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=150994944&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741364&oauth_nonce=7413' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=155189248 + '[' 155189248 -ne 3694739132 ']' + let OFFSET_MB=155189248/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=148 count=4 + '[' 155189248 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=155189248' ++ utime +++ date +%s ++ echo 1352741383 + time=1352741383 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=155189248&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741383&oauth_nonce=22350' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=159383552 + '[' 159383552 -ne 3694739132 ']' + let OFFSET_MB=159383552/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=152 count=4 + '[' 159383552 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=159383552' ++ utime +++ date +%s ++ echo 1352741393 + time=1352741393 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=159383552&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741393&oauth_nonce=27556' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=163577856 + '[' 163577856 -ne 3694739132 ']' + let OFFSET_MB=163577856/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=156 count=4 + '[' 163577856 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=163577856' ++ utime +++ date +%s ++ echo 1352741409 + time=1352741409 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=163577856&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741409&oauth_nonce=3147' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=167772160 + '[' 167772160 -ne 3694739132 ']' + let OFFSET_MB=167772160/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=160 count=4 + '[' 167772160 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=167772160' ++ utime +++ date +%s ++ echo 1352741418 + time=1352741418 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=167772160&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741418&oauth_nonce=16386' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=171966464 + '[' 171966464 -ne 3694739132 ']' + let OFFSET_MB=171966464/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=164 count=4 + '[' 171966464 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=171966464' ++ utime +++ date +%s ++ echo 1352741434 + time=1352741434 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=171966464&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741434&oauth_nonce=18401' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=176160768 + '[' 176160768 -ne 3694739132 ']' + let OFFSET_MB=176160768/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=168 count=4 + '[' 176160768 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=176160768' ++ utime +++ date +%s ++ echo 1352741453 + time=1352741453 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=176160768&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741453&oauth_nonce=15823' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=180355072 + '[' 180355072 -ne 3694739132 ']' + let OFFSET_MB=180355072/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=172 count=4 + '[' 180355072 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=180355072' ++ utime +++ date +%s ++ echo 1352741460 + time=1352741460 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=180355072&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741460&oauth_nonce=30779' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=184549376 + '[' 184549376 -ne 3694739132 ']' + let OFFSET_MB=184549376/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=176 count=4 + '[' 184549376 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=184549376' ++ utime +++ date +%s ++ echo 1352741478 + time=1352741478 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=184549376&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741478&oauth_nonce=32501' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=188743680 + '[' 188743680 -ne 3694739132 ']' + let OFFSET_MB=188743680/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=180 count=4 + '[' 188743680 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=188743680' ++ utime +++ date +%s ++ echo 1352741498 + time=1352741498 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=188743680&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741498&oauth_nonce=11378' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=192937984 + '[' 192937984 -ne 3694739132 ']' + let OFFSET_MB=192937984/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=184 count=4 + '[' 192937984 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=192937984' ++ utime +++ date +%s ++ echo 1352741505 + time=1352741505 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=192937984&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741505&oauth_nonce=31210' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=197132288 + '[' 197132288 -ne 3694739132 ']' + let OFFSET_MB=197132288/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=188 count=4 + '[' 197132288 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=197132288' ++ utime +++ date +%s ++ echo 1352741519 + time=1352741519 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=197132288&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741519&oauth_nonce=6629' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=201326592 + '[' 201326592 -ne 3694739132 ']' + let OFFSET_MB=201326592/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=192 count=4 + '[' 201326592 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=201326592' ++ utime +++ date +%s ++ echo 1352741537 + time=1352741537 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=201326592&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741537&oauth_nonce=7487' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=205520896 + '[' 205520896 -ne 3694739132 ']' + let OFFSET_MB=205520896/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=196 count=4 + '[' 205520896 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=205520896' ++ utime +++ date +%s ++ echo 1352741548 + time=1352741548 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=205520896&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741548&oauth_nonce=9287' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=209715200 + '[' 209715200 -ne 3694739132 ']' + let OFFSET_MB=209715200/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=200 count=4 + '[' 209715200 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=209715200' ++ utime +++ date +%s ++ echo 1352741555 + time=1352741555 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=209715200&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741555&oauth_nonce=21182' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=213909504 + '[' 213909504 -ne 3694739132 ']' + let OFFSET_MB=213909504/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=204 count=4 + '[' 213909504 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=213909504' ++ utime +++ date +%s ++ echo 1352741565 + time=1352741565 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=213909504&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741565&oauth_nonce=26117' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=218103808 + '[' 218103808 -ne 3694739132 ']' + let OFFSET_MB=218103808/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=208 count=4 + '[' 218103808 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=218103808' ++ utime +++ date +%s ++ echo 1352741582 + time=1352741582 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=218103808&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741582&oauth_nonce=30009' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=222298112 + '[' 222298112 -ne 3694739132 ']' + let OFFSET_MB=222298112/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=212 count=4 + '[' 222298112 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=222298112' ++ utime +++ date +%s ++ echo 1352741609 + time=1352741609 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=222298112&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741609&oauth_nonce=12648' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=226492416 + '[' 226492416 -ne 3694739132 ']' + let OFFSET_MB=226492416/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=216 count=4 + '[' 226492416 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=226492416' ++ utime +++ date +%s ++ echo 1352741621 + time=1352741621 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=226492416&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741621&oauth_nonce=13530' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=230686720 + '[' 230686720 -ne 3694739132 ']' + let OFFSET_MB=230686720/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=220 count=4 + '[' 230686720 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=230686720' ++ utime +++ date +%s ++ echo 1352741634 + time=1352741634 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=230686720&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741634&oauth_nonce=3813' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=234881024 + '[' 234881024 -ne 3694739132 ']' + let OFFSET_MB=234881024/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=224 count=4 + '[' 234881024 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=234881024' ++ utime +++ date +%s ++ echo 1352741641 + time=1352741641 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=234881024&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741641&oauth_nonce=27157' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=239075328 + '[' 239075328 -ne 3694739132 ']' + let OFFSET_MB=239075328/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=228 count=4 + '[' 239075328 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=239075328' ++ utime +++ date +%s ++ echo 1352741649 + time=1352741649 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=239075328&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741649&oauth_nonce=6854' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=243269632 + '[' 243269632 -ne 3694739132 ']' + let OFFSET_MB=243269632/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=232 count=4 + '[' 243269632 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=243269632' ++ utime +++ date +%s ++ echo 1352741656 + time=1352741656 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=243269632&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741656&oauth_nonce=22725' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=247463936 + '[' 247463936 -ne 3694739132 ']' + let OFFSET_MB=247463936/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=236 count=4 + '[' 247463936 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=247463936' ++ utime +++ date +%s ++ echo 1352741670 + time=1352741670 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=247463936&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741670&oauth_nonce=2424' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=251658240 + '[' 251658240 -ne 3694739132 ']' + let OFFSET_MB=251658240/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=240 count=4 + '[' 251658240 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=251658240' ++ utime +++ date +%s ++ echo 1352741681 + time=1352741681 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=251658240&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature=XXXXXXXXXX%26XXXXXXXXXX&oauth_timestamp=1352741681&oauth_nonce=19050' + grep 'HTTP/1.1 200 OK' /tmp/du_resp_debug + '[' 0 -ne 0 ']' + print . + '[' 1 -eq 1 ']' + echo -ne . .+ UPLOAD_ERROR=0 ++ sed -n 's/.*"upload_id": *"*\([^"]*\)"*.*/\1/p' /tmp/du_resp_debug + UPLOAD_ID=wH_R2Hq7T0ooNmG09bxBLw ++ sed -n 's/.*"offset": *\([^}]*\).*/\1/p' /tmp/du_resp_debug + OFFSET=255852544 + '[' 255852544 -ne 3694739132 ']' + let OFFSET_MB=255852544/1024/1024 + dd if=downloads/NBA.2012.11.02.Heat@Knicks.720p60.mkv of=/tmp/du_chunk_8219 bs=1048576 skip=244 count=4 + '[' 255852544 -ne 0 ']' + CHUNK_PARAMS='upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=255852544' ++ utime +++ date +%s ++ echo 1352741689 + time=1352741689 + curl -s --show-error --globoff -i -o /tmp/du_resp_debug --upload-file /tmp/du_chunk_8219 'https://api-content.dropbox.com/1/chunked_upload?upload_id=wH_R2Hq7T0ooNmG09bxBLw&offset=255852544&oauth_consumer_key=XXXXXXXXXX&oauth_token=XXXXXXXXXX&oauth_signature_method=PLAINTEXT&oauth_signature
andreafabrizi commented 11 years agoAre you sure you have not reached your quota limit? I experience this issue only in this case...
topher200 commented 11 years agoI got it! It's not an issue with large files, it's an issue with filenames. This file works: "test.test". However, "test@test" fails. Doesn't matter how small it is - I did "touch test@test" and that fails.
The regular Dropbox client doesn't seem to have this issue with filenames.
andreafabrizi commented 11 years agoYou are right! I fixed this issue in the latest version. Let me know.
topher200 commented 11 years agoSeems to be working. Thanks! Glad we got it figured out. Very awesome script by the way, super helpful.
ibws commented 11 years agoseems to be an issue still on filenames this filename fails all the time for some reason ibws_live_13-07-05.tar.gz
ibws commented 11 years agook not an issue on file name always fails on the third transfer
- check_curl_status
- CODE=0
- case $CODE in
- return
- grep -q 'HTTP/1.1 200 OK' /tmp/du_resp_debug
- print '*'
- '[' 0 -eq 0 ']'
- echo -ne '' + let UPLOAD_ERROR=2+1
- '[' 3 -gt 2 ']'
- print ' FAILED\n'
- '[' 0 -eq 0 ']'
- echo -ne ' FAILED\n' FAILED
- print 'An error occurred requesting /chunked_upload\n'
- '[' 0 -eq 0 ']'
- echo -ne 'An error occurred requesting /chunked_upload\n' An error occurred requesting /chunked_upload
- remove_temp_files
- '[' 1 -eq 0 ']'
- exit 1
ibws commented 11 years agoThis file is mainly just images, when I remove the response check on lines 419 - 430 and the other response check on lines 451 - 464, the upload goes through successfully. should the response check being throwing an error when it gets a 200 response. Maybe you could explain the purpose to me of that so I can keep looking into this issue. Thanks
andreafabrizi commented 11 years agoThe problem should be fixed with the last commit.
ibws commented 11 years agoExcellent thanks, great script btw.
camwilmot commented 11 years agoI'm still getting:
.*\ FAILED An error occurred requesting /chunked_upload
This is when uploading a 60GB file - any ideas?
camwilmot commented 11 years agoWith VERSION="0.11.9"
andreafabrizi commented 11 years agoI think that the problem is not related to the script. Have you already tried to upload the same file using the standard client?
cyrusdavid commented 10 years agoHi, which commits did fix this issue?
hamsterready commented 9 years agoFor anyone who is using the scripts, I tried with latest version (from master) and having same issue when uploading large files (100GB+).
Splitting files into <10GB helped in my case.
When uploading a large file in chunks, the first few chunks works fine, than I'm getting an 502 error with one of the chunks. This is the response I'm getting:
I'm not sure if that's a problem on your side or on Dropbox's, but I thought you might want to take a look.