# Keep getting System.AggregateException and System.IO.FileNotFoundException. Need help

**URL:** https://forum.duplicati.com/t/keep-getting-system-aggregateexception-and-system-io-filenotfoundexception-need-help/10826
**Category:** Support
**Created:** [September 29, 2020, 12:48pm UTC](https://forum.duplicati.com/t/keep-getting-system-aggregateexception-and-system-io-filenotfoundexception-need-help/10826 "2020-09-29T12:48:21Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [October 1, 2020, 10:36pm UTC](https://forum.duplicati.com/t/keep-getting-system-aggregateexception-and-system-io-filenotfoundexception-need-help/10826/2 "2020-10-01T22:36:20Z")

</div>

This sort of “Could not find file” for temporary file, with SpillCollectorProcess on the stack seems to result from prior errors. Your earlier error might be below. What is this backend, and any idea why it errors you?

> [@Nemesis](#):
>
> “ClassName”:“System.Net.WebException”,“Message”:“The remote server returned an error: (504) Gateway Time-out.”

Are you able to do smaller backups successfully? If so, look in the \<job\> → Log → Complete log for `RetryAttempts` to see if you’re starting to get some random ones, and just survived due to default 5 [number-of-retries](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#number-of-retries) managing to get through eventually. Any logs on the remote that would show 504?

You can also try getting the target URL from \<job\> → Export → As Command-line to edit with a new folder (the proposed test needs an empty folder) and run [Duplicati.CommandLine.BackendTester.exe](https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/#duplicaticommandlinebackendtesterexe)

It would be helpful to know what got 504. A way to find that (and maybe make a big file) is [log-file](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#log-file)=path along with [log-file-log-level](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#log-file-log-level)=retry to see what sort of things upload, how fast (timeout?), and what fails.

Are you running at the default 50 MB remote volume size, a.k.a [dblock-size](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#dblock-size)? How many source files? Assuming you’ve had at least one backup finish, the job log shows this under Source Files Examined, otherwise I guess you could do some sort of `find` command or something to try to get an estimate…

What I’m wondering is whether you’re making a dlist file that’s really large (lots of files), and timing out.

---

_[View the full topic](https://forum.duplicati.com/t/keep-getting-system-aggregateexception-and-system-io-filenotfoundexception-need-help/10826)._
