Sorry have to report this version is not working either (x64 MSI).
When I start the service it fails with two errors:
Log Name: Application
Source: .NET Runtime
Date: 03/09/2019 08:01:21
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer:
Description:
Application: Duplicati.Server.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at Duplicati.Library.UsageReporter.Reporter.ShutDown()
at Duplicati.Server.Program.RealMain(System.String[])
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Duplicati.Library.AutoUpdater.UpdaterManager.RunMethod(System.Reflection.MethodInfo, System.String[])
at Duplicati.Library.AutoUpdater.UpdaterManager+<>c__DisplayClass58_1.<RunFromMostRecentSpawn>b__0()
at Duplicati.Library.AutoUpdater.UpdaterManager.WrapWithUpdater(Duplicati.Library.AutoUpdater.AutoUpdateStrategy, System.Action)
at Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecentSpawn(System.Reflection.MethodInfo, System.String[], Duplicati.Library.AutoUpdater.AutoUpdateStrategy)
at Duplicati.Server.Program.Main(System.String[])
I tested a clean install of the .26 canary and an install of the .26 canary on top of the .23 beta. I wasn’t able to reproduce this on a new install of 2019.
Sure, I can do that tonight, also note that this is a Server 2019 “Core” server as are nearly all my servers except one, but I will also test the same update on my Win10 PC when I get home as well.
Oh I also have the “Server Core App Compatibility Feature on Demand” installed on the machines as well - it only gives a few extra things, but they are useful.
I downloaded the 2.0.4.26 x64 MSI and got the error when doing an in-place upgrade over 2.0.4.22. (Install seemed to work but Duplicati would not start.)
Log Name: Application
Source: .NET Runtime
Date: 9/2/2019 7:14:04 PM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: XPS-8900
Description:
Application: Duplicati.GUI.TrayIcon.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at Duplicati.GUI.TrayIcon.HostedInstanceKeeper..ctor(System.String[])
at Duplicati.GUI.TrayIcon.Program.RealMain(System.String[])
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Duplicati.Library.AutoUpdater.UpdaterManager.RunMethod(System.Reflection.MethodInfo, System.String[])
at Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecentSpawn(System.Reflection.MethodInfo, System.String[], Duplicati.Library.AutoUpdater.AutoUpdateStrategy)
at Duplicati.GUI.TrayIcon.Program.Main(System.String[])
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-09-03T02:14:04.709788000Z" />
<EventRecordID>8094</EventRecordID>
<Channel>Application</Channel>
<Computer>XPS-8900</Computer>
<Security />
</System>
<EventData>
<Data>Application: Duplicati.GUI.TrayIcon.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at Duplicati.GUI.TrayIcon.HostedInstanceKeeper..ctor(System.String[])
at Duplicati.GUI.TrayIcon.Program.RealMain(System.String[])
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Duplicati.Library.AutoUpdater.UpdaterManager.RunMethod(System.Reflection.MethodInfo, System.String[])
at Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecentSpawn(System.Reflection.MethodInfo, System.String[], Duplicati.Library.AutoUpdater.AutoUpdateStrategy)
at Duplicati.GUI.TrayIcon.Program.Main(System.String[])
</Data>
</EventData>
</Event>
I uninstalled Duplicati and reinstalled 2.0.4.26 cleanly and then it started ok.
I can reproduce a “Cannot start service from the command line” if I try Duplicati.WindowsService, but that message sounds self-explanatory. “When I try to run it from the command-line” didn’t say what “it” means.
About events, Event Viewer finds occasional .NET Runtime “unhandled exception”, e.g. even from 2.0.4.5. Latest one is possibly entangled with VSS errors from my forgetting Run as Administrator at 2.0.4.26 start. Another system seems to be running service fine. That was .msi install. First mentioned one was from zip.
Looking for similar issues from yesterday’s not-working-right-for-me rounds on 2.0.4.24 and 2.0.4.25, I find
2.0.4.24 TrayIcon 2019-09-02 07:54:45 and 2019-09-02 08:05:28 starts had no events. CommandLine had:
Application: Duplicati.CommandLine.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException
Exception Info: System.IO.FileLoadException
at Duplicati.Library.AutoUpdater.UpdaterManager.CheckForUpdate(Duplicati.Library.AutoUpdater.ReleaseType)
at Duplicati.Library.AutoUpdater.UpdaterManager+<>c__DisplayClass52_0.<WrapWithUpdater>b__0()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
and the same pattern continued with System.IO.FileLoadException into 2.0.4.25 then 2.0.4.26 managed a System.IO.IOException probably due to me using VSS before remembering to do “Run as administrator”.
I’ve had in-place upgrades come up with missing files, with no obvious pattern, so now I say uninstall first. Possibly there’s an installer bug that needs to be tracked down. People expect install-overs to work OK…
Something I will also try tonight is to upgrade to .26 then do a repair on the new install - when I revert back to .22 I have to do this or the service won’t start. If I can figure out the repair command-line I’ll see if it can log that as well.
Great find. I can also reproduce it. I would suspect some extra files are remaining from .22 after .26 installs. The .26 installer might need to remove/cleanup old files.
I compared a clean .26 install to a .22+.26 install.
Extra files were not the problem… the opposite. For some reason the single file CoCoL.dll is being removed when installing .26 over .22
Add the file back and it works correctly. i’ll look over the logs to try and see why it is being removed or not copied. A repair does correct it and will copy the file.