Announcement

Collapse
No announcement yet.

Plugin stopped reading Nest data

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

    #61
    really strange...

    - stop the Nest plugin
    - delete bin/Nest dir as well as Nest.ini
    - reinstall the Nest plugin from updater
    - start it, go to the config page
    - set the log level to Debug
    - do the authorization process
    then, please post here all the logs you get from the installation of the plugin until you get the error.

    Comment


      #62
      here it is:

      DEBUG System.IO.FileLoadException: Kan bestand of assembly Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040) Bestandsnaam: Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed ---> System.IO.FileLoadException: Kan bestand of assembly Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040) Bestandsnaam: Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed WRSCH: registratie van assembly-bindingen is uitgeschakeld. Als u assembly-bindingsfouten wilt registreren, stelt u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) in op 1. Opmerking: er is een prestatiestraf gekoppeld aan de registratie van assembly-bindingsfouten. Als u deze functie wilt uitschakelen, verwijdert u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog]. bij NestSharp.NestClient.GetAccessToken(String pin) bij HSPI_Nest.WebConfig.postBackProc(String page, String data, String user, Int32 userRights)
      nov-22 19:19:00 Nest ERROR Kan bestand of assembly Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040) nov-22 19:18:54 Z-Wave Device: Node 29 Z-Wave Power Set to 3,1 (W) nov-22 19:18:31 Plug-In Finished initializing plug-in Nest nov-22 19:18:31 Nest WARNING The Nest plugin hasn't been authorized to access your Nest account, please go to the config page to authorize.

      Comment


        #63
        please post the installation log lines and init of the plugin as well

        you do have a HSPI_Nest.exe.config file in your HS3 root dir, right?

        as a test edit it, and paste the following content, then restart the plugin:

        Code:
        <?xml version="1.0" encoding="utf-8"?>
        <configuration>
          <startup>
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
          </startup>
          <runtime>
            <loadFromRemoteSources enabled="true" />
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
              <dependentAssembly>
                <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
              </dependentAssembly>
              <probing privatePath="bin/Nest" />
              <dependentAssembly>
                <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-4.2.22.0" newVersion="4.2.22.0" />
              </dependentAssembly>
              <dependentAssembly>
                <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
              </dependentAssembly>
              <dependentAssembly>
                <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
              </dependentAssembly>
              <dependentAssembly>
                <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"/>
                <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="7.0.0.0"/>
              </dependentAssembly>
            </assemblyBinding>
          </runtime>
        </configuration>

        Comment


          #64
          nov-22 19:45:08 Plug-In Finished initializing plug-in Nest nov-22 19:45:08 Nest WARNING The Nest plugin hasn't been authorized to access your Nest account, please go to the config page to authorize. nov-22 19:45:08 Nest INFO Nest version 3.0.0.14 nov-22 19:45:08 Info Plugin Nest has connected. IP:127.0.0.1:64059


          after trying to authorize
          Nest DEBUG System.IO.FileLoadException: Kan bestand of assembly Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040) Bestandsnaam: Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed ---> System.IO.FileLoadException: Kan bestand of assembly Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040) Bestandsnaam: Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed WRSCH: registratie van assembly-bindingen is uitgeschakeld. Als u assembly-bindingsfouten wilt registreren, stelt u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) in op 1. Opmerking: er is een prestatiestraf gekoppeld aan de registratie van assembly-bindingsfouten. Als u deze functie wilt uitschakelen, verwijdert u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog]. bij NestSharp.NestClient.GetAccessToken(String pin) bij HSPI_Nest.WebConfig.postBackProc(String page, String data, String user, Int32 userRights) nov-22 19:46:15 Nest ERROR Kan bestand of assembly Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040)

          Comment


            #65
            http://forums.homeseer.com/showthrea...ght=newtonsoft
            here is someone with the same problem, only another plugin but the same error

            Comment


              #66
              Originally posted by akatar View Post
              http://forums.homeseer.com/showthrea...ght=newtonsoft
              here is someone with the same problem, only another plugin but the same error
              yeah I know, this is a very common problem: some plugins wrongly install their dependencies in the root folder which can cause some conflicts with other plugins. This is especially true with Newtonsoft.Json.dll, which is widely used by different plugins. The solution to this problem is to remove the conflicted dll from the HS3 root dir, but apparently you don't have one so you must be experiencing a slightly different problem.

              I asked you by email, if you could let me access your system so that I can help you more quickly? My email spud.webb.4@gmail.com

              Comment


                #67
                i did not get an email, but i maild you teamview login

                Comment


                  #68
                  did you find out what goes wrong?

                  Comment


                    #69
                    solved thanks to spud:

                    Edit your machine.config and delete the following lines

                    <dependentAssembly>
                    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
                    <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0"/>
                    </dependentAssembly>



                    thanks!!!

                    Comment


                      #70
                      the machine.config file is located in: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config

                      not sure who or what added those lines in this file, but this is definitely not a good idea as it makes all apps on the computer to use a specific version of an assembly, in this case Newtonsoft.Json.dll version 7

                      Comment


                        #71
                        Works great now - no idea at all - this machine runs Homeseer and Main Lobby - some plugin must have changed the settings...

                        Thanks for the help - a new toy!

                        Comment


                          #72
                          Error when reinstall can you help?

                          DEBUG System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at NestSharp.NestClient.StartMonitoringData() ---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext()<---

                          Comment


                            #73
                            Originally posted by marcpilou View Post
                            DEBUG System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at NestSharp.NestClient.StartMonitoringData() ---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext()<---
                            Please provide more information...
                            When do you get this error? when you try to start the plugin after updating it?
                            Could you provide a full debug log beginning when the plugin starts?
                            is your HS3 system running on Windows or Linux?
                            thanks

                            Comment


                              #74
                              My plugin suddenly stopped working. I tried to uninstall reinstall and that's when I started getting this error. I've updated the 4.5 framework and tried it again. This is what I did.

                              I'm on windows 7

                              - stop the Nest plugin
                              - delete bin / Nest dir as well as Nest.ini
                              - reinstall the Nest plugin from updater
                              - do the authorization process


                              Jul-18 9:30:43 AM Nest DEBUG Method: GET, RequestUri: 'https://developer-api.nest.com/.json?auth=c.1el1CD8ax5r9O0zm3GTkMw81l67nUhTGRwMZLfZ1SiGP9f0 ueB6PSh9BZGg1WlvNXx9Qfu7KpAMNtwJIMTvEMGyS9p04uS5VUbOq6HtGitO tSQ5BuLXSjejRBcSot5eHhao5AVO7jhFKIgzL', Version: 1.1, Content: , Headers: { Accept: text/event-stream }
                              Jul-18 9:30:38 AM Nest DEBUG Retrying in 5 seconds...
                              Jul-18 9:30:38 AM Nest DEBUG System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at NestSharp.NestClient.StartMonitoringData() ---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext()<---
                              Jul-18 9:30:37 AM Nest DEBUG Method: GET, RequestUri: 'https://developer-api.nest.com/.json?auth=c.1el1CD8ax5r9O0zm3GTkMw81l67nUhTGRwMZLfZ1SiGP9f0 ueB6PSh9BZGg1WlvNXx9Qfu7KpAMNtwJIMTvEMGyS9p04uS5VUbOq6HtGitO tSQ5BuLXSjejRBcSot5eHhao5AVO7jhFKIgzL', Version: 1.1, Content: , Headers: { Accept: text/event-stream }
                              Jul-18 9:30:36 AM Plug-In Finished initializing plug-in Nest
                              Jul-18 9:30:36 AM Nest INFO Nest version 3.0.0.28
                              Jul-18 9:30:36 AM Info Plugin Nest has connected. IP:127.0.0.1:58808


                              Thanks for your help

                              Comment


                                #75
                                Originally posted by marcpilou View Post
                                My plugin suddenly stopped working. I tried to uninstall reinstall and that's when I started getting this error. I've updated the 4.5 framework and tried it again. This is what I did.

                                I'm on windows 7

                                - stop the Nest plugin
                                - delete bin / Nest dir as well as Nest.ini
                                - reinstall the Nest plugin from updater
                                - do the authorization process


                                Jul-18 9:30:43 AM Nest DEBUG Method: GET, RequestUri: 'https://developer-api.nest.com/.json?auth=c.1el1CD8ax5r9O0zm3GTkMw81l67nUhTGRwMZLfZ1SiGP9f0 ueB6PSh9BZGg1WlvNXx9Qfu7KpAMNtwJIMTvEMGyS9p04uS5VUbOq6HtGitO tSQ5BuLXSjejRBcSot5eHhao5AVO7jhFKIgzL', Version: 1.1, Content: , Headers: { Accept: text/event-stream }
                                Jul-18 9:30:38 AM Nest DEBUG Retrying in 5 seconds...
                                Jul-18 9:30:38 AM Nest DEBUG System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at NestSharp.NestClient.StartMonitoringData() ---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 52.200.120.206:9553 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsync Result ar) --- End of inner exception stack trace --- at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess(Task task) at FirebaseSharp.Firebase.d__16.MoveNext()<---
                                Jul-18 9:30:37 AM Nest DEBUG Method: GET, RequestUri: 'https://developer-api.nest.com/.json?auth=c.1el1CD8ax5r9O0zm3GTkMw81l67nUhTGRwMZLfZ1SiGP9f0 ueB6PSh9BZGg1WlvNXx9Qfu7KpAMNtwJIMTvEMGyS9p04uS5VUbOq6HtGitO tSQ5BuLXSjejRBcSot5eHhao5AVO7jhFKIgzL', Version: 1.1, Content: , Headers: { Accept: text/event-stream }
                                Jul-18 9:30:36 AM Plug-In Finished initializing plug-in Nest
                                Jul-18 9:30:36 AM Nest INFO Nest version 3.0.0.28
                                Jul-18 9:30:36 AM Info Plugin Nest has connected. IP:127.0.0.1:58808


                                Thanks for your help
                                This error is probably caused by your firewall and/or antivirus blocking the traffic to the Nest server.
                                For testing, please try to temporarily disable your windows firewall as well as antivirus software.

                                Comment

                                Working...
                                X