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

upload to dropbox failed, error: "curl: option --data-binary: out of memory" #363

Closed
tracking opened this issue Apr 7, 2017 · 2 comments
Labels

Comments

@tracking
Copy link

tracking commented Apr 7, 2017

I use a small memory vps, file size is almost 50M

> Uploading "/home/blog/backup/20170407_171845_UTC/www.zip" to "/backup/20170407_171845_UTC/www.zip"... curl: option --data-binary: out of memory
curl: try 'curl --help' or 'curl --manual' for more information
FAILED
An error occurred requesting /upload
@andreafabrizi
Copy link
Owner

What you can do is:

  • Find the code "if [[ $FILE_SIZE -gt 157286000 ]]; then" and change the 157286000 to 5000000 (5M) for example
  • At the beginning of the script set CHUNK_SIZE to 5
    In this way, if the file is greater than 5Mb, it will upload it in chunks of 5MB, using maximum 5M or RAM for every chunk. It should work and you can still reduce the value.

@metorm
Copy link

metorm commented Nov 25, 2017

This solves my problem on my tiny VPS with 128M RAM, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants