-
Notifications
You must be signed in to change notification settings - Fork 895
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
Insufficient memory to continue the execution of the program #4481
Comments
Issue #4108 sounds related. |
Hi @warwickmm I mean, that previous issue #4108 eventually got fixed and everything was working fine but lately over the last 2 or 3 updates, not sure, Duplicati is eating so much memory it gets to a point where I can't even access the web interface and usually give up and restart the docker instance. |
Hi @fred-cardoso, you'll have better luck getting help by posting in the forums. There are a lot more users there that can help you debug this issue. |
Maybe related to #1849? |
Actually, the description of the problem matches. I can only release the memory by restarting Duplicati. |
You might want to add to this conversation: |
Sorry for the delay on this. Just to let you know that as soon as I have some time I'll try to better describe my issue on the forum. |
I think I have the same problem here. Duplicati restarts when a backup job is initiated. After processing some files, RAM usage increases and duplicati restarts.
Target
Options
Updated container to latest Mono version (6.12.0.122 )and backup keeps on crashing. However this time backup process processed some more files. Tried Docker compose file
Executed cmd: duplicati.log
docker logs duplicati
|
Ok. I think I've found the problem. My solution: Update: |
One more update:
So I'm stuck with this backup... |
Thanks for reporting @davidtgbe. Can you confirm that your version of mono is 5.2.0 as stated above? Starting with version 2.0.6.1, Duplicati requires mono 5.10 or greater. |
Sure @warwickmm. I started with the oob linuxserver docker image which comes with Mono 5.2.0 built in. When I got these errors I tried updating the container with the latest Mono version, which is 6.12.0.122 and is the one I'm using right now. Summary:
|
Thanks @davidtgbe. What's the total size of the source files you're backing up? Also, can you try setting If you're willing to see if this behavior also occurs with the official Docker image, that would be interesting as well. /cc @tygill in case they have any additional thoughts. |
I actually use a similar setup - Duplicati on a 4GB raspberry pi 4 backing up to OneDrive via the onedrivev2 backend (though I switched from the linuxserver.io to the official Docker container recently). I do have a few settings tuned to avoid memory problems though, and they seem to help:
I also use |
Sorry for the late response and thanks for your suggestions. I then realized that a lot of IOWaits were ocurring on SDCard. I supposed this was due to all the compress/encrypt operations that were being performed on /tmp (files like ´dup-XXXXXXXXX...´) before uploading files because my source files where on an external USB disk. I dug a bit and found this . This also could lead to potential damage on a SD card as time passes due to wear levelling, so I've added a tmpfs volume to my dupplicati container. My RPI has 4GB of RAM so it can deal with this.
docker-compose.yml
This has reduced considerably the amount of IO operations performed on SDCard. Now, only DB operations perform RW operations on SDCard. However, speed has not improved despite my system now is not waiting for IOs or running out of RAM/CPU. I then decided to check @tygill configuration to try to shed some light to this thread. @tygill configuration, which uses It is weird, maybe now runs ok with both configurations as a side effect of the tmpfs volume. I've changed nothing but this. Source files dataset has not been changed. I will keep on digging on a way to improve upload speed. |
Environment info
Running under docker on Raspberry Pi 4 (4GB RAM).
Description
Recently, has become impossible to run a backup because sooner or later I get a
Insufficient memory to continue the execution of the program
error. I tried on multiple backup configurations, but if it takes longer, it crashes.Steps to reproduce
There aren't really any steps to reproduce. I just need to create a backup of around 500GB, run it, and after a few hours it crashes.
Debug log
The text was updated successfully, but these errors were encountered: