Announcement

Collapse
No announcement yet.

Error starting the plugin

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

    Error starting the plugin

    After installation I get this error when I start the plugin:

    Jun-09 1:30:51 PM Plug-In Finished initializing plug-in HUSMOW Jun-09 1:30:51 PM Starting Plug-In HUSMOW loaded in 3806 milliseconds Jun-09 1:30:51 PM Error Initializing plug-in(2): HUSMOW Instance::Object reference not set to an instance of an objectSTACK: 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.clsHSPI.CheckInterfaces () [0x000c4] in <9d0c99dc968a48469ec86efcf4ea6794>:0 Jun-09 1:30:51 PM Info Plugin HUSMOW with instance: has disconnected Jun-09 1:30:51 PM HUSMOW ERROR newthread Error: Thread has already been started. Jun-09 1:30:51 PM HUSMOW ERROR newthread Error: Thread has already been started. Jun-09 1:30:51 PM HUSMOW ERROR Get Mowers failed: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_HUSMOW.Provider.GetMowers () [0x00171] in :0 at HSPI_HUSMOW.Telnet.startS1 () [0x00055] in :0 Jun-09 1:30:51 PM HUSMOW ERROR Get Mowers failed: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_HUSMOW.Provider.GetMowers () [0x00171] in :0 at HSPI_HUSMOW.Telnet.startS1 () [0x00055] in :0 Jun-09 1:30:51 PM HUSMOW ERROR Get Mowers failed: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_HUSMOW.Provider.GetMowers () [0x00171] in :0 at HSPI_HUSMOW.Telnet.startS1 () [0x00055] in :0 Jun-09 1:30:50 PM Device Control Device: JowiHue JowiHue Toalett 1 etg to Off (0) Jun-09 1:30:50 PM Event Event Trigger "Lys Toalett 1etg - Auto off" Jun-09 1:30:48 PM HUSMOW Initializing done! Ready... Jun-09 1:30:48 PM HUSMOW Starting initializiation. HUSMOW Ver:3.0.0.15 Jun-09 1:30:48 PM Starting Plug-In Initializing plugin HUSMOW ... Jun-09 1:30:48 PM Info Plugin HUSMOW has connected. IP:127.0.0.1:57217 Jun-09 1:30:47 PM Plug-In Interface HUSMOW is running as a trial, 26 days remaining. Jun-09 1:30:43 PM Device Control Device: JowiHue JowiHue TV stue to Off (0) Jun-09 1:30:43 PM Event Event Trigger "Lys TV Stue - Auto off" Jun-09 1:30:11 PM Error Warning, Cannot load EXE (possibly missing dependencies) HSPI_HSBuddy.exe: Could not load type of field 'HSPI_HSBuddy.Cameras.IpCamera:client' (1) due to: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Jun-09 1:30:06 PM Updater Install/Update of package Husqvarna Automower was successful. Jun-09 1:30:06 PM Updater Copying file: /usr/local/HomeSeer/HSPI_HUSMOW.exe.config Jun-09 1:30:06 PM Updater Copying file: /usr/local/HomeSeer/HSPI_HUSMOW.exe Jun-09 1:30:06 PM Updater Copying file: /usr/local/HomeSeer/Bin/HUSMOW/Newtonsoft.Json.dll Jun-09 1:30:06 PM Updater Installing package Husqvarna Automower Jun-09 1:30:06 PM Updater Update hspi_husmow.exe downloaded successfully Jun-09 1:30:03 PM Updater Downloading update: Husqvarna Automower Jun-09 1:30:03 PM Updater Starting download of updates

    Any idea?

    Thanks

    #2
    Can you post your ver. of HS and are you on a Sel or Zee S2?

    Comment


      #3
      I am running HS3 on SEL / Linux.

      Comment


        #4
        please post a screen shot of your plug-ins manage page and also click in the ? on the top right and copy/paste section below to message board posts

        Comment


          #5
          Hi,

          Info as you requested



          MESSAGE BOARD
          (copy/paste section below to message board posts)

          Current Date/Time: 6/9/2020 5:00:08 PM
          HomeSeer Version: HS3 Standard Edition 3.0.0.548
          Linux version: Linux HomeTrollerSELv2 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:56:17 UTC 2014 i686 i686 i686 GNU/Linux System Uptime: 3 Days 21 Hours 26 Minutes 21 Seconds
          IP Address: XX.X.X.XXX
          Number of Devices: 608
          Number of Events: 122
          Available Threads: 199
          HSTouch Enabled: True
          Event Threads: 0
          Event Trigger Eval Queue: 0
          Event Trigger Priority Eval Queue: 0
          Device Exec Queue: 0
          HSTouch Event Queue: 0
          Email Send Queue: 0

          Enabled Plug-Ins
          3.0.0.29: AK Ikea
          2.0.61.0: BLBackup
          2.0.45.0: BLLAN
          2.0.37.0: BLRoombaWifi
          2.1.0.1: JowiHue
          3.0.0.14: NetCAM
          0.0.0.48: Pushover 3P
          3.1.0.53: Sonos
          19.10.7.1: TPLinkSmartHome
          3.0.1.19: weatherXML
          3.0.2.0: Z-Wave

          HELP DESK (copy/paste section below to help desk tickets & emails)

          Current Date/Time: 6/9/2020 5:00:08 PM
          HomeSeer Version: HS3 Standard Edition 3.0.0.548
          Linux version: Linux HomeTrollerSELv2 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:56:17 UTC 2014 i686 i686 i686 GNU/Linux System Uptime: 3 Days 21 Hours 26 Minutes 21 Seconds
          IP Address: XX.X.X.XXX
          Number of Devices: 608
          Number of Events: 122
          Available Threads: 199
          HSTouch Enabled: True
          Event Threads: 0
          Event Trigger Eval Queue: 0
          Event Trigger Priority Eval Queue: 0
          Device Exec Queue: 0
          HSTouch Event Queue: 0
          Email Send Queue: 0
          License: Registered
          License: 131950
          User Name and Access Level: default (Admin)
          WAN IP Address: 31.45.3.184
          Web Server Port: 80
          Location: (Latitude) 59.92 (Longitude) 10.75 City/State-Norway,Oslo,10.75,59.92

          Enabled Plug-Ins
          3.0.0.29: AK Ikea
          2.0.61.0: BLBackup
          2.0.45.0: BLLAN
          2.0.37.0: BLRoombaWifi
          2.1.0.1: JowiHue
          3.0.0.14: NetCAM
          0.0.0.48: Pushover 3P
          3.1.0.53: Sonos
          19.10.7.1: TPLinkSmartHome
          3.0.1.19: weatherXML
          3.0.2.0: Z-Wave
          Attached Files

          Comment


            #6
            I can't see your screen shot.

            I just install in a Sel with the same parameter without issue,
            Current Date/Time: 6/9/2020 11:25:39 AM
            HomeSeer Version: HS3 Standard Edition 3.0.0.548
            Linux version: Linux hometrollerSEL 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:56:17 UTC 2014 i686 i686 i686 GNU/Linux System Uptime: 41 Days 15 Hours 28 Minutes 19 Seconds

            can you try to restart your HS3, if you still have the error try to delete the plug-ins and re-install, also if you did install a plug-ins that install the Newtonsoft.Json.dll in the main directory of HS3 /usr/local/HomeSeer/ and not in the Bin directory this can be the cause.

            Comment


              #7
              Click image for larger version

Name:	Screendump.png
Views:	370
Size:	376.2 KB
ID:	1392444

              Error when plugin starts automatically after restart:
              Jun-09 5:52:04 PM Plug-In Finished initializing plug-in HUSMOW
              Jun-09 5:52:04 PM Starting Plug-In HUSMOW loaded in 9217 milliseconds
              Jun-09 5:52:04 PM Error Initializing plug-in(2): HUSMOW Instance::Object reference not set to an instance of an objectSTACK: 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.clsHSPI.CheckInterfaces () [0x000c4] in <9d0c99dc968a48469ec86efcf4ea6794>:0
              Jun-09 5:52:04 PM Info Plugin HUSMOW with instance: has disconnected
              Jun-09 5:52:04 PM HUSMOW ERROR newthread Error: Thread has already been started.
              Jun-09 5:52:04 PM HUSMOW ERROR newthread Error: Thread has already been started.
              Jun-09 5:52:04 PM HUSMOW ERROR Get Mowers failed: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_HUSMOW.Provider.GetMowers () [0x00171] in :0 at HSPI_HUSMOW.Telnet.startS1 () [0x00055] in :0
              Jun-09 5:52:04 PM HUSMOW ERROR Get Mowers failed: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_HUSMOW.Provider.GetMowers () [0x00171] in :0 at HSPI_HUSMOW.Telnet.startS1 () [0x00055] in :0
              Jun-09 5:52:04 PM HUSMOW ERROR Get Mowers failed: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_HUSMOW.Provider.GetMowers () [0x00171] in :0 at HSPI_HUSMOW.Telnet.startS1 () [0x00055] in :0
              Jun-09 5:52:02 PM HUSMOW Initializing done! Ready...
              Jun-09 5:52:02 PM HUSMOW Starting initializiation. HUSMOW Ver:3.0.0.15
              Jun-09 5:52:02 PM Starting Plug-In Initializing plugin HUSMOW ...
              Jun-09 5:52:02 PM Starting Plug-In Plugin BLRoombaWifi started successfully in 1399 milliseconds

              Strange. HSBuggy error always seems to come when installting:
              Jun-09 5:57:15 PM Error Warning, Cannot load EXE (possibly missing dependencies) HSPI_HSBuddy.exe: Could not load type of field 'HSPI_HSBuddy.Cameras.IpCamera:client' (1) due to: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
              Jun-09 5:57:11 PM Updater Install/Update of package Husqvarna Automower was successful.
              Jun-09 5:57:11 PM Updater Copying file: /usr/local/HomeSeer/HSPI_HUSMOW.exe.config
              Jun-09 5:57:11 PM Updater Copying file: /usr/local/HomeSeer/HSPI_HUSMOW.exe
              Jun-09 5:57:11 PM Updater Copying file: /usr/local/HomeSeer/Bin/HUSMOW/Newtonsoft.Json.dll
              Jun-09 5:57:11 PM Updater Installing package Husqvarna Automower
              Jun-09 5:57:11 PM Updater Update hspi_husmow.exe downloaded successfully
              Jun-09 5:57:08 PM Updater Downloading update: Husqvarna Automower
              Jun-09 5:57:08 PM Updater Starting download of updates

              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer/bin$ sudo find / -name Newtonsoft.Json.dll
              [sudo] password for homeseer:
              /usr/local/HomeSeer/html/bin/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/IFTTT/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/homeseer/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/AmbientWeather/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/Chromecast/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/Nest/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/HSBuddy/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/HSPI_BI/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/BLGData/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/TPLinkSmartHome/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/BLRoombaWifi/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/JowiHue/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/AKIkea/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/Z-Wave/Newtonsoft.Json.dll
              /usr/local/HomeSeer/bin/weatherXML/Newtonsoft.Json.dll
              /usr/local/HomeSeer/Updates3/Husqvarna Automower3.0.0.15/Newtonsoft.Json.dll
              /usr/local/HomeSeer/Bin/HUSMOW/Newtonsoft.Json.dll
              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer/bin$
              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer/bin$ ls -lah | grep Newtonsoft.Json.dll
              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer/bin$ pwd
              /usr/local/HomeSeer/bin
              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer/bin$ cd ..
              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer$ pwd
              /usr/local/HomeSeer
              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer$ ls -lah | grep Newtonsoft.Json.dll
              homeseer@HomeTrollerSELv2:/usr/local/HomeSeer$

              Restart did not help. Thanks for your efforts so far :-)

              Comment


                #8
                I find this in the forum, can you try it to see if it fix the problem?

                From digging around in forums I found some other people with similar problems with other plugins. Perhaps the base install of HomeSeer only has some components of Mono installed. Your plugin requires the HTTP component, maybe you did not realize you have to explicitly install it as part of your plugin? (I guess that is a homeseer dev support question). I installed the http library of mono using the command below:

                sudo apt-get -y install libmono-system-net-http4.0-cil

                Comment


                  #9
                  Spot on!

                  Installing that package solved all problems.

                  Thanks a lot!!! =)

                  Comment


                    #10
                    You will see that I need to fine tune some status, now I don’t have time for it but it is all functional.

                    Comment

                    Working...
                    X