cagdasbas / glacier-rsync

GNU General Public License v2.0
9 stars 2 forks source link

File upload fails with error: Invalid Content-Range #3

Open mstyne opened 3 years ago

mstyne commented 3 years ago
# ~/.local/bin/grsync -h
usage: grsync version 0.3.6

Attempting to backup a ~900M zip file fails with:

2021-06-16 13:25:12,689 - backup_util._backup:228 - ERROR - An error occurred (InvalidParameterValueException) when calling the UploadMultipartPart operation: Invalid Content-Range: bytes 909994937-909994936/*

Based on the error message and the file size, the range in question appears to be incorrect.

File details in question:

root@git:/usr/local/gitea/backup# file gitea-dump-1623848969.zip 
gitea-dump-1623848969.zip: Zip archive data, at least v2.0 to extract
root@git:/usr/local/gitea/backup# ls -l gitea-dump-1623848969.zip 
-rw------- 1 xxx sysadmin 909994937 Jun 16 13:10 gitea-dump-1623848969.zip

Thanks for taking a look. 👍

cagdasbas commented 3 years ago

Hi,

I'll take a look in a few days. Is this happening for each video, just this one, or files larger than X MB?

mstyne commented 3 years ago

Good morning!

I'm only trying to upload this one file; I have never used glacier-rsync before. :)

It appears to happen for any file (here's the output trying to upload a small file, glacier.db):

-rw-r--r-- 1 root root 8192 Jun 16 13:19 /usr/local/gitea/backup/glacier.db

2021-06-17 11:45:47,318 - backup_util._backup:228 - ERROR - An error occurred (InvalidParameterValueException) when calling the UploadMultipartPart operation: Invalid Content-Range: bytes 8192-8191/*

Thanks for having a look.

# python3 --version
Python 3.8.5
cagdasbas commented 3 years ago

Hi. Sorry for the long long delay. I'm looking into this but couldn't replicate due to weird aws permission issues. I uploaded 120G data but now suddenly aws says I don't have the required permissions. I'll look into it.