Email problem and Backup lock

Thanks for the offer but I have confirmed the problem and flagged this topic as a #bug and entered an issue over at GitHub. Note that due to the likely low “in the wild” occurrence of this scenario I expect this won’t be super high on the “to-do” list right now.


Running a backup (such as to a local drive) with email settings such as --send-mail-from and --send-mail-to but WITHOUT --send-mail-url or a network connection finishes the backup but the server is left in a broken state with the GUI (incorrectly) stuck on “Waiting for upload”.

Stopping the task does NOT resolve the state and only restarting the Duplicati server allows for recovery.

Note that this only seems to happen when there is a LAN connection configured but it is not physically connected. If the network adapter is simply disabled then the expected warning message is shown with the actual message shown in the global Live Profiling log.

Got 1 warning(s) image

Jun 25, 2018 9:30 AM: The operation Backup has completed
Jun 25, 2018 9:30 AM: Failed to send message: System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable network 8.8.8.8:53
{
"NativeErrorCode":10051,
"ClassName":"System.Net.Sockets.SocketException",
"Message":"A socket operation was attempted to an unreachable network",
"Data":null,
"InnerException":null,
"HelpURL":null,
"StackTraceString":"
   at System.Net.Sockets.UdpClient.Connect(String hostname, Int32 port)
   at DnsLib.DnsLite.getMXRecords(String host, String serverAddress)
   at Duplicati.Library.Modules.Builtin.SendMail.SendMessage(String subject, String body)
   at Duplicati.Library.Modules.Builtin.ReportHelper.OnFinish(Object result)",
"RemoteStackTraceString":null,
"RemoteStackIndex":0,
"ExceptionMethod":"8
Connect
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Net.Sockets.UdpClient
Void Connect(System.String, Int32)",
"HResult":-2147467259,
"Source":"System",
"WatsonBuckets":null
}
Jun 25, 2018 9:30 AM: Running Backup took 0:00:01:39.047