# Duplicati server stops without explanation

**URL:** <https://forum.duplicati.com/t/duplicati-server-stops-without-explanation/2494>\
**Category:** Support\
**Created:** [February 14, 2018, 3:42pm UTC](https://forum.duplicati.com/t/duplicati-server-stops-without-explanation/2494 "2018-02-14T15:42:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [February 15, 2018, 3:15pm UTC](https://forum.duplicati.com/t/duplicati-server-stops-without-explanation/2494/7 "2018-02-15T15:15:50Z")

</div>

Thanks for the details! I went ahead and edited your post by putting “~~~” around the command line stuff and “\>” before the GUI text to make them easier to read.

It sounds like you’re running into the same issue as mentioned in these topics:

> [@Connection lost](https://forum.duplicati.com/t/connection-lost/1840/5):
>
> I start it from cmd.exe and it output: c:\duplicati\>Duplicati.GUI.TrayIcon.exe --verbose=true c:\duplicati\>Сервер запущен и слушает на 127.0.0.1, порт 8200 Необработанное исключение: Необработанное исключение: System.InvalidOperationException: Предпринята попытка перевести в конечное состояние задачу, которая уже выполнена. в System.Threading.Tasks.TaskCompletionSource`1.SetResult(TResult result) в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCa…

> [@BUG: \[FreeNAS\] Fatal crash after startup](https://forum.duplicati.com/t/bug-freenas-fatal-crash-after-startup/1469/9):
>
> I deleted and reinstalled Duplicati, this topic can be closed.

> [@Duplicati 2 crashes after a short time on Windows](https://forum.duplicati.com/t/duplicati-2-crashes-after-a-short-time-on-windows/2388):
>
> I’ve been using the Beta release of Duplicati for a while now on Windows 10 and without any changes to the settings for several months. Today I noticed that the tray icon wasn’t there and so I tried to start it up again. Everything looked normal for about 30 seconds and then it crashed. When I ran it from the command line here’s the error I received: C:\Program Files\Duplicati 2\>Duplicati.GUI.TrayIcon.exe C:\Program Files\Duplicati 2\>Server has started and is listening on 127.0.0.1, port 8200…

> <https://github.com/duplicati/duplicati/issues/3020>
>
> \- \[x\] I have searched open and closed issues for duplicates.
> 
> \----------------…------------------------
> 
> \## Environment info
> \- \*\*Duplicati version\*\*: 2.0.2.1\_beta\_2017-08-01
> \- \*\*Operating system\*\*: Windows 7
> \- \*\*Backend\*\*: N/A
> 
> \## Description
> When the Usage statistics function is set and the system has a proxy enabled.. the proxy sending "HTTP/1.1 407 Proxy Authentication Required" causes Duplicati.GUI.TrayIcon to crash and, if running, abort any backup that is running.
> 
> \## Steps to reproduce
> 1. Set an http proxy in Internet Explorer / system settings
> 2. Make sure that the proxy has authentication enabled.
> 3. Load Duplicati2 and hope that it tries to send usage statistics.
> 4. Duplicati2 crashes.
> 
> 
> 
> \- \*\*Actual result\*\*:
> ~60 CONNECT requests are attempted to usage-reporter.duplicati.com on port 443, each are responded to with a "407" status and Duplicati2 never retries with authentication credentials. Duplicati2 then crashes.
> \- \*\*Expected result\*\*:
> Either a silent failure / graceful handling of the unexpected HTTP response and continuation of normal program functions.. or handle proxy authentication so that normal program functions \_and\_ usage statistics both work.
> 
> 
> \## Screenshots
> !\[duplicati2crashproxyauth\](https://user-images.githubusercontent.com/761083/35991996-e1ed5386-0d00-11e8-8781-a2d05c9bc276.png)
> 
> \## Debug log
> Not available, sorry.

If you can get into the GUI fast enough try setting main menu Settings → “Anonymous usage reports” to “None / Disabled”.

I’m not aware of the command line parameter to disable usage log reporting, but if you can’t get into the GUI to turn it off you could also try deleting any pending submissions from your temp folder. Assuming standard settings, this can be done in the command shell by:

1. changing to your temp folder by running `cd %tmp%`
2. listing pending submissions by running `dir dupl-usagereport-*`
3. If there are more than 50 or so of them, delete them by running `del dupl-usagereport-*`

You can also do it in Windows Explorer by:

1. Enter `%tmp%` in the path folder
2. Sort or filter such that all the `dupl-usagereport-*` files are grouped together
3. highlight and delete

---

_[View the full topic](https://forum.duplicati.com/t/duplicati-server-stops-without-explanation/2494)._
