Unable to install/run on Debian 10

Hi,
I am getting an error message when trying to run duplicati on my Debian 10 machine. I posted details of the error here: New duplicati installation on Debian 10 crashes on launch · Issue #4263 · duplicati/duplicati · GitHub
Are there any Debian 10 users running duplicati successfully?
Thanks,
Ken

Welcome to the forum!

I run Duplicati on Debian (10 in the past, but I’m on testing now). I run it as a system level service (using systemctl) instead of running duplicati directly.

Do you want it to run as root on system bootup, or do you want it to run under the user context only while the user is logged on?

I am trying to simply run duplicati as a user from the terminal on an “as needed” basis. (I am using XFCE if that would make a difference and I am largely using Debian 10 buster stable with some buster-backports updates/apps).

And even when I try to run it as a service it fails:

ken@hp8570w:~$ sudo systemctl start duplicati
[sudo] password for ken: 
ken@hp8570w:~$ sudo systemctl status duplicati
● duplicati.service - Duplicati web-server
   Loaded: loaded (/lib/systemd/system/duplicati.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-08-05 12:04:26 HKT; 1s ago
 Main PID: 14586 (mono)
    Tasks: 3 (limit: 4915)
   Memory: 17.8M
   CGroup: /system.slice/duplicati.service
           └─14586 DuplicatiServer /usr/lib/duplicati/Duplicati.Server.exe

Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at Duplicati.Server.Program.Main (System.String[] args) [0x00014] in <be73c239d77d4180b5147067144fc237>:0
Aug 05 12:04:28 hp8570w duplicati-server[14586]: [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Duplicati.Library.Localization
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00007] in <f9ebcba1c32
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config,
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ce] in <f9eb
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.Configuration.Load () [0x00043] in <f9ebcba1c32849f8999456b268ea3539>:0
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System.String configPath, Sys
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationS
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfiguratio
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (System.Configuration.ConfigurationUserLevel userLe
Aug 05 12:04:28 hp8570w duplicati-server[14586]:   at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x0000e] in <f9ebcba1c32849f8999456b268ea3539>:0
Aug 05 12:04:28 hp8570w duplicati-server[14586]:    --- End of inner exception stack trace ---

Ok let me see if I can reproduce the issue. I’ll set up a fresh Debian 10 VM to test.

Fresh install of Debian 10 w/ XFCE. Downloaded the 2.0.5.108 deb and installed it with apt. Mono dependencies were automatically installed as expected.

After installation I ran “duplicati” (as a regular user) and it started up just fine. Strange.

The error messages to me look like they have something to do with a Tray Icon. I am tempted to install Gnome and trying to run it through that. Do you think that would make a difference?

I’m not very familiar with XFCE but it seems to not support tray icons. I don’t think that in of itself is a problem though. I had no trouble starting Duplicati on Debian 10 with XFCE.

I reinstalled version 2.0.5.108 and tried running duplicati and the error message appears to be different (no reference to sqlite):

$ duplicati
Unexpected error: System.TypeInitializationException: The type initializer for 'System.Net.ServicePointManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <runtime> (/usr/lib/duplicati/Duplicati.GUI.TrayIcon.exe.config line 2)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00007] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed, System.Boolean root) [0x00135] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed) [0x00007] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ce] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.Configuration.Load () [0x00043] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x0005d] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00056] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000d] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (System.Configuration.ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x000ef] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x0000e] in <f9ebcba1c32849f8999456b268ea3539>:0 
   --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x0002a] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00005] in <f9ebcba1c32849f8999456b268ea3539>:0 
  at System.Net.ServicePointManager..cctor () [0x0003c] in <4e15bbae9d7043d8afd6cfd50bd9bd5a>:0 
   --- End of inner exception stack trace ---
  at Duplicati.GUI.TrayIcon.Program.StartTray (System.String[] _args, System.Collections.Generic.Dictionary`2[TKey,TValue] options, System.String toolkit, Duplicati.GUI.TrayIcon.HostedInstanceKeeper hosted, System.String password, System.Boolean saltedpassword) [0x00013] in <28e7292c83ba46598bb12b53b19c4077>:0 

It does seem to be largely Tray Icon related. I’ll try a VM and/or Gnome as soon as I get the chance.

Thanks,
Ken

Duplicati.GUI.TrayIcon.exe is the standard main process that runs (unless you are running as a service). You can confirm by looking inside the /usr/bin/duplicati script.

It is a strange issue though, I don’t think it’s been reported before in the forum. Hopefully your testing will turn up something.

It looks like a issue in /usr/lib/duplicati/Duplicati.GUI.TrayIcon.exe.config

The app should generate a new one if you delete/rename it.

Can you post that file?

/usr/lib/duplicati/Duplicati.GUI.TrayIcon.exe.config

<configuration>
    <runtime>
        <loadFromRemoteSources enabled="true"/>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

            <!-- Support for loading older backends with the current executable version -->
            <dependentAssembly>
                <assemblyIdentity name="Duplicati.Library.Utility" publicKeyToken="8bfe994a39631a7b" />
                <bindingRedirect oldVersion="0.0.0.0 - 99.9.9.9" newVersion="2.0.5.108" />
            </dependentAssembly>

            <!-- Support for loading older backends with the current executable version -->
            <dependentAssembly>
                <assemblyIdentity name="Duplicati.Library.Interface" publicKeyToken="8bfe994a39631a7b" />
                <bindingRedirect oldVersion="0.0.0.0 - 99.9.9.9" newVersion="2.0.5.108" />
            </dependentAssembly>

            <!-- Support for backends that wants older versions of NewtonSoft.Json -->
            <!-- The spaces near the equation sign are used to prevent the version being set to the current build by the VersionStamp tool -->
            <dependentAssembly>
                <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0 - 99.9.9.9" newVersion = "12.0.0.0"/>
            </dependentAssembly>

            <!-- Support for backends that wants older versions of KeyVault.Core and System.Net.Http -->
            <!-- The spaces near the equation sign are used to prevent the version being set to the current build by the VersionStamp tool -->
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.Azure.KeyVault.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-3.0.4.0" newVersion = "3.0.4.0" />
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion = "4.0.0.0" />
            </dependentAssembly>


        </assemblyBinding>
    </runtime>

    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
    </startup>
</configuration>

I deleted the file and then ran duplicati again but now get this error:

Unexpected error: System.NotSupportedException: The URI prefix is not recognized.
  at System.Net.WebRequest.Create (System.Uri requestUri, System.Boolean useUriBase) [0x000ae] in <4e15bbae9d7043d8afd6cfd50bd9bd5a>:0 
  at System.Net.WebRequest.Create (System.Uri requestUri) [0x00014] in <4e15bbae9d7043d8afd6cfd50bd9bd5a>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequestInternal[T] (System.String method, System.String endpoint, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x00044] in <28e7292c83ba46598bb12b53b19c4077>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequest[T] (System.String method, System.String urlfragment, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x0000c] in <28e7292c83ba46598bb12b53b19c4077>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.UpdateStatus () [0x00001] in <28e7292c83ba46598bb12b53b19c4077>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection..ctor (System.Uri server, System.String password, System.Boolean saltedpassword, Duplicati.GUI.TrayIcon.Program+PasswordSource passwordSource, System.Boolean disableTrayIconLogin, System.Collections.Generic.Dictionary`2[TKey,TValue] options) [0x000cb] in <28e7292c83ba46598bb12b53b19c4077>:0 
  at Duplicati.GUI.TrayIcon.Program.StartTray (System.String[] _args, System.Collections.Generic.Dictionary`2[TKey,TValue] options, System.String toolkit, Duplicati.GUI.TrayIcon.HostedInstanceKeeper hosted, System.String password, System.Boolean saltedpassword) [0x00024] in <28e7292c83ba46598bb12b53b19c4077>:0

I am starting to wonder whether the problem is related to my version/installation of mono which comes from here:

$ cat /etc/apt/sources.list.d/mono-official-stable.list 
deb https://download.mono-project.com/repo/debian stable-buster main

Yes the latest stable mono i v6. Try installing v5.0.

I tried v5 and v6 but still keep getting error messages when trying to run duplicati.

Appreciate if there is any other info I can provide that might help?

I’ll try to find some time to create a virtual machine and have a play with installing software similar to my existing setup and seeing if I get different results.

The “Error initializing the configuration system.” error is also mentioned here.

Just tested installation of 2.0.5.1-beta.deb on Linux Mint (ubuntu 20). It installed Mono v6.8.0.105 and works fine there.