stewartmcgown / uds

📀 Unlimited Google Drive Storage by splitting binary files into base64
GNU Affero General Public License v3.0
4.35k stars 280 forks source link

[BUG] ValueError: mmap length is too long #79

Open danhab99 opened 5 years ago

danhab99 commented 5 years ago

Describe the bug uds.py fails to upload a 3GB .tar

To Reproduce Steps to reproduce the behavior:

  1. Run python3 uds.py push /mnt/sda/archive.tar
  2. Observe this error:
 python3 uds.py push /mnt/sda/archive.tar 
Traceback (most recent call last):
  File "uds.py", line 545, in <module>
    main()
  File "uds.py", line 466, in main
    uds.do_chunked_upload(file_path)
  File "uds.py", line 194, in do_chunked_upload
    self.upload_chunked_part(chunk)
  File "uds.py", line 138, in upload_chunked_part
    mm = mmap.mmap(fd.fileno(), 0, access=mmap.ACCESS_READ)
ValueError: mmap length is too large

Expected behavior uds.py uploads the archive

Screenshots

[none, because... it's a cli program]

System Information

pi@danpi:~ $ python3 --version
Python 3.5.3
pi@danpi:~ $ uname --all
Linux danpi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux