Announcement

Collapse
No announcement yet.

Gmail related System IO Exception causing HS3 to crash

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

    Gmail related System IO Exception causing HS3 to crash

    Hope someone can help with a baffling problem I am having on my SEL. I am experiencing occasional random HS3 crashes caused by an IO Exception related to Gmail. Has happened twice in last 2 months. The first after 20 days uptime, the second after 10 days uptime. Whenever this error occurs, HS3 goes down completely. The Linux OS is still operational at this stage. Re-powering brings HS3 back up.

    Here is the error ...

    Unable to log into Gmail server: Authenticate as SSL client failed. You might be connecting to non SSL port.:Inner Exception: System.IO.IOException: The authentication or decryption has failed. ---> System.NullReferenceException: Object reference not set to an instance of an object at System.Security.Cryptography.X509Certificates.X509Chain.get_ Roots () [0x00000] in :0 at System.Security.Cryptography.X509Certificates.X509Chain.get_ CertificateCollection () [0x00000] in :0 at System.Security.Cryptography.X509Certificates.X509Chain.Find Parent (System.Security.Cryptography.X509Certificates.X509Certifica te2 certificate) [0x00000] in :0 at System.Security.Cryptography.X509Certificates.X509Chain.Buil dChainFrom (System.Security.Cryptography.X509Certificates.X509Certifica te2 certificate) [0x00000] in :0 at System.Security.Cryptography.X509Certificates.X509Chain.Buil d (System.Security.Cryptography.X509Certificates.X509Certifica te2 certificate) [0x00000] in :0 at System.Net.Security.SslStream+c__AnonStorey0.<>m__1 (System.Security.Cryptography.X509Certificates.X509Certifica te cert,​ System.Int32[] certErrors) [0x00000] in :0 at Mono.Security.Protocol.Tls.SslClientStream.OnRemoteCertifica teValidation (System.Security.Cryptography.X509Certificates.X509Certifica te certificate,​ System.Int32[] errors) [0x00000] in :0 at Mono.Security.Protocol.Tls.SslStreamBase.RaiseRemoteCertific ateValidation (System.Security.Cryptography.X509Certificates.X509Certifica te certificate,​ System.Int32[] errors) [0x00000] in :0 at Mono.Security.Protocol.Tls.SslClientStream.RaiseServerCertif icateValidation (System.Security.Cryptography.X509Certificates.X509Certifica te certificate,​ System.Int32[] certificateErrors) [0x00000] in :0 at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertifi cate.LocalValidation (Mono.Security.Protocol.Tls.ClientContext context,​ AlertDescription description) [0x00000] in :0 at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertifi cate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates) [0x00000] in :0 at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertifi cate.ProcessAsTls1 () [0x00000] in :0 at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Proces s () [0x00000] in :0 at (wrapper remoting-invoke-with-check) Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Proces s () at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHands hakeMessage (Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00000] in :0 at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRec ordCallback (IAsyncResult asyncResult) [0x00000] in :0 --- End of inner exception stack trace --- at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallb ack (IAsyncResult asyncResult) [0x00000] in :0
    Apart from this occasional error, Gmail is working fine in the system. It checks for email every minute and triggers using email headers work fine.

    Anyone have any ideas why this error is occurring, and even more importantly why would it bring down HS3?

    Cheers
    Andrew

    Current Date/Time: 2/5/2017 5:52:39 PM
    HomeSeer Version: HS3 Standard Edition 3.0.0.297
    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: 0 Days 0 Hours 43 Minutes 58 Seconds
    IP Address: 192.168.100.101
    Number of Devices: 173
    Number of Events: 169
    Available Threads: 199

    Enabled Plug-Ins
    2.0.35.0: BLLAN
    3.0.0.5: CM15A
    1.0.0.0: drhsEventEnabler
    3.0.0.68: HSTouch Server
    3.0.5917.35093: UltraLog3
    3.0.6119.21453: UltraNetCam3
    3.0.1.98: Z-Wave

    #2
    Originally posted by abwyatt View Post
    Hope someone can help with a baffling problem I am having on my SEL. I am experiencing occasional random HS3 crashes caused by an IO Exception related to Gmail. Has happened twice in last 2 months. The first after 20 days uptime, the second after 10 days uptime. Whenever this error occurs, HS3 goes down completely. The Linux OS is still operational at this stage. Re-powering brings HS3 back up.

    Apart from this occasional error, Gmail is working fine in the system. It checks for email every minute and triggers using email headers work fine.

    Anyone have any ideas why this error is occurring, and even more importantly why would it bring down HS3?

    Cheers
    Andrew
    Hi Andrew, looks like GMail is returning something unexpected at that time and HS is not coded to deal with that properly in that section of the code, which is why it then crashes. I would submit a Bugzilla and email support@homeseer.com. HS would need to be updated to trap the errors. You may want to try a non GMail account until it is resolved.

    Cheers
    Al
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      #3
      Thanks for the advice Al. Have submitted a bugzilla report.

      I am wondering if other recent mystery crash reports in the SEL forum are related.

      Comment

      Working...
      X