Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danhab99 opened this issue Jul 21, 2019 · 0 comments
Open

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

danhab99 opened this issue Jul 21, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@danhab99
Copy link

danhab99 commented Jul 21, 2019

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
@danhab99 danhab99 added the bug Something isn't working label Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant