Announcement

Collapse
No announcement yet.

Easy Trigger fails at startup

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

    Easy Trigger fails at startup

    After upgrade to 4.1.14 Easy Trigger fails to load.

    System is Ubuntu 5.4.0
    Ive rebooted several times, stopped and restarted Easy Trigger several times, still get the same error in the logs.

    At the same time I upgraded Homeseer I also updated Ubuntu. JIC its relevant heres the last Ubuntu upgrade:

    Upgrade:
    bind9-dnsutils:amd64 (1:9.16.1-0ubuntu2.6, 1:9.16.1-0ubuntu2.7),
    pollinate:amd64 (4.33-3ubuntu1, 4.33-3ubuntu1.20.04.1),
    grub-common:amd64 (2.04-1ubuntu26.8, 2.04-1ubuntu26.9),
    bind9-host:amd64 (1:9.16.1-0ubuntu2.6, 1:9.16.1-0ubuntu2.7),
    dnsutils:amd64 (1:9.16.1-0ubuntu2.6, 1:9.16.1-0ubuntu2.7),
    grub2-common:amd64 (2.04-1ubuntu26.8, 2.04-1ubuntu26.9),
    python3-twisted:amd64 (18.9.0-11, 18.9.0-11ubuntu0.20.04.1),
    python3-twisted-bin:amd64 (18.9.0-11, 18.9.0-11ubuntu0.20.04.1),
    grub-efi-amd64-bin:amd64 (2.04-1ubuntu26.8, 2.04-1ubuntu26.9),
    wpasupplicant:amd64 (2:2.9-1ubuntu4.2, 2:2.9-1ubuntu4.3), grub-efi-amd64:amd64 (2.04-1ubuntu26.8, 2.04-1ubuntu26.9),
    grub-efi-amd64-signed:amd64 (1.142.10+2.04-1ubuntu26.8, 1.142.11+2.04-1ubuntu26.9),
    bind9-libs:amd64 (1:9.16.1-0ubuntu2.6, 1:9.16.1-0ubuntu2.7)
    End-Date: 2021-03-03 09:37:27



    Heres the log entry. I stopped and restarted Easy Trigger to get this;

    HomeSeer
    Info
    Plugin EasyTrigger with ID: and Instance: has disconnected
    3/5/2021 8:00:18 AM
    HomeSeer Error
    Initializing plug-in(1): EasyTrigger Instance::HSCF.Communication.ScsServices.Communication.Messa ges.ScsRemoteException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object at Scheduler.hsapplication.RegisterPage (System.String pageName, System.String PluginName, System.String pluginInstance) [0x00039] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Re flection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in :0 --- End of inner exception stack trace --- Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0014d] in :0 at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IHSApplication.RegisterPage(string,string,string ) at HSPI_EasyTrigger.EasyTriggerApp.Init () [0x0009a] in :0 Time to load: 161 milliseconds
    3/5/2021 8:00:18 AM

    Legacy-Plugin EasyTrigger
    ERROR HSCF.Communication.ScsServices.Communication.Messages.ScsRem oteException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object at Scheduler.hsapplication.RegisterPage (System.String pageName, System.String PluginName, System.String pluginInstance) [0x00039] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Re flection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in :0 --- End of inner exception stack trace --- Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0014d] in :0 at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IHSApplication.RegisterPage(string,string,string ) at HSPI_EasyTrigger.EasyTriggerApp.Init () [0x0009a] in :0
    3/5/2021 8:00:18 AM
    Legacy-Plugin
    EasyTrigger
    INFO EasyTrigger version 3.0.0.73
    3/5/2021 8:00:18 AM
    HomeSeer
    Starting Plug-In
    Initializing plugin EasyTrigger ...
    3/5/2021 8:00:18 AM
    HomeSeer
    Info
    Plugin EasyTrigger has connected. IP:127.0.0.1:46668



    Any idea whats going on? Of course Id really lilke to get this running again ;}


    Thanks, Joe

    #2
    What version of mono do you have installed?
    Do you run any other plugins? If so please try to disable them all, and start EasyTrigger only, do you still get the error in that case?

    Comment


      #3
      Hi Spud,

      Thanks for getting back to me...

      mono ver:
      root@homeseer:/opt/HomeSeer/Logs# mono -V
      Mono JIT compiler version 6.12.0.90 (tarball Fri Sep 4 14:01:23 UTC 2020)

      Easytrigger starts normally alone. Starting the other plugins HSZigBee fails with a similar error:

      Finished initializing plug-in HSZigBee 3/7/2021 9:49:38 AM
      HomeSeer Starting Plug-In
      HSZigBee loaded in 15024 milliseconds
      3/7/2021 9:49:35 AM

      HomeSeer Error
      Initializing plug-in(2): HSZigBee Instance::Conversion from string "Error - Registering Web Links: Object reference not set to an instance of an object" to type 'Integer' is not valid.STACK: Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0014d] in :0 at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IPlugInAPI.InitIO(string) at Scheduler.PluginHolder.InitIO (System.String PortNumber) [0x0000b] in :0 at Scheduler.clsHSPI.CheckInterfaces () [0x000bf] in :0
      3/7/2021 9:49:24 AM
      HomeSeer Starting Plug-In Initializing plugin HSZigBee ...

      Im not using zigbee so can leave that off...


      My other plugins:
      CGroup: /system.slice/homeseer.service
      ├─329382 /usr/bin/mono /opt/HomeSeer/HSConsole.exe --log
      ├─329451 /usr/bin/mono /opt/HomeSeer/HSPI_ZWave.exe
      ├─329473 /usr/bin/mono /opt/HomeSeer/HSPI_WEATHERXML.exe
      ├─329501 /usr/bin/mono /opt/HomeSeer/HSPI_ULTRAECM3.exe
      ├─329520 /usr/bin/mono /opt/HomeSeer/HSPI_NETCAM.exe
      ├─329534 /usr/bin/mono /opt/HomeSeer/HSPI_NAPCO_GEMINI.exe
      ├─329561 /usr/bin/mono /opt/HomeSeer/HSPI_Insteon.exe
      ├─329592 /usr/bin/mono /opt/HomeSeer/HSPI_HarmonyHub.exe
      ├─329617 /usr/bin/mono /opt/HomeSeer/HSPI_Chromecast.exe
      ├─329636 /usr/bin/mono /opt/HomeSeer/HSPI_Arduino.exe
      ├─329653 /usr/bin/mono /opt/HomeSeer/HSPI_EasyTrigger.exe
      ├─329680 /usr/bin/mono /opt/HomeSeer/HSPI_HSBuddy.exe
      ├─329772 /usr/bin/mono /opt/HomeSeer/HS4Sentry.exe
      └─337022 /usr/bin/mono /opt/HomeSeer/HSPI_MCSMQTT.exe


      Not sure where to go from here, should I toss this over to homeseer and see what they say?

      Thanks for your help!
      Joe

      Comment


        #4
        So, if I understand correctly, if you try to start your plugins one by one, after a few ones, one always fail? If so that sounds like a resource (e.g. memory) issue of some kind.
        if you can't figure it out, please create a support desk ticket as it doesn't seem related to one plugin specifically.

        Comment


          #5
          Right now I have all my plugins running except HSZigBee. If I start HSZigBee it throws the above error. It seems related to either zigbee or easytrigger. None of the other plugins fail...

          I can start the plugins in any order only the above fail, and only if both are running. IE if I start easy trigger first zigbee fails, if I start zigbee first easytrigger fails.

          Dont think its memory, I have 8g, top shows 4g free and no swap used.

          top - 14:09:17 up 4 days, 21:44, 1 user, load average: 0.30, 0.28, 0.33
          Tasks: 154 total, 1 running, 153 sleeping, 0 stopped, 0 zombie
          %Cpu(s): 4.3 us, 1.3 sy, 0.0 ni, 94.4 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
          MiB Mem : 7891.2 total, 4074.9 free, 1194.1 used, 2622.3 buff/cache
          MiB Swap: 0.0 total, 0.0 free, 0.0 used. 6398.6 avail Mem


          Thanks for your help!

          -Joe

          Comment


            #6
            Not 100% sure this is the cause of your problem but I was able to reproduce the same errors you get. There is a conflict between the old HS3 Zigbee plugin (HSZigbee) and the new HS4 Zigbee plugin called Zigbee, If I install the new plugin and start it, and then install the old one, I get an error in the logs and then if I start some other plugin like EasyTrigger I get another error too.
            So please try the following:
            - Disable both Zigbee and HSZigbee plugin and click the uninstall icon for both
            - Stop HS4
            - remove manually any Zigbee plugin files that would be left in the HS4 root dir with the following two commands
            sudo rm HSPI_Zigbee*
            sudo rm HSPI_ZIGBEE*
            - restart HS4
            - only install the one plugin you need HS4 Plugins > Zigbee or Legacy Plugins > HomeSeer Zigbee (=HSZigbee)

            let me know if you still get some errors after that.

            Comment


              #7
              OK,

              I removed zigbee 3&4 from my system. Dont use them anymore so no loss...
              Before removing zigbee 4 it would cause EasyTrigger to fail. Log below.


              Still have some issues though! Its related to mcsMQTT. If that starts before EasyTrigger I get the following error when easy trigger starts.
              If EasyTrigger starts first there is no error.

              After EasyTrigger loads I can stop and start mcsmqtt OK, if I stop and start EasyTrigger it fails if mcsmqtt is loaded.

              Right now the system loads EasyTrigger before mcsmqtt so no issues...

              Is there any way to force plugin loading order?



              Thanks, Joe



              ==================== Error loading with mcsMQTT loaded
              3/10/2021 12:24:09 PM
              HomeSeer Plug-In
              Finished initializing plug-in EasyTrigger
              3/10/2021 12:24:09 PM
              HomeSeer Starting Plug-In
              EasyTrigger loaded in 15022 milliseconds
              3/10/2021 12:23:55 PM
              HomeSeer Error
              Initializing plug-in(2): EasyTrigger Instance:isconnected before response received.STACK: at HSCF.Communication.ScsServices.Communication.RequestReplyMes senger`1[T].SendMessageAndWaitForResponse (HSCF.Communication.Scs.Communication.Messages.IScsMessage message, System.Int32 timeoutMilliseconds) [0x00084] in :0 at HSCF.Communication.ScsServices.Communication.RequestReplyMes senger`1[T].SendMessageAndWaitForResponse (HSCF.Communication.Scs.Communication.Messages.IScsMessage message) [0x00008] in :0 at HSCF.Communication.ScsServices.Communication.RemoteInvokePro xy`2[TProxy,TMessenger].Invoke (System.Runtime.Remoting.Messaging.IMessage msg) [0x00056] in :0 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x000d6] in :0 at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IPlugInAPI.InitIO(string) at Scheduler.PluginHolder.InitIO (System.String PortNumber) [0x0000b] in :0 at Scheduler.clsHSPI.CheckInterfaces () [0x000bf] in :0
              3/10/2021 12:23:55 PM
              HomeSeer
              Info
              Plugin EasyTrigger with ID: and Instance: has disconnected
              3/10/2021 12:23:55 PM
              Legacy-Plugin
              EasyTrigger
              ERROR HSCF.Communication.ScsServices.Communication.Messages.ScsRem oteException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object at Scheduler.hsapplication.RegisterPage (System.String pageName, System.String PluginName, System.String pluginInstance) [0x00039] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Re flection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in :0 --- End of inner exception stack trace --- Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0014d] in :0 at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IHSApplication.RegisterPage(string,string,string ) at HSPI_EasyTrigger.EasyTriggerApp.Init () [0x0009a] in :0
              3/10/2021 12:23:55 PM
              Legacy-Plugin
              EasyTrigger
              INFO EasyTrigger version 3.0.0.73
              3/10/2021 12:23:55 PM
              HomeSeer
              Starting Plug-In
              Initializing plugin EasyTrigger ...
              3/10/2021 12:23:55 PM
              HomeSeer
              Info
              Plugin EasyTrigger has connected. IP:127.0.0.1:44918


              ======================== Error loading with Zigbee version 4.0.8.0 loaded



              3/10/2021 12:18:50 PM
              HomeSeer Starting Plug-In
              EasyTrigger loaded in 15028 milliseconds
              3/10/2021 12:18:35 PM
              HomeSeer Info
              Plugin EasyTrigger with ID: and Instance: has disconnected
              3/10/2021 12:18:35 PM
              HomeSeer Error
              Initializing plug-in(1): EasyTrigger Instance::HSCF.Communication.ScsServices.Communication.Messa ges.ScsRemoteException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object at Scheduler.hsapplication.RegisterPage (System.String pageName, System.String PluginName, System.String pluginInstance) [0x00039] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Re flection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in :0 --- End of inner exception stack trace --- Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0014d] in :0 at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IHSApplication.RegisterPage(string,string,string ) at HSPI_EasyTrigger.EasyTriggerApp.Init () [0x0009a] in :0 Time to load: 159 milliseconds
              3/10/2021 12:18:35 PM
              Legacy-Plugin EasyTrigger
              ERROR HSCF.Communication.ScsServices.Communication.Messages.ScsRem oteException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object at Scheduler.hsapplication.RegisterPage (System.String pageName, System.String PluginName, System.String pluginInstance) [0x00039] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Re flection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in :0 --- End of inner exception stack trace --- Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, System.Runtime.Remoting.Messaging.IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x0014d] in :0 at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IHSApplication.RegisterPage(string,string,string ) at HSPI_EasyTrigger.EasyTriggerApp.Init () [0x0009a] in :0
              3/10/2021 12:18:35 PM
              Legacy-Plugin EasyTrigger
              INFO EasyTrigger version 3.0.0.73



              Comment

              Working...
              X