Nextcloud backup never finishes #22
Labels
No labels
bug
chore
duplicate
enhancement
help wanted
invalid
question
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#2 Backup Nextcloud
Bos55/Hugo
Reference: Bos55/Hugo#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Nextcloud backup task never finishes transfer
Steps already taken to prevent this:
Logs after forcing running task to stop do not show anything particular
Some more logs
After running for a couple of days.
It is possible to view the rsync output by tailing the logs of the TrueNAS task (which is just a number).
tail -f /var/log/jobs/485544.log
Lines that seem to occur often (throughout multiple logs) are
I will have to look into those files
https://serverfault.com/q/627002
https://bobcares.com/blog/rsync-hangs-on-large-files/
The issue could be due to insufficient RAM in the destination server to handle files larger than say 5GB. Might have to open Nicole up soon to check that. We need to be in there anyways.
I believe, what happens is that Rsync fails because the server hangs. TrueNAS will always try again as long as it has connectivity to the destination. However, every time the transfer fails, it removes what has already been transferring, resulting in a loop where the first part of the file is being transferred before hanging again.
It's also possible that timeout is reached because Nicole (the backup server) takes a while to calculate the checksum of the big file.
In these consecutive lines, you can see that it for some reason retries the finished file. Once again a big file: I will remove this unnecessary file and try again.
So opened Nicole up, only to be disappointed by an integrated board with no way to upgrade the 2 Gigs of RAM. We will have to tackle this issue by using the rsync options that allow continuing from stopped transfer.
Using the new zfs backup script, a backup was made successfully! 😄