Announcement

Collapse
No announcement yet.

HSBuddy Failing To Start - Ubuntu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HSBuddy Failing To Start - Ubuntu


    Hi -

    Trying to get HSBuddy to start on my HS4 upgrade and getting the following errors. Running w/ sudo. Would be appreciative of any advice.

    Unhandled Exception:

    System.TypeLoadException: Could not load type of field 'HSPI_HSBuddy.Data.Database:<Connection>k__BackingField' (4) due to: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

    at (wrapper managed-to-native) System.RuntimeTypeHandle.type_is_assignable_from(System.Type ,System.Type)

    at System.RuntimeTypeHandle.CanCastTo (System.RuntimeType type, System.RuntimeType target) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

    at System.RuntimeType.IsAssignableFrom (System.Type c) [0x0002e] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

    at System.RuntimeType.IsAssignableFrom (System.Reflection.TypeInfo typeInfo) [0x00015] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

    at Autofac.Builder.RegistrationBuilder.CreateRegistration (System.Guid id, Autofac.Builder.RegistrationData data, Autofac.Core.IInstanceActivator activator, Autofac.Core.Service[] services, Autofac.Core.IComponentRegistration target) [0x0005f] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.Builder.RegistrationBuilder.CreateRegistration[TLimit,TActivatorData,TSingleRegistrationStyle] (Autofac.Builder.IRegistrationBuilder`3[TLimit,TActivatorData,TRegistrationStyle] builder) [0x00058] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.Builder.RegistrationBuilder.RegisterSingleComponent[TLimit,TActivatorData,TSingleRegistrationStyle] (Autofac.Core.IComponentRegistry cr, Autofac.Builder.IRegistrationBuilder`3[TLimit,TActivatorData,TRegistrationStyle] builder) [0x0000e] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.RegistrationExtensions+<>c__DisplayClass4_0.<Registe rType>b__0 (Autofac.Core.IComponentRegistry cr) [0x00000] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.Build (Autofac.Core.IComponentRegistry componentRegistry, System.Boolean excludeDefaultModules) [0x0004b] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.UpdateRegistry (Autofac.Core.IComponentRegistry componentRegistry) [0x0000e] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.Module.Configure (Autofac.Core.IComponentRegistry componentRegistry) [0x00021] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.Build (Autofac.Core.IComponentRegistry componentRegistry, System.Boolean excludeDefaultModules) [0x0004b] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.Build (Autofac.Builder.ContainerBuildOptions options) [0x0002e] in <2fad6ed004784647b9555cb639266f73>:0

    at HSPI_HSBuddy.Program.Main (System.String[] args) [0x00173] in <3e9db2e9e85747fdbbbe9067d12e1c40>:0

    [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'HSPI_HSBuddy.Data.Database:<Connection>k__BackingField' (4) due to: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

    at (wrapper managed-to-native) System.RuntimeTypeHandle.type_is_assignable_from(System.Type ,System.Type)

    at System.RuntimeTypeHandle.CanCastTo (System.RuntimeType type, System.RuntimeType target) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

    at System.RuntimeType.IsAssignableFrom (System.Type c) [0x0002e] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

    at System.RuntimeType.IsAssignableFrom (System.Reflection.TypeInfo typeInfo) [0x00015] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

    at Autofac.Builder.RegistrationBuilder.CreateRegistration (System.Guid id, Autofac.Builder.RegistrationData data, Autofac.Core.IInstanceActivator activator, Autofac.Core.Service[] services, Autofac.Core.IComponentRegistration target) [0x0005f] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.Builder.RegistrationBuilder.CreateRegistration[TLimit,TActivatorData,TSingleRegistrationStyle] (Autofac.Builder.IRegistrationBuilder`3[TLimit,TActivatorData,TRegistrationStyle] builder) [0x00058] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.Builder.RegistrationBuilder.RegisterSingleComponent[TLimit,TActivatorData,TSingleRegistrationStyle] (Autofac.Core.IComponentRegistry cr, Autofac.Builder.IRegistrationBuilder`3[TLimit,TActivatorData,TRegistrationStyle] builder) [0x0000e] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.RegistrationExtensions+<>c__DisplayClass4_0.<Registe rType>b__0 (Autofac.Core.IComponentRegistry cr) [0x00000] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.Build (Autofac.Core.IComponentRegistry componentRegistry, System.Boolean excludeDefaultModules) [0x0004b] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.UpdateRegistry (Autofac.Core.IComponentRegistry componentRegistry) [0x0000e] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.Module.Configure (Autofac.Core.IComponentRegistry componentRegistry) [0x00021] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.Build (Autofac.Core.IComponentRegistry componentRegistry, System.Boolean excludeDefaultModules) [0x0004b] in <2fad6ed004784647b9555cb639266f73>:0

    at Autofac.ContainerBuilder.Build (Autofac.Builder.ContainerBuildOptions options) [0x0002e] in <2fad6ed004784647b9555cb639266f73>:0

    at HSPI_HSBuddy.Program.Main (System.String[] args) [0x00173] in <3e9db2e9e85747fdbbbe9067d12e1c40>:0








    Date/time=8/1/2020 6:55:04 PM CDT
    Version=HS4 Standard Edition 4.1.2.0 (Linux)
    License=Registered
    Uptime=0 Days 0 Hours 3 Minutes 33 Seconds
    Lan IP=10.0.0.200 (BradHA)
    Device Count=14
    Event Count=0
    Plugins Enabled=Z-Wave:,EnvisaLink:,MyQ:,HSBuddy:
    Modules/Threads=73 Modules, 45 Threads
    Available Threads=199
    HomeSeer Memory Used=100 Mbytes
    Plugins Installed=BLRing 2.0.27.0,EnvisaLink 3.0.0.41,HS MyQ 4.0.2.0,HSBuddy 3.18.721.0,MyQ 1.2020.705.1301,Z-Wave 3.0.2.0

    #2
    +1

    Pi4, Ubuntu 20.04, HS4 Standard (not Pi)

    Tried moving the Newtonsoft.Json.dll but broke everything else.
    Tried installing libglib2-dev/data but no change.



    ---- snip ----

    Sep 17 00:00:51 homeseer04 mono[83360]: Unhandled Exception:

    Sep 17 00:00:51 homeseer04 mono[83360]: Autofac.Core.DependencyResolutionException: An exception was thrown while activating λ:HSPI_HSBuddy.WebPages.IWebPage[] -> HSPI_HSBuddy.WebPages.FencesPage -> HSPI_HSBuddy.Clients.ClientManager -> HSPI_HSBuddy.Data.Database. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(HSPI_HSBuddy.Native.IHomeSeer)' on type 'Database'. ---> System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception. ---> System.DllNotFoundException: e_sqlite3 assembly:<unknown assembly> type:<unknown type> membernull)

    Sep 17 00:00:51 homeseer04 mono[83360]: at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_e_sqlite3+NativeMethods.sqlite3_li bversion_number()

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provid er.sqlite3_libversion_number () [0x00000] in <5c318881801a4d04a22c4fb3c7655f28>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00008] in <6725949973104bb8b8bdf05801db616a>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLitePCL.Batteries_V2.Init () [0x00005] in <881e32fbeb9e45b89f4015bd0bcbb7e9>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLite.SQLiteConnection..cctor () [0x00000] in <e6176266e10e4143a13a15e20e5b743c>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: --- End of inner exception stack trace ---

    Sep 17 00:00:51 homeseer04 mono[83360]: at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr )

    Sep 17 00:00:51 homeseer04 mono[83360]: at HSPI_HSBuddy.Data.Database..ctor (HSPI_HSBuddy.Native.IHomeSeer homeSeer) [0x00043] in <3e9db2e9e85747fdbbbe9067d12e1c40>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices. Closure,object[])

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.ConstructorParameterBindi ng.Instantiate () [0x0008f] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: --- End of inner exception stack trace ---

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.ConstructorParameterBindi ng.Instantiate () [0x00113] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.ReflectionActivator.Activ ateInstance (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable`1[T] parameters) [0x000b2] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x0002c] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: --- End of inner exception stack trace ---

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x00071] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.InstanceLookup.Execute () [0x0007f] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (Autofac.Core.ISharingLifetimeScope currentOperationScope, Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00071] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.ResolveOperation.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.ResolveOperation.Execute (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00016] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00041] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.ResolutionExtensions.TryResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& instance) [0x00023] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.AutowiringPropertyInjecto r.InjectProperties (Autofac.IComponentContext context, System.Object instance, Autofac.Core.IPropertySelector propertySelector, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00131] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.ResolutionExtensions.InjectProperties[TService] (Autofac.IComponentContext context, TService instance) [0x0000c] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at HSPI_HSBuddy.Program.Main (System.String[] args) [0x00173] in <3e9db2e9e85747fdbbbe9067d12e1c40>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: [ERROR] FATAL UNHANDLED EXCEPTION: Autofac.Core.DependencyResolutionException: An exception was thrown while activating λ:HSPI_HSBuddy.WebPages.IWebPage[] -> HSPI_HSBuddy.WebPages.FencesPage -> HSPI_HSBuddy.Clients.ClientManager -> HSPI_HSBuddy.Data.Database. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(HSPI_HSBuddy.Native.IHomeSeer)' on type 'Database'. ---> System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception. ---> System.DllNotFoundException: e_sqlite3 assembly:<unknown assembly> type:<unknown type> membernull)

    Sep 17 00:00:51 homeseer04 mono[83360]: at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_e_sqlite3+NativeMethods.sqlite3_li bversion_number()

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provid er.sqlite3_libversion_number () [0x00000] in <5c318881801a4d04a22c4fb3c7655f28>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00008] in <6725949973104bb8b8bdf05801db616a>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLitePCL.Batteries_V2.Init () [0x00005] in <881e32fbeb9e45b89f4015bd0bcbb7e9>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at SQLite.SQLiteConnection..cctor () [0x00000] in <e6176266e10e4143a13a15e20e5b743c>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: --- End of inner exception stack trace ---

    Sep 17 00:00:51 homeseer04 mono[83360]: at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr )

    Sep 17 00:00:51 homeseer04 mono[83360]: at HSPI_HSBuddy.Data.Database..ctor (HSPI_HSBuddy.Native.IHomeSeer homeSeer) [0x00043] in <3e9db2e9e85747fdbbbe9067d12e1c40>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices. Closure,object[])

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.ConstructorParameterBindi ng.Instantiate () [0x0008f] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: --- End of inner exception stack trace ---

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.ConstructorParameterBindi ng.Instantiate () [0x00113] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.ReflectionActivator.Activ ateInstance (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable`1[T] parameters) [0x000b2] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x0002c] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: --- End of inner exception stack trace ---

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x00071] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.InstanceLookup.Execute () [0x0007f] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (Autofac.Core.ISharingLifetimeScope currentOperationScope, Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00071] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.ResolveOperation.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Resolving.ResolveOperation.Execute (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00016] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00041] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.ResolutionExtensions.TryResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& instance) [0x00023] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.Core.Activators.Reflection.AutowiringPropertyInjecto r.InjectProperties (Autofac.IComponentContext context, System.Object instance, Autofac.Core.IPropertySelector propertySelector, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00131] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at Autofac.ResolutionExtensions.InjectProperties[TService] (Autofac.IComponentContext context, TService instance) [0x0000c] in <2fad6ed004784647b9555cb639266f73>:0

    Sep 17 00:00:51 homeseer04 mono[83360]: at HSPI_HSBuddy.Program.Main (System.String[] args) [0x00173] in <3e9db2e9e85747fdbbbe9067d12e1c40>:0

    Comment


      #3
      Just a couple of questions

      1) What hardware are you running on.

      2) What version of HS4 have you installed

      3) What version of Mono are you using

      Comment


        #4
        Machine model: Raspberry Pi 4 Model B Rev 1.4
        Linux version 5.4.0-1018-raspi (buildd@bos02-arm64-052) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #20-Ubuntu SMP Sun Sep 6 05:11:16 UTC 2020 (Ubuntu 5.4.0-1018.20-raspi 5.4.55)
        Mono JIT compiler version 6.12.0.90 (tarball Fri Sep 4 14:09:08 UTC 2020)
        HomeSeer version 4.1.5.0 Edition: HS4 Pro Starting Now

        Comment

        Working...
        X